Page MenuHomePhabricator

plural: broken in Vietnamese (CLDR?)
Closed, ResolvedPublic

Description

Change I58a9cdfe60c7b9027bf031c91370472054f04ae2 made MediaWiki rely on CLDR data for plural rules (see languages/data/plurals.xml). CLDR apparently lists Vietnamese as having no plurals. While it’s true that Vietnamese doesn’t inflect for plurals, the language does absolutely have the concept of plural number. Plurals are typically marked by “các” or “những” in front of the noun.

MediaWiki’s Vietnamese localization uses the plural: magic word extensively, just as the English localization does, to add these markers in the “many” case or omit the number 1 in the “one” case. These usages are now broken throughout the interface. The rules for Vietnamese should be overwritten in plurals-mediawiki.xml to be identical to that of English:

<pluralRule count="one">n is 1</pluralRule>

Please note this requirement when implementing the JavaScript plural parser.


Version: 1.20.x
Severity: major
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=40251

Details

Reference
bz40250

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:53 AM
bzimport set Reference to bz40250.
bzimport added a subscriber: Unknown Object (MLST).

Adding bug 38781 as tracking bug.

Please start the process of getting it fixed in CLDR and we will add override for the time being.

FYI: JavaScript plural parser is already implemented.

Actually, I don’t think any changes to CLDR are necessary. See my justification at bug 40251 comment 5.

  • This bug has been marked as a duplicate of bug 40251 ***