MyBB Community Forums

Full Version: "posts" in forum counter doesn't change in polish translation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello

In polish translation of MyBB in forum counter:
[Image: fXMlqeT.png]
all number are covered with word "Posty". In polish language is 1 post, 2 posty, 3 posty, 4 posty, 5 postów, 6 postów, 11 postów, 22 posty... etc
Just this word is changing depending on the number of posts. 
However it looks ugly "8 Posty" instead of the correct form in polish language i.e. "8 postów"
Post directly to the language pack author. Not here, MyBB maintain only English pack officialy!
It isn't possible to add different types of ends. For expample in global.lang.php:
$l['rel_minutes_plural'] = "minut(y)";
$l['rel_hours_single'] = "godzinę";
$l['rel_hours_plural'] = "godzin(y)";
I can add different types of ends to specific time.

In "postów":

$l['post_count'] = "Postów";
I can add lang only for singular.
Would the same apply if you decide to use message instead of post? I mean, is there no workaround to using a different word?
(2020-06-30, 01:19 PM)Eldenroot Wrote: [ -> ]Post directly to the language pack author. Not here, MyBB maintain only English pack officialy!

I believe this is an appropriate issue to raise here since the problem is MyBB's translations are very inflexible with pluralizations. We simply use one language string for one place without extra logic like the OP is asking for. Laravel's localiation handles this request well as the number is used to determine which variation of the language string to use: https://laravel.com/docs/7.x/localization#pluralization
OK, I am srry, you are right. We should support singular and plural form
If it is possible to add singular and plural form it would be great,
I've used Woltlab Burning Board long time, and their language system is great, the variable is included in the language file, and we can use operator directly in the language like

{#$stats[posts]} post{if $stats[posts] > 1}s{/if}

Something like that in the future will'd be awesome ^^