"posts" in forum counter doesn't change in polish translation
#1
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"
Reply
#2
Post directly to the language pack author. Not here, MyBB maintain only English pack officialy!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#3
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.
Reply
#4
Would the same apply if you decide to use message instead of post? I mean, is there no workaround to using a different word?
Reply
#5
(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
Reply
#6
OK, I am srry, you are right. We should support singular and plural form
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#7
If it is possible to add singular and plural form it would be great,
Reply
#8
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 ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)