-
-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I18n::translateCount()
does not work with languages with more than 3 cardinal forms
#2430
Comments
afbora
added a commit
that referenced
this issue
Feb 8, 2020
afbora
added a commit
that referenced
this issue
Feb 20, 2020
afbora
added a commit
that referenced
this issue
Feb 23, 2020
lukasbestle
pushed a commit
that referenced
this issue
Feb 23, 2020
lukasbestle
pushed a commit
that referenced
this issue
Feb 23, 2020
lukasbestle
pushed a commit
that referenced
this issue
Feb 23, 2020
lukasbestle
added a commit
that referenced
this issue
Feb 23, 2020
4 tasks
lukasbestle
pushed a commit
that referenced
this issue
Apr 5, 2020
bastianallgeier
pushed a commit
that referenced
this issue
May 4, 2020
✅ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
For languages such as Czech, Irish, Russian, or Welsh, the current
I18n::translateCount()
andtt()
functions are not helpful. The current functions assume there can be only 3 forms of numbers (for0
,1
, and everything else).For a language like Irish, there can be 5 distinct forms:
1
2
3
,4
,5
, or6
7
,8
,9
, or10
0
,11
,24
Unicode has a published table documenting nearly every language's rules: https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
Mozilla has a more approachable document for this: https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals
I suspect ngettext would be helpful to use in this scenario.
Kirby Version
3.3.3
The text was updated successfully, but these errors were encountered: