Plural/Mediawiki plural rules

From translatewiki.net
< Plural
Revision as of 10:41, 1 April 2012 by Lloffiwr (talk | contribs) (change links to git)
Jump to navigation Jump to search

This page is a draft and may contain errors. Contributions welcome.

The table shows the MediaWiki plural rules for all languages enabled for localisation at translatewiki.net.

The default rules are those for English, with one form for the number 1 and another for all other numbers.

At present Mediawiki does not have rules for decimal numbers.??????

Follow the link in the group column to view the code in its language.php file (index of all language.php files).

Language Code Group Rules Examples
Afar aa Default
Abkhazian ab Default
Achinese ace Default
Adyghe ady Default
Tunisian Arabic aeb Default
Afrikaans af Default
Akan ak Default
Alabama akz Default
Gheg Albanian aln Default
Tosk als Default
Amharic am one-zero <=1
other
0, 1
2, 3...
Aragonese an Default
Old English ang Default
Angika anp Default
Arabic ar arabic 0
1
2
mod 100 in 3..10
mod 100 in 11..99
other
0
1
2
3..10, 103..110, 203..210...
11..99, 111..199, 211..299...
100..102, 200..202, 300..302...
Aramaic arc Default
Mapuche arn Default
Araona aro Default
Algerian Arabic arq Default
Moroccan Arabic ary Default
Egyptian Arabic arz Default
Assamese as Default
Asturian ast Default
Avaric av Default
Kotava avk Default
Aymara ay Default
Azerbaijani az zero other 0, 1...
Bashkir ba Default
Bavarian bar Default
Batak Toba bbc Default
Southern Balochi bcc Default
Central Bikol bcl Default
Belarusian be Rule K n mod 10 is 1 and n mod 100 is not 11
n mod 10 in 2..4 and n mod 100 not in 12..14
n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14
1, 21, 31, 41, 51, 61...
2-4, 22-24, 32-34...
0, 5-20, 25-30, 35-40...
Betawi bew Default
Badaga bfq Default
Bulgarian bg default Default
Bhojpuri bho one-zero <=1
other
0, 1
2, 3...
Bislama bi Default
Banjar bjn Default
Bambara bm Default
Bangla bn Default
Tibetan bo Default
Bishnupriya bpy Default
Bakhtiari bqi Default
Breton br Default
Brahui brh Default
Bosnian bs Rule
Czech cs Rule
Church Slavic cu Rule
Welsh cy Rule Q 0
1
2
3
6
other
0
1
2
3
6
4, 5, 7, 8...
Lower Sorbian dsb Rule
English en 1
other
1
0, 2, 3...
Esperanto eo default Default
Estonian et default Default
Finnish fi default Default
French fr one-zero <=1
other
0, 1
2, 3...
Irish ga Rule H 1
2
3..6
7..10
other
1
2
3..6
7..10
11, 12...
Gan Chinese gan default Default
Scottish Gaelic gd Rule X 1
2
11
12
3..10, 13..19
0, 20..
1
2
11
12
3..10, 13..19
0, 20..
Manx gv Rule
Hebrew he Rule 1
2
other
1
2
0, 3..
Hindi hi one-zero <=1
other
0, 1
2, 3...
Croatian hr Rule
Upper Sorbian hsb Rule
Hungarian hu default Default
Armenian hy one-zero <=1
other
0, 1
2, 3...
Inuktitut iu default Default
Japanese ja default Default
Kara-Kalpak kaa default Default
Kazakh kk default Default
Khmer km default Default
Colognian ksh Rule U 0
1
other
0
1
2, 3, 4...
Kurdish ku default Default
Latin la default Default
Lingala ln one-zero <=1
other
0, 1
2, 3...
Lithuanian lt Rule J n mod 10 is 1 and n mod 100 not in 11..19
n mod 10 in 2..9 and n mod 100 not in 11..19
other
1, 21, 31...
2-9, 22-29, 32-39...
0, 10-20, 30, 40...
Malagasy mg one-zero <=1
other
0, 1
2, 3...
Malayalam ml default Default
Burmese my default Default
Northern Sotho nso one-zero <=1
other
0, 1
2, 3...
Ossetic os default Default
Russian ru Rule K n mod 10 is 1 and n mod 100 is not 11
n mod 10 in 2..4 and n mod 100 not in 12..14
n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14
1, 21, 31, 41, 51, 61...
2-4, 22-24, 32-34...
0, 5-20, 25-30, 35-40...
Tachelhit shi default Default
Serbian sr Rule K n mod 10 is 1 and n mod 100 is not 11
n mod 10 in 2..4 and n mod 100 not in 12..14
n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14
1, 21, 31, 41, 51, 61...
2-4, 22-24, 32-34...
0, 5-20, 25-30, 35-40...
Tajik tg default Default
Tigrinya ti one-zero <=1
other
0, 1
2, 3...
Tagalog tl one-zero <=1
other
0, 1
2, 3...
Turkish tr default Default
Tuvinian tyv default Default
Ukrainian uk Rule K n mod 10 is 1 and n mod 100 is not 11
n mod 10 in 2..4 and n mod 100 not in 12..14
n mod 10 is 0 or n mod 10 in 5..9 or n mod 100 in 11..14
1, 21, 31, 41, 51, 61...
2-4, 22-24, 32-34...
0, 5-20, 25-30, 35-40...
Cantonese yue default Default
Chinese zh default Default
Walloon wa one-zero <=1
other
0, 1
2, 3...