Closed
Bug 1433741
Opened 7 years ago
Closed 7 years ago
[mr] Verify plural rule for Marathi (currently #1)
Categories
(Mozilla Localizations :: mr / Marathi, enhancement)
Mozilla Localizations
mr / Marathi
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: flod, Unassigned)
References
Details
(Whiteboard: cldr-data)
Gecko products: rule #1, 2 forms, like English
1st form [one]: for 1
2nd form [other]: for any other number, including 0
Pontoon: n!=1, so same as Gecko products
CLDR: 0 is like 1, so rule should be #2 in Gecko (n > 1)
http://www.unicode.org/cldr/charts/dev/supplemental/language_plural_rules.html#mr
The impact on product is minimal: same number of forms, and normally a special string is used for the 0 case, but it would be good to set the correct plural form.
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(djaniketster)
Flags: needinfo?(cpdhutadmal)
Reporter | ||
Comment 1•7 years ago
|
||
Clarifying the actual ask for the team.
Consider English for example. You would say:
- 0 cats
- 1 cat
- 2 cats
etc.
0 uses the same form of other numbers greater than 1. This is rule #1 internally.
Right now, according to Pontoon and Gecko products (Firefox, Firefox for Android, Thunderbird, etc.), your locale is using the same rule.
According to CLDR, for your locale 0 should use the same form as 1. Hoping that Google Translate is correct:
- 0 मांजर
- 1 मांजर
- 2 मांजरी
etc.
Which one is correct?
Comment 2•7 years ago
|
||
I would divide the issue in four different parts:
1. The plural rule applies. (as mentioned in previous comment)
2. The plural rule does not apply.
for example,
Stone - दगड, stones - दगड
Man - पुरूष, Men - पुरूष
3. The instances where we have to transliterate.
for example
Desktop - डेस्कटॉप, Desktops - डेस्कटॉप
File - फाईल, Files - फाईल
4. The instance where we have to keep the keyword as it is.
for example,
URL
We have to see the sentence construction to identify whether a word has been used in sigular / plural form.
Flags: needinfo?(djaniketster)
Flags: needinfo?(cpdhutadmal)
Reporter | ||
Comment 3•7 years ago
|
||
@Aniket
I'm afraid my request wasn't particularly clear.
The doubt is not about plurals is general, but how the form for '0' behaves: does it behave like 1 or like any other number?
Note that I expect the change to have no practical impact on product strings, since the case for 0 is always implicitly excluded or treated separately. Consider the following example:
> Close one tab;Close #1 tabs
The case for 0 is never used, you always have at least 1 tab to close. Most strings are like this.
But, consider this example:
> There is one message to read;There are #1 messages to read
For English, 0 would use the second form: "There are 0 messages to read". What about Marathi? How would you translate these 3 strings?
There are 0 messages to read
There is 1 message to read
There are 2 messages to read
Note that you have to keep the number in your translation, and you are not allowed to use forms like "no messages".
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(djaniketster)
Reporter | ||
Updated•7 years ago
|
Flags: needinfo?(cpdhutadmal)
Comment 4•7 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #3)
> @Aniket
> I'm afraid my request wasn't particularly clear.
>
> The doubt is not about plurals is general, but how the form for '0' behaves:
> does it behave like 1 or like any other number?
>
0 behaves like any other number or we could say plural.
> Note that I expect the change to have no practical impact on product
> strings, since the case for 0 is always implicitly excluded or treated
> separately. Consider the following example:
>
> > Close one tab;Close #1 tabs
>
> The case for 0 is never used, you always have at least 1 tab to close. Most
> strings are like this.
>
> But, consider this example:
>
> > There is one message to read;There are #1 messages to read
>
> For English, 0 would use the second form: "There are 0 messages to read".
> What about Marathi? How would you translate these 3 strings?
>
It will be same as in English.
> There are 0 messages to read
> There is 1 message to read
> There are 2 messages to read
>
वाचण्यासाठी 0 संदेश आहेत
वाचण्यासाठी 1 संदेश आहे
वाचण्यासाठी 2 संदेश आहेत
> Note that you have to keep the number in your translation, and you are not
> allowed to use forms like "no messages".
Please let me know if it answers the question.
Reporter | ||
Comment 5•7 years ago
|
||
Thanks Aniket, it definitely answers the question. I think we need to report this back to CLDR, and one thing I learned recently (after filing the bug) is that it helps to use the same examples they have.
http://www.unicode.org/cldr/charts/dev/supplemental/language_plural_rules.html#mr
The example for 0,1 is
१ घर
And for 2 is
२ घरे
Following CLDR, 0 would result in
० घर
While it should be
० घरे
Is that correct?
Comment 6•7 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #5)
> Thanks Aniket, it definitely answers the question. I think we need to report
> this back to CLDR, and one thing I learned recently (after filing the bug)
> is that it helps to use the same examples they have.
>
> http://www.unicode.org/cldr/charts/dev/supplemental/language_plural_rules.
> html#mr
>
It definitely helps.
> The example for 0,1 is
>
> १ घर
>
> And for 2 is
>
> २ घरे
>
> Following CLDR, 0 would result in
>
> ० घर
>
> While it should be
>
> ० घरे
>
> Is that correct?
Yes. correct.
Flags: needinfo?(djaniketster)
Flags: needinfo?(cpdhutadmal)
Reporter | ||
Comment 7•7 years ago
|
||
Thanks, then the bug is fixed, and I'll open a ticket on CLDR.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•7 years ago
|
See Also: → https://unicode.org/cldr/trac/ticket/11132
Whiteboard: cldr-data
You need to log in
before you can comment on or make changes to this bug.
Description
•