Closed
Bug 1423123
Opened 8 years ago
Closed 8 years ago
[az] Verify plural rule for Azerbaijani (switch to rule #1)
Categories
(Mozilla Localizations :: az / Azerbaijani, enhancement)
Mozilla Localizations
az / Azerbaijani
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: flod, Assigned: flod)
Details
Azerbaijani has 2 plural forms according to CLDR, like English
http://www.unicode.org/cldr/charts/dev/supplemental/language_plural_rules.html#az
But Firefox and Firefox for Android are set to use the plural form 0, which means no plural forms (like Chinese). In other words, the noun following a cardinal number never changes.
| Assignee | ||
Comment 1•8 years ago
|
||
@Emin
What's the correct plural form for Azerbaijani?
It's surprising that this didn't surface while using the browser. Considering for example this
https://transvision.mozfr.org/?recherche=tabs.closeWarningMultiple&repo=gecko_strings&sourcelocale=en-US&locale=az&search_type=strings_entities
It's the warning displayed when closing multiple tabs: the first form is empty, the second has a string. I'm pretty sure the dialog on your Firefox should be displaying an empty string.
Flags: needinfo?(emin)
| Assignee | ||
Updated•8 years ago
|
Summary: Verify plural rule for Axzerbaijani → Verify plural rule for Azerbaijani
| Assignee | ||
Updated•8 years ago
|
No longer blocks: 1423126
Summary: Verify plural rule for Azerbaijani → [az] Verify plural rule for Azerbaijani
Comment 2•8 years ago
|
||
Hi Francesco,
So, there are 2 plural rules in Azerbaijani, and we use it in Firefox. Till know it was giving both versions in English (single version;plural version). We don't use plural rule when there is a number, so that structure helps us to decide when to use.
We haven't noticed that string in close window as when you close main window, mostly Firefox just closes without asking :)
Fixed that sentence by removing the semicolon, do we need to write it twice?
Plural rules for Azerbaijani is exactly same as in Turkish (and other Turkic languages), sometimes Selim writes only 1 version of the sentence, so I would like to learn how Firefox parses it (is it strict to have both versions for plural rules if both are same (when numbers are used) ?)
Flags: needinfo?(emin) → needinfo?(francesco.lodolo)
| Assignee | ||
Comment 3•8 years ago
|
||
(In reply to Emin Mastizada from comment #2)
> Hi Francesco,
> So, there are 2 plural rules in Azerbaijani, and we use it in Firefox.
That's the point. You're writing 2 forms in the string, but you're NOT using them.
Azerbaijani uses rule #0 (1 form)
https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals
If Azerbaijani has 2 plural forms, like CLDR, we should fix the plural rule and let the existing strings be. We'd only need to revert back the change you just made.
> Fixed that sentence by removing the semicolon, do we need to write it twice?
With the current rule, you only need it once. The point is that we should likely change the rule.
> Plural rules for Azerbaijani is exactly same as in Turkish (and other Turkic
> languages), sometimes Selim writes only 1 version of the sentence, so I
> would like to learn how Firefox parses it (is it strict to have both
> versions for plural rules if both are same (when numbers are used) ?)
There is another bug open for Turkish (bug 1423131), and I really think that we need to change it to use 2 forms as well.
We're going to use ICU/CLDR data in the future, which means you're going to use two forms anyway, since that's the correct form.
If your locale is set to have X forms, you need to have all of them. String is split using the semicolon, so
;Some text
Is 2 plural forms: the first is empty (singular in English), the second has a text.
At this point I strongly advise to change the plural rule to 1 (like English), revert the tabs closing string, and that will fix all the existing plural strings. Thoughts?
Flags: needinfo?(francesco.lodolo) → needinfo?(emin)
Comment 4•8 years ago
|
||
Ok, reverted back the translation. Is there any other errors?
When the changes to plural rule will be available?
Flags: needinfo?(emin) → needinfo?(francesco.lodolo)
| Assignee | ||
Comment 5•8 years ago
|
||
I pushed the change to the rule
https://hg.mozilla.org/l10n-central/az/rev/2028313be93e8d56984297fe2878fdfeb5685c93
Tomorrow's Nightly will have the new rule applied. Can you give it a test and confirm if everything behaves as expected? At that point I will sign-off on Beta.
@pike
Can you update the reference in compare-locales too?
Assignee: nobody → francesco.lodolo
Flags: needinfo?(francesco.lodolo) → needinfo?(l10n)
Comment 6•8 years ago
|
||
Updated compare-locales, https://hg.mozilla.org/l10n/compare-locales/rev/711c09ec362db54fc7e21b638cbb743203d6473e
Flags: needinfo?(l10n)
| Assignee | ||
Updated•8 years ago
|
Summary: [az] Verify plural rule for Azerbaijani → [az] Verify plural rule for Azerbaijani (switch to rule #1)
| Assignee | ||
Comment 7•8 years ago
|
||
@Emin
Were you able to test this? Is everything looking as expected?
Flags: needinfo?(emin)
Comment 8•8 years ago
|
||
Tested in latest build, message is now seen as expected. Thanks
Flags: needinfo?(emin)
| Assignee | ||
Comment 9•8 years ago
|
||
Thanks Emin, closing then.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•8 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•