Thanks Yuri and Thomas very much. I changed plural forms to the default, and it 
works fine. I uploaded he.po to transifex Audacity release 3.3.0 resource. 
There are going to be more updates this week, so an updated version will be 
sent later to the list.

 

As I am curious, I will be glad if someone explain these issues in nplural 
expression.

 

1. What n%1==0 means, as this expression is true for any integer. If means to 
check if a number is an integer, why n==1 / n==2 aren't enough in first two 
sub-expressions?

2. In the CLDR page referred by Yuri it says that "many" includes "10" as well 
as 20, 30, etc. However, the expression of nplurals says n>10 (instead of 
n>=10) which excludes “10”.

 

 



 

TIA.

 

---

Israel Yedidya

 

-----הודעה מקורית-----
מאת: Yuri Chornoivan <yurc...@ukr.net> 
נשלח: Monday, April 17, 2023 9:41 AM
אל: audacity-translation@lists.sourceforge.net
נושא: Re: [Audacity-translation] plurals - a question

 

неділя, 16 квітня 2023 р. 23:29:57 EEST  <mailto:yedi...@math.biu.ac.il> 
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:  <mailto:audacity-translation@lists.sourceforge.net\n> 
> 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/> 
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

 <mailto:Audacity-translation@lists.sourceforge.net> 
Audacity-translation@lists.sourceforge.net

 <https://lists.sourceforge.net/lists/listinfo/audacity-translation> 
https://lists.sourceforge.net/lists/listinfo/audacity-translation

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

Reply via email to