-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
.stringdict plural forms incorrect #12209
Comments
See #6368 |
@nijel that seems to be about |
Something similar occurs for Persian (fa) Android: https://hosted.weblate.org/translate/organicmaps/android/fa/?checksum=e8e3cb8cdbc14c55 |
Sorry, I didn't understand this from the initial post. These are only examples shown in Weblate, it should not affect anything else. But you're right that most of (if not all) the formulas have messed up ordering: Lines 232 to 262 in f006ac8
I probably generated these wrongly back then. |
That is a relief. I'll see what I can do to produce a PR, if not for all of them at least for the simple common forms |
It is likely that all of them are messed up, I did somehow generated them and apparently that was broken. Looking at it, broken might be only the ones which don't have explicit plural numbers in the original formula. The problem with the conversion is that it turned |
Only: n!=1 and n>1 as they're the most common. Partial fix for WeblateOrg#12209
Only: n!=1 and n>1 as they're the most common. Partial fix for #12209
Thank you for your report; the issue you have reported has just been fixed.
|
Describe the issue
Comparing Android to iOS plural forms for Afrikaans. They are different while both claiming to be using CLDR. I suspect this is only a visual anomaly but it is enough to confuse translators.
Android:
n != 1
iOS:
n==0 ? 0 : n!=1 ? 1 : 2
zero
injection for stringdict, so that is ignoredI've traced the problem here:
https://github.com/WeblateOrg/weblate/blob/stable/weblate/lang/data.py#L235
but I'm not sure:
I already tried
Steps to reproduce the behavior
one
andother
are swappedExpected behavior
Honour the CLDR forms in iOS plurals https://www.unicode.org/cldr/charts/42/supplemental/language_plural_rules.html#af
The correct formula would be:
n==0 ? 0 : n==1 ? 1 : 2
Screenshots
No response
Exception traceback
No response
How do you run Weblate?
weblate.org service
Weblate versions
No response
Weblate deploy checks
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: