Page MenuHomePhabricator

Manx (Gaelg) Plural rules
Closed, ResolvedPublic

Description

As per CLDR this language (gv) has only one plural form

<pluralRule count="one">n mod 10 in 1..2 or n mod 20 is 0</pluralRule>

But, in MW, we have 4 plural forms
Form 0 = n mod 20 is 0
Form 1 = n mod 10 is 1
Form 2 = n mod 10 is 2
Form 4 = everything else

This is not at all compatible with CLDR.

Suggestions:
We can inspect how the plural forms are currently used and contact linguists and native speakers to verify. Depending on the results we can consider whether we can handle these with 1=foo exceptions or whether we need to push a change to CLDR.


Version: 1.21.x
Severity: normal

Details

Reference
bz47099

Related Objects

StatusAssignedTask
Resolvedsanthosh
ResolvedNone

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 1:27 AM
bzimport set Reference to bz47099.

The current CLDR rules have been updated. http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html

one: n % 10 = 1
two: n % 10 = 2
few: n % 100 = 0,20,40,60
other: the rest

This has not yet been updated in MediaWiki.

The differences between MW and CLDR(latest) are:

  1. 'few' form used as 'zero' form in MW. Practially that make 'one' form used as 'two' form and 'two' used as 'few' form. That means we cannot do a fix(moving to CLDR) without breaking existing gv {{PURAL}} usage.
  1. CLDR defines 'few' form as n % 100 = 0,20,40,60 but MW adds 80 also to that list, ie n % 100 = 0,20,40,60, 80. There must be some reasoning behind this change, but we need a native gv speaker to understand it.

(In reply to comment #2)

The differences between MW and CLDR(latest) are:

  1. 'few' form used as 'zero' form in MW. Practially that make 'one' form used

as 'two' form and 'two' used as 'few' form. That means we cannot do a
fix(moving to CLDR) without breaking existing gv {{PURAL}} usage.

Localisation levels for this language are low (~5000 translated strings). Let's fix and ask translators to review identified plural usages.

  1. CLDR defines 'few' form as n % 100 = 0,20,40,60 but MW adds 80 also to

that list, ie n % 100 = 0,20,40,60, 80. There must be some reasoning behind this
change, but we need a native gv speaker to understand it.

We should accept CLDR as an authoritative source, and not second guess.

We will backport the CLDR 24 rules for gv as an override to existing CLDR 23 rules. There is a delay in using CLDR 24 in MW since the parser need to be rewritten(https://bugzilla.wikimedia.org/show_bug.cgi?id=56931)

Change 100757 had a related patch set uploaded by Santhosh:
Correct the plural forms for Manx (Gaelg)

https://gerrit.wikimedia.org/r/100757

I've written an email to past translators (there are 4) for Manx announcing this change, and asking for their help updating/reviewing the 100 out of 2000 translations for Manx.

Change 100757 merged by jenkins-bot:
Correct the plural forms for Manx (Gaelg)

https://gerrit.wikimedia.org/r/100757

Change 102082 had a related patch set uploaded by Siebrand:
Correct the plural forms for Manx (Gaelg)

https://gerrit.wikimedia.org/r/102082

Change 102082 merged by MarkAHershberger:
Fixes for plural handling

https://gerrit.wikimedia.org/r/102082

I've marked outdated Manx translations now, and wrote a page explaining the change to translators: https://translatewiki.net/wiki/Thread:Portal_talk:Gv/Changes_in_plural_for_Manx_%28gv_-_Gaelg%29_in_MediaWiki.

I'll be sending an email to known translators now asking to update translations.

In Gerrit 102082, the changes were backported to MediaWiki 1.22. They cannot be backported to MediaWiki 1.21 without also dragging along a lot more i18n changes, with I didn't think would be a good idea. In gerrit 102090, backporting of translations from translatewiki.net to below MediaWiki 1.22 is blocked.