Hebrew plural forms
Yaron Shahrabani
sh.yaron at gmail.com
Thu Oct 5 19:27:44 BST 2023
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-doc/attachments/20231005/48fa4b18/attachment.htm>
More information about the kde-i18n-doc
mailing list