неділя, 16 квітня 2023 р. 23:29:57 EEST yedi...@math.biu.ac.il написано:
> I am trying to upload he.po to transifex, however I get the following error
> message from transifex.
> 
> Invalid plural types for string: Enable this plug-in? :Enable these
> plug-ins? . Language supports: ['one', 'two', 'many', 'other'], but found:
> ['one', 'two'] instead.
> 
> Po file reads:
> 
> "Plural-Forms: nplurals=2; plural=(n != 1);\n"
> 
> #. i18n-hint A plug-in is an optional added program for a sound
> #. effect, or generator, or analyzer
> #: libraries/lib-module-manager/PluginManager.cpp
> msgctxt "plug-ins"
> msgid "Enable this plug-in?\n"
> msgid_plural "Enable these plug-ins?\n"
> msgstr[0] "האם לאפשר את התוסף הזה?\n"
> msgstr[1] "האם לאפשר את התוספים הללו?\n"
> 
> 2 nplurals are defined and used, so what's wrong?
> 
> Audacity.pot reads:
> "Project-Id-Version: audacity 3.0.3\n"
> "Report-Msgid-Bugs-To: audacity-translation@lists.sourceforge.net\n"
> "POT-Creation-Date: 2023-04-05 16:57+0300\n"
> 
> P.s. I just realized that upload failed on the same error message also when
> this entry has being fuzzied (marked as "need work").
> 
> I hearby attach he.po for your inspection/advice.
> 
> Help is appreciated.
> 
> --
> Isarel Yedidya

Hi,

According to CLDR which is adopted by Transifex, Hebrew has 4 plural forms:

http://www.unicode.org/cldr/cldr-aux/charts/22/supplemental/
language_plural_rules.html

So the plural rules should be as follows:

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

Hope this helps.

Best regards,
Yuri





_______________________________________________
Audacity-translation mailing list
Audacity-translation@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/audacity-translation

Reply via email to