Last modified: 2013-12-17 13:56:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T49099, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47099 - Manx (Gaelg) Plural rules
Manx (Gaelg) Plural rules
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Santhosh Thottingal
:
Depends on: 56931
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-10 20:14 UTC by Niklas Laxström
Modified: 2013-12-17 13:56 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Niklas Laxström 2013-04-10 20:14:34 UTC
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.
Comment 1 Siebrand Mazeland 2013-11-12 08:14:49 UTC
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.
Comment 2 Santhosh Thottingal 2013-12-03 04:57:35 UTC
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.

2. 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.
Comment 3 Siebrand Mazeland 2013-12-03 07:00:13 UTC
(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.

> 2. 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.
Comment 4 Santhosh Thottingal 2013-12-11 06:31:37 UTC
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)
Comment 5 Gerrit Notification Bot 2013-12-11 06:40:38 UTC
Change 100757 had a related patch set uploaded by Santhosh:
Correct the plural forms for Manx (Gaelg)

https://gerrit.wikimedia.org/r/100757
Comment 6 Siebrand Mazeland 2013-12-12 11:11:33 UTC
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.
Comment 7 Gerrit Notification Bot 2013-12-17 07:20:40 UTC
Change 100757 merged by jenkins-bot:
Correct the plural forms for Manx (Gaelg)

https://gerrit.wikimedia.org/r/100757
Comment 8 Gerrit Notification Bot 2013-12-17 07:24:30 UTC
Change 102082 had a related patch set uploaded by Siebrand:
Correct the plural forms for Manx (Gaelg)

https://gerrit.wikimedia.org/r/102082
Comment 9 Gerrit Notification Bot 2013-12-17 13:50:14 UTC
Change 102082 merged by MarkAHershberger:
Fixes for plural handling

https://gerrit.wikimedia.org/r/102082
Comment 10 Siebrand Mazeland 2013-12-17 13:56:11 UTC
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 change #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 change #102090, backporting of translations from translatewiki.net to below MediaWiki 1.22 is blocked.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links