[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Hebrew plural forms
From:       Yaron Shahrabani <sh.yaron () gmail ! com>
Date:       2023-10-05 18:27:44
Message-ID: CACVjhxWmXvizxxPqYUYzWrMqCnUgCw+Zf6TDZigNJzveO0djAA () mail ! gmail ! com
[Download RAW message or body]

Over the last couple of days I ran into a problem where the gettext files
I've submitted caused all sorts of issues with Scripty.

KDE is still using the old plural form for Hebrew (2 cases):
"Plural-Forms: nplurals=2; plural=n != 1;\n"

Several years ago this formula was changed to reflect some rare cases in
Hebrew.
The new official formula is:
"Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10
&& n % 10 == 0) ? 2 : 3));\n"

This is documented here:
http://www.unicode.org/cldr/cldr-aux/charts/22/supplemental/language_plural_rules.html

I've been using this formula for several years now.
Some other projects implementing it:
Weblate, Transifex, Crowding, Poedit and many others.

Since the actual cases for using this formula are rare (time related terms
- hours, days, months, years, times) it's not always necessary to use it so
supporting the older formula in addition to the new one is definitely a
good option for now.

Thank you,
Yaron Shahrabani

<DevOps - Hebrew translator>

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Over \
the last couple of days I ran into a problem where the gettext files I&#39;ve \
submitted caused all sorts of issues with Scripty.</div><div class="gmail_default" \
style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif">KDE is still using the old plural form for \
Hebrew (2 cases):</div><div class="gmail_default" \
style="font-family:tahoma,sans-serif"><span \
style="font-family:monospace">&quot;Plural-Forms: nplurals=2; plural=n != \
1;\n&quot;</span></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif">Several years ago this formula was changed to \
reflect some rare cases in Hebrew.</div><div class="gmail_default" \
style="font-family:tahoma,sans-serif">The new official formula is:</div><div \
class="gmail_default" style="font-family:tahoma,sans-serif"><span \
style="font-family:monospace">&quot;Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : \
((n == 2) ? 1 : ((n &gt; 10 &amp;&amp; n % 10 == 0) ? 2 : \
3));\n&quot;</span><br></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif">This is documented here:</div><div \
class="gmail_default" style="font-family:tahoma,sans-serif"><a \
href="http://www.unicode.org/cldr/cldr-aux/charts/22/supplemental/language_plural_rule \
s.html">http://www.unicode.org/cldr/cldr-aux/charts/22/supplemental/language_plural_rules.html</a></div><div \
class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div \
class="gmail_default" style="font-family:tahoma,sans-serif">I&#39;ve been using this \
formula for several years now.</div><div class="gmail_default" \
style="font-family:tahoma,sans-serif">Some other projects implementing it:</div><div \
class="gmail_default" style="font-family:tahoma,sans-serif">Weblate, Transifex, \
Crowding, Poedit and many others.</div><div class="gmail_default" \
style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif">Since the actual cases for using this formula \
are rare (time related terms - hours, days, months, years, times) it&#39;s not always \
necessary to use it so supporting the older formula in addition to the new one is \
definitely a good option for now.<br></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" \
style="font-family:tahoma,sans-serif">Thank you,<br></div><div><div dir="ltr" \
class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div \
dir="ltr"><div><div dir="ltr"><span style="font-size:large"><span \
style="font-family:georgia,serif"><font color="#990000">Yaron</font></span><font \
color="#330000"><span style="font-family:georgia,serif"> <font size="4"><span \
style="font-family:times new \
roman,serif">Shahrabani</span></font></span></font></span><blockquote style="margin:0 \
0 0 40px;border:none;padding:0px"><div><font color="#666666"><span \
style="font-size:x-small"><font color="#FF0000">&lt;</font></span><font \
size="2"><span style="font-family:monospace">DevOps</span> - <span \
style="font-family:garamond,serif">Hebrew translator</span></font><span \
style="font-size:x-small"><font \
color="#FF0000">&gt;</font></span></font></div></blockquote></div></div></div></div></div></div></div></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic