Currently Online

Latest Posts

Topic: How to fix Plural-Forms

palino
Avatar
Topic Opener
Joined: 2022-12-19, 08:06
Posts: 15
OS: Windows 11
Version: master
Ranking
Pry about Widelands
Posted at: 2024-12-07, 23:29

Hello

In Slovak translation files there is historically wrong Plural-Forms field, now:

"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"

and should be:

"Plural-Forms: nplurals=3; plural=(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);\n"

For example in this snippet:

msgid "%u Player"
msgid_plural "%u Players"
msgstr[0] "%u hráč"
msgstr[1] "%u hráči"
msgstr[2] "%u hráčov"
msgstr[3] "%u hráčov"

all msgstr[3] could be removed, because they are duplicate of msgstr[2]

I can propose PR for all related .po files, but what about Transifex? Will such change automatically propagate or some manual change on web is needed too?


Top Quote