Plural rule changes for many languages

Plural rule changes for many languages

Edited by author.
Last edit: 20:50, 27 October 2014

MediaWiki is upgrading its plural rules to match CLDR version 26. The updates include incompatible changes for plural forms in Russian, Prussian, Tagalog, Manx and several languages that fall back to Russian. In addition there are minor changes for other languages.

In January 2014, CLDR 24 had introduced several changes in the plural forms for some of these languages, including Russian, and we had updated MediaWiki's plural rules to comply with the CLDR standard. Some of these changes are now being reverted. Below is a detailed explanation of the changes.

For the migration period, from Monday, 27th October 2014 to Thursday 6th November 2014, LocalisationUpdate is disabled at Wikimedia wikis to reduce the chance of ungrammatical translations being displayed in the interface. Translators are requested to update translations.

Russian and language using Russian as fallback[edit source]

Languages affected: Russian (ru), Abkhaz (ab), Avaric (av), Bashkir (ba), Buryat (bxr), Chechen (ce), Crimean Tatar (crh-cyrl), Chuvash (cv), Inguish (inh), Komi-Permyak (koi), Karachay-Balkar (krc), Komi (kv), Lak (lbe), Lezghian (lez), Eastern Mari (mhr), Western Mari (mrj), Yakut (sah), Tatar (tt), Tatar-Cyrillic (tt-cyrl), Tuvinian (tyv), Udmurt (udm), Kalmyk (xal).

CLDR 24 plural forms for Russian were:

  • Form 1: @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, …
  • Form 2: @integer 0, 5~19, 100, 1000, 10000, 100000, 1000000, …
  • Form 3: @integer 2~4, 22~24, 32~34, 42~44, 52~54, 62, 102, 1002, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …

This has been changed to :

  • Form 1: @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, …
  • Form 2: @integer 2~4, 22~24, 32~34, 42~44, 52~54, 62, 102, 1002, …
  • Form 3: @integer 0, 5~19, 100, 1000, 10000, 100000, 1000000, …
  • Form 4: @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …

Plurals in translations for affected languages have been updated automatically where possible. Translators are requested to check all messages containing plurals, starting from those which have been marked as outdated.

Prussian[edit source]

Prussian (prg) now follows the same rules as Latvian (lv):

  • Form 1: @integer 0, 10~20, 30, 40, 50, 60, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …
  • Form 2: @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1, 1.0, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 10.1, 100.1, 1000.1, …
  • Form 3: @integer 2~9, 22~29, 102, 1002, … @decimal 0.2~0.9, 1.2~1.9, 10.2, 100.2, 1000.2, …

Translators are requested to update all translations containing plural rules. Those translations have been marked as outdated.

Tagalog[edit source]

Tagalog (tl) has new rules as follows:

  • Form 1: @integer 0~3, 5, 7, 8, 10~13, 15, 17, 18, 20, 21, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~0.3, 0.5, 0.7, 0.8, 1.0~1.3, 1.5, 1.7, 1.8, 2.0, 2.1, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …
  • Form 2: @integer 4, 6, 9, 14, 16, 19, 24, 26, 104, 1004, … @decimal 0.4, 0.6, 0.9, 1.4, 1.6, 1.9, 2.4, 2.6, 10.4, 100.4, 1000.4, …

Translators are requested to update all translations containing plural rules. Those translations have been marked as outdated.

Manx[edit source]

Manx (gv) has a new (fourth) form for decimals. New rules are as follows:

  • Form 1: @integer 1, 11, 21, 31, 41, 51, 61, 71, 101, 1001, …
  • Form 2: @integer 2, 12, 22, 32, 42, 52, 62, 72, 102, 1002, …
  • Form 3: @integer 0, 20, 40, 60, 80, 100, 120, 140, 1000, 10000, 100000, 1000000, …
  • Form 4: @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …
  • Form 5: @integer 3~10, 13~19, 23, 103, 1003, …

Translators are requested to update all translations containing plural rules. Those translations have been marked as outdated.

Other languages[edit source]

  • In Mirandese (mwl), Portuguese (pt) and Brazilian Portuguese (pt-br), the first form now also includes zero.
  • In Uyghur (ug), Lower Sorbian (dsb) and Upper Sorbian (hsb), support for decimals was added.
  • In Asturian (ast) and Western Frisian (fy), the first form is no longer used for decimals.

Translators are encouraged to review translations with plural forms and update them where necessary. Because the changes have been minor, we have not marked those translations as outdated.

Nike (talk)18:35, 27 October 2014

Here is the output from the migration script.

Statistics (gv)[edit source]

Total translations: 1528
-- with {{        : 76 (5%)
-- with {{plural}}: 44 (2.9%)
---- instances: 1 : 41
---- instances: 2 : 3
---- updated      : 0 (0% of 44)
---- fuzzied      : 44 (100% of 44)

Statistics (tl)[edit source]

Total translations: 14750
-- with {{        : 1322 (9%)
-- with {{plural}}: 520 (3.5%)
---- instances: 1 : 440
---- instances: 2 : 66
---- instances: 3 : 13
---- instances: 4 : 1
---- updated      : 0 (0% of 520)
---- fuzzied      : 520 (100% of 520)

Statistics (prg)[edit source]

Total translations: 2013
-- with {{        : 150 (7.5%)
-- with {{plural}}: 100 (5%)
---- instances: 1 : 91
---- instances: 2 : 9
---- updated      : 0 (0% of 100)
---- fuzzied      : 100 (100% of 100)

Statistics (ru)[edit source]

Total translations: 20607
-- with {{        : 2291 (11.1%)
-- with {{plural}}: 847 (4.1%)
---- instances: 1 : 701
---- instances: 2 : 123
---- instances: 3 : 20
---- instances: 4 : 3
---- forms:   1+0 : 19
---- forms:   1+1 : 270
---- forms:   2+0 : 155
---- forms:   2+1 : 26
---- forms:   2+2 : 1
---- forms:   3+0 : 397
---- forms:   3+1 : 49
---- forms:   3+2 : 3
---- updated      : 376 (44.4% of 847)
---- fuzzied      : 0 (0% of 847)

Statistics (ab)[edit source]

Total translations: 165
-- with {{        : 4 (2.4%)
-- with {{plural}}: 1 (0.6%)
---- instances: 1 : 1
---- forms:   1+1 : 1
---- updated      : 0 (0% of 1)
---- fuzzied      : 0 (0% of 1)

Statistics (av)[edit source]

Total translations: 402
-- with {{        : 12 (3%)
-- with {{plural}}: 7 (1.7%)
---- instances: 1 : 7
---- forms:   1+1 : 5
---- forms:   3+0 : 2
---- updated      : 2 (28.6% of 7)
---- fuzzied      : 0 (0% of 7)

Statistics (ba)[edit source]

Total translations: 7889
-- with {{        : 784 (9.9%)
-- with {{plural}}: 274 (3.5%)
---- instances: 1 : 248
---- instances: 2 : 19
---- instances: 3 : 6
---- instances: 4 : 1
---- forms:   0+0 : 1
---- forms:   0+1 : 6
---- forms:   1+0 : 121
---- forms:   1+1 : 138
---- forms:   2+0 : 5
---- forms:   3+0 : 3
---- updated      : 3 (1.1% of 274)
---- fuzzied      : 0 (0% of 274)

Statistics (bxr)[edit source]

Total translations: 318
-- with {{        : 28 (8.8%)
-- with {{plural}}: 24 (7.5%)
---- instances: 1 : 24
---- forms:   1+0 : 22
---- forms:   2+0 : 1
---- forms:   2+1 : 1
---- updated      : 0 (0% of 24)
---- fuzzied      : 0 (0% of 24)

Statistics (ce)[edit source]

Total translations: 9369
-- with {{        : 1156 (12.3%)
-- with {{plural}}: 473 (5%)
---- instances: 1 : 395
---- instances: 2 : 65
---- instances: 3 : 12
---- instances: 4 : 1
---- forms:   1+0 : 158
---- forms:   1+1 : 145
---- forms:   2+0 : 158
---- forms:   2+1 : 6
---- forms:   3+0 : 8
---- updated      : 6 (1.3% of 473)
---- fuzzied      : 0 (0% of 473)

Statistics (crh-cyrl)[edit source]

Total translations: 1468
-- with {{        : 147 (10%)
-- with {{plural}}: 83 (5.7%)
---- instances: 1 : 80
---- instances: 2 : 3
---- forms:   1+0 : 3
---- forms:   1+1 : 80
---- updated      : 0 (0% of 83)
---- fuzzied      : 0 (0% of 83)

Statistics (cv)[edit source]

Total translations: 987
-- with {{        : 36 (3.6%)
-- with {{plural}}: 20 (2%)
---- instances: 1 : 19
---- instances: 2 : 1
---- forms:   1+0 : 2
---- forms:   1+1 : 16
---- forms:   2+0 : 1
---- forms:   3+0 : 2
---- updated      : 1 (5% of 20)
---- fuzzied      : 0 (0% of 20)

Statistics (inh)[edit source]

MediaWiki:Prevn/inh has too many forms
!!FUZZY!!!!FUZZY!!{{PLURAL:$1|хьалхйоаг|ар $1|хьалхйоаг|араш $1|хьалхйоаг|араш $1}}
Total translations: 924
-- with {{        : 55 (6%)
-- with {{plural}}: 37 (4%)
---- instances: 1 : 33
---- instances: 2 : 3
---- instances: 3 : 1
---- forms:   1+1 : 33
---- forms:   3+0 : 3
---- forms:   6+0 : 1
---- updated      : 3 (8.1% of 37)
---- fuzzied      : 1 (2.7% of 37)

Statistics (koi)[edit source]

Total translations: 584
-- with {{        : 34 (5.8%)
-- with {{plural}}: 25 (4.3%)
---- instances: 1 : 23
---- instances: 2 : 2
---- forms:   1+0 : 4
---- forms:   1+1 : 13
---- forms:   3+0 : 8
---- updated      : 8 (32% of 25)
---- fuzzied      : 0 (0% of 25)

Statistics (krc)[edit source]

Total translations: 4042
-- with {{        : 407 (10.1%)
-- with {{plural}}: 217 (5.4%)
---- instances: 1 : 197
---- instances: 2 : 15
---- instances: 3 : 4
---- instances: 4 : 1
---- forms:   1+0 : 85
---- forms:   1+1 : 64
---- forms:   2+0 : 66
---- forms:   2+1 : 2
---- updated      : 0 (0% of 217)
---- fuzzied      : 0 (0% of 217)

Statistics (kv)[edit source]

Total translations: 119
-- with {{        : 3 (2.5%)
-- with {{plural}}: 2 (1.7%)
---- instances: 1 : 2
---- forms:   1+0 : 1
---- forms:   1+1 : 1
---- updated      : 0 (0% of 2)
---- fuzzied      : 0 (0% of 2)

Statistics (lbe)[edit source]

Total translations: 41
-- with {{        : 0 (0%)
-- with {{plural}}: 0 (0%)
---- updated      : 0 (0% of 0)
---- fuzzied      : 0 (0% of 0)

Statistics (lez)[edit source]

Total translations: 1335
-- with {{        : 55 (4.1%)
-- with {{plural}}: 38 (2.8%)
---- instances: 1 : 34
---- instances: 2 : 3
---- instances: 3 : 1
---- forms:   1+0 : 2
---- forms:   1+1 : 34
---- forms:   2+0 : 2
---- updated      : 0 (0% of 38)
---- fuzzied      : 0 (0% of 38)

Statistics (mhr)[edit source]

Total translations: 892
-- with {{        : 49 (5.5%)
-- with {{plural}}: 33 (3.7%)
---- instances: 1 : 28
---- instances: 2 : 4
---- instances: 3 : 1
---- forms:   1+0 : 7
---- forms:   1+1 : 25
---- forms:   3+0 : 3
---- updated      : 1 (3% of 33)
---- fuzzied      : 0 (0% of 33)

Statistics (mrj)[edit source]

Total translations: 508
-- with {{        : 31 (6.1%)
-- with {{plural}}: 22 (4.3%)
---- instances: 1 : 20
---- instances: 2 : 2
---- forms:   1+1 : 7
---- forms:   2+0 : 2
---- forms:   3+0 : 15
---- updated      : 13 (59.1% of 22)
---- fuzzied      : 0 (0% of 22)

Statistics (sah)[edit source]

Total translations: 6932
-- with {{        : 659 (9.5%)
-- with {{plural}}: 217 (3.1%)
---- instances: 1 : 188
---- instances: 2 : 23
---- instances: 3 : 6
---- forms:   1+0 : 6
---- forms:   1+1 : 6
---- forms:   2+0 : 204
---- forms:   2+1 : 1
---- updated      : 0 (0% of 217)
---- fuzzied      : 0 (0% of 217)

Statistics (tt)[edit source]

Total translations: 30
-- with {{        : 2 (6.7%)
-- with {{plural}}: 2 (6.7%)
---- instances: 1 : 2
---- forms:   1+0 : 1
---- forms:   2+0 : 1
---- updated      : 0 (0% of 2)
---- fuzzied      : 0 (0% of 2)

Statistics (tt-cyrl)[edit source]

Total translations: 3085
-- with {{        : 271 (8.8%)
-- with {{plural}}: 98 (3.2%)
---- instances: 1 : 83
---- instances: 2 : 10
---- instances: 3 : 5
---- forms:   0+1 : 2
---- forms:   1+0 : 50
---- forms:   1+1 : 39
---- forms:   2+0 : 3
---- forms:   3+0 : 6
---- updated      : 4 (4.1% of 98)
---- fuzzied      : 0 (0% of 98)

Statistics (tyv)[edit source]

Total translations: 1188
-- with {{        : 87 (7.3%)
-- with {{plural}}: 56 (4.7%)
---- instances: 1 : 55
---- instances: 3 : 1
---- forms:   1+0 : 24
---- forms:   1+1 : 25
---- forms:   2+0 : 7
---- updated      : 0 (0% of 56)
---- fuzzied      : 0 (0% of 56)

Statistics (udm)[edit source]

Total translations: 210
-- with {{        : 9 (4.3%)
-- with {{plural}}: 6 (2.9%)
---- instances: 1 : 6
---- forms:   1+1 : 6
---- updated      : 0 (0% of 6)
---- fuzzied      : 0 (0% of 6)

Statistics (xal)[edit source]

Total translations: 947
-- with {{        : 60 (6.3%)
-- with {{plural}}: 36 (3.8%)
---- instances: 1 : 33
---- instances: 2 : 3
---- forms:   1+0 : 2
---- forms:   1+1 : 20
---- forms:   2+0 : 2
---- forms:   3+0 : 14
---- updated      : 12 (33.3% of 36)
---- fuzzied      : 0 (0% of 36)
Nike (talk)20:48, 27 October 2014

520 fuzzied for Tagalog? :o Better copy this message there (done). Yay for 0 fuzzy in Russian. :)

Nemo (talk)07:02, 28 October 2014
 

I have fixed this:

MediaWiki:Prevn/inh has too many forms
Shirayuki (talk)21:30, 28 October 2014