Closed Bug 1433742 Opened 8 years ago Closed 8 years ago

[pa-IN] Switch plural rule for Punjabi from #1 to #2

Categories

(Mozilla Localizations :: pa-IN / Punjabi, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flod, Assigned: flod)

Details

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#pa 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.
Flags: needinfo?(amanpreet.alam)
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?
yes, 0 has same form as 1,but it depends upon sentence. - 0 hour - 0 ਘੰਟਾ - 1 (one) hour - 1 (ਇੱਕ) ਘੰਟਾ/ਘੰਟੇ - 2 (two) hours - 2 (ਦੋ) hours I reached there in *one* _hour_ ( (ਮੈਂ *ਇੱਕ* _ਘੰਟੇ_ ਵਿੱਚ ਉੱਥੇ ਪੁੱਜਾ) It took me *one* _hour_ to reach there (ਉੱਥੇ ਜਾਣ ਲਈ ਮੈਨੂੰ *ਇੱਕ* _ਘੰਟਾ_ ਲੱਗਾ)
Flags: needinfo?(amanpreet.alam)
(In reply to A S Alam from comment #2) > yes, 0 has same form as 1,but it depends upon sentence. > - 0 hour - 0 ਘੰਟਾ > - 1 (one) hour - 1 (ਇੱਕ) ਘੰਟਾ/ਘੰਟੇ > - 2 (two) hours - 2 (ਦੋ) hours Thanks Amanepreet, the examples are really helpful! I've updated the rule in Gecko products and Pontoon https://hg.mozilla.org/l10n-central/pa-IN/rev/71aeb7e02dfead5a2b2a1b5ee0b02e9b44d8b0cf > I reached there in *one* _hour_ ( > (ਮੈਂ *ਇੱਕ* _ਘੰਟੇ_ ਵਿੱਚ ਉੱਥੇ ਪੁੱਜਾ) > > It took me *one* _hour_ to reach there > (ਉੱਥੇ ਜਾਣ ਲਈ ਮੈਨੂੰ *ਇੱਕ* _ਘੰਟਾ_ ਲੱਗਾ) If I understand your example correctly, it's the "1" case that changes depending on the sentence, correct? In the second sentence it behaves like any other number. That wouldn't be a problem, you would only need to copy the same value over. For example, hoping to not destroy Punjabi too much, considering these 2 plural forms in Firefox: en-US: I reached there in one hour;I reached there in #1 hours pa-IN: ਮੈਂ ਇੱਕ ਘੰਟੇ ਵਿੱਚ ਉੱਥੇ ਪੁੱਜਾ;ਮੈਂ #1 ਘੰਟਾ ਵਿੱਚ ਉੱਥੇ ਪੁੱਜਾ en-US: It took me one hour to reach there;It took me #1 hours to reach there pa-IN: ਉੱਥੇ ਜਾਣ ਲਈ ਮੈਨੂੰ ਇੱਕ ਘੰਟਾ ਲੱਗਾ;ਉੱਥੇ ਜਾਣ ਲਈ ਮੈਨੂੰ #1 ਘੰਟਾ ਲੱਗਾ @pike We need to switch from 1 to 2 in compare-locales for pa-IN
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Summary: [pa-IN] Verify plural rule for Punjabi (currently #1) → [pa-IN] Switch plural rule for Punjabi from #1 to #2
Assignee: amanpreet.alam → francesco.lodolo
compare-locales updated in https://hg.mozilla.org/l10n/compare-locales/rev/bb6a234896ce. This is released and deployed in 2.6.4.
You need to log in before you can comment on or make changes to this bug.