-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[Translation] Azerbaijani language pluralization rule is wrong #15150
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
Conversation
In AZ, as in TR, pluralization is always 0: 0 kitab (zero books) 1 kitab (1 book) 3 kitab (3 books) 104 kitab (104 books) Apparently ZF ruleset was wrong in the first place :)
Hi @shehi! Thanks for the pull request! I speak absolutely no Azerbaijani at all, so I will need your help :). According to these rules: http://localization-guide.readthedocs.org/en/latest/l10n/pluralforms.html, So, I think this patch is invalid. What's causing you to think it's wrong? Thanks! |
Firstly, I am Azeri :) Born and raised. And I live in Turkey, I speak that language fluently as well. Secondly, to be precise with examples (btw plural form suffix in AZ is
Are we good now? |
More on the subject: so our language is EXACTLY like Turkish (TR) as we are close dialects of the same language family. Also, both these languages are: Also there are many cases where plural form suffix can be used with irregular counters, such as:
So as programmers, we don't need to re-invent the Azeri grammar here, we need minimum set of correct rules to apply to our l10n coding. That's why, as weird as it looks, for AZ and TR the rule of: Overall, for the sake of sanity, let's call it a day with rule |
Last, but not least, check Mozilla rules here: https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals As you can see Turkic Altaic languages have one plural form (I am sure it's for the case where you count, not other generic cases) for all counts: 0, 1, 2 ... And Mozilla tools are much widely used, than let's say Ubuntu/Linux localized tools where the rules are wrong for the case of counting: https://translations.launchpad.net/+languages/az I am Azeri and trust me, I never use Ubuntu in azeri localized version (full of bugs, crashes every half an hour). |
@shehi Thanks for all the info :) - these pluralizations make my head spin. And so I can't add anything else intelligent to your argument, but I did find a prominent example that agrees with you. It's RoR: https://github.com/svenfuchs/rails-i18n/tree/804b142d46f171f130c38a48ceab7019e8a7465d/rails/pluralization. If you click any language, our "0" is their "Other", and our "1" is their "OneOther". Anyways, in that list, So 👍 and ping @aitboudad (who is a merger for the Translation component). This is a bug fix, but since it has potentially large BC implications for any existing applications, I would lean towards merging into 2.8. Thanks! |
Thanks @weaverryan : I am Laravel developer and since they use Symfony as their backbone, I need this be done with as soon as possible. I understand BC implications and really hope 2.8 gets released as early as possible. Thanks! |
@shehi 2.8 will be released at the end of November. Our release schedule is very well defined. New versions are always released at the end of May and November. |
It looks like a bug fix to me, no? |
@fabpot see the comment of @weaverryan just above |
@stof : Oh boy! Please do your best to get this one in, as early as possible. It is a bugfix and I am damn sure every Azeri dev out there fixed this on their own to circumvent the problem. I understand you might not be convinced and remain wary re BC implications - but we are not a very big nation and using this plural form in its current form would be outright wrong and laughable, from Azeri point of view. Anyway, that's it :) THANKS A LOT for such a wonderful tool guys and thanks for maintaining it! |
I don't understand the BC implications here. If the plural is wrong, it needs to be fixed, as there is no way people could get something working correctly with the current code as far as I understand. Any bug fix is a BC break somehow. |
I would consider it a bug fix and could you also open PR for zf1 :) |
@aitboudad : Done, though been ages last time I used ZF1 :) Like 10 years lol. |
Time to merge? |
👍 (I don't know anything about this language, but @shehi's explanations sound convincing) |
How else do you maintain i18n related projects anyway? :) One can't know all those languages, can they now? Hehehe. |
👍 and also agree with merging into 2.3 (I thought more about this last night - agree that anyone using |
👍 |
1 similar comment
👍 |
Thank you @shehi. |
…rong (shehi) This PR was submitted for the 2.8 branch but it was merged into the 2.3 branch instead (closes #15150). Discussion ---------- [Translation] Azerbaijani language pluralization rule is wrong In AZ, as in TR, pluralization is always 0: 0 kitab (zero books) 1 kitab (1 book) 3 kitab (3 books) 104 kitab (104 books) Apparently ZF ruleset was wrong in the first place :) | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #15152 | License | MIT | Doc PR | - Commits ------- efd927a Azerbaijani language pluralization rule
Thanks :) |
ZF1 committed the fix I reported as well. Mission accomplished :) |
In AZ, as in TR, pluralization is always 0:
0 kitab (zero books)
1 kitab (1 book)
3 kitab (3 books)
104 kitab (104 books)
Apparently ZF ruleset was wrong in the first place :)