Plural-Forms for every language

The gettext Plural-Forms header for 209 languages, built from the CLDR 47 plural rules and checked against them number by number, and a checker for the header your catalogue already has.

Check a Plural-Forms header

Paste the value, the whole "Plural-Forms: ...\n" line, or the header block of a .po file. Nothing leaves your browser.

How gettext picks a form

A translated message with a number has one msgstr per form: msgstr[0], msgstr[1] and so on. When a program calls ngettext() with a count, gettext puts the count into the plural= expression of the catalogue's header as n and shows the form the expression returns. nplurals= says how many forms each message has.

The expression is a C expression over whole numbers: n, numbers, comparisons, %, &&, ||, ! and ? :. English needs two forms, and (n != 1) returns 0 for 1 and 1 for every other count. Russian needs three, chosen by the last digits: 1, 21 and 101 take one form, 2 to 4 and 22 to 24 another, and 0, 5 to 20 and 25 to 30 the third.

What the checker looks at

The checker evaluates the header for 22,017 counts: every number from 0 to 20,000, every thousand up to 2,000,000, and round numbers up to a billion. The order of the forms is a convention. The table follows CLDR's order, zero, one, two, few, many, other; a header in another order works as long as each translation sits in the form its numbers get.

Why some headers differ from CLDR

Fractions. CLDR also has forms for fractional numbers: Russian uses "other" for 1.5, Czech "many" for 0.5. gettext counts are whole numbers, so those forms get no msgstr. That is why a header generated straight from CLDR, by Babel's to_gettext() for one, gives Russian, Ukrainian, Polish, Czech and Slovak four forms while their catalogues have three. For French and Portuguese, among others, it also writes CLDR's e operand into the expression, which gettext does not know.

Round millions. Recent CLDR versions give exact millions a separate form in Breton, Catalan, French, Italian, Portuguese, Sicilian, Spanish and Venetian: French and Spanish write un million de fichiers, un millón de archivos. Most catalogues keep the usual forms and accept that; the table gives the exact header under the usual one.

Older headers. Some headers in older guides and catalogues predate CLDR's rules and split the numbers differently, the long-standing Welsh and Latvian ones among them. If your catalogue already uses one, changing the header changes what msgstr[0], msgstr[1] and the rest mean: move the translations with it, or keep the old header.

All 209 languages

Each header puts every whole number on the form of its CLDR category. The last column shows which numbers go where, up to 199. Languages are listed by English name, with their CLDR code.

gettext Plural-Forms from CLDR 47 (Babel 2.18.0), checked on 22,017 whole numbers.
LanguageCodeFormsPlural-FormsNumbers in each form
Afrikaansaf2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Akanak2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Albaniansq2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Amharicam2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Aniiblo3nplurals=3; plural=(n == 0) ? 0 : (n == 1) ? 1 : 2;
  • 0 zero: 0
  • 1 one: 1
  • 2 other: 2–199…
Arabicar6nplurals=6; plural=(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11) ? 4 : 5))));
  • 0 zero: 0
  • 1 one: 1
  • 2 two: 2
  • 3 few: 3–10, 103–110
  • 4 many: 11–99, 111–199…
  • 5 other: 100–102
Aragonesean2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Armenianhy2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Assameseas2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Asturianast2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Asuasa2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Azerbaijaniaz2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Baluchibal2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Bambarabm1nplurals=1; plural=0;
  • 0 other: 0–199…
Banglabn2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Basqueeu2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Belarusianbe3nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2;
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 few: 2–4, 22–24, 32–34, 42–44, 52–54, 62–64…
  • 2 many: 0, 5–20, 25–30, 35–40, 45–50, 55–60…
Bembabem2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Benabez2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Bhojpuribho2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Bodobrx2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Bosnianbs3nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2;
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 few: 2–4, 22–24, 32–34, 42–44, 52–54, 62–64…
  • 2 other: 0, 5–20, 25–30, 35–40, 45–50, 55–60…
Bretonbr4nplurals=4; plural=(n % 10 == 1 && !(n % 100 == 11 || n % 100 == 71 || n % 100 == 91)) ? 0 : (n % 10 == 2 && !(n % 100 == 12 || n % 100 == 72 || n % 100 == 92)) ? 1 : ((n % 10 >= 3 && n % 10 <= 4 || n % 10 == 9) && !(n % 100 >= 10 && n % 100 <= 19 || n % 100 >= 70 && n % 100 <= 79 || n % 100 >= 90 && n % 100 <= 99)) ? 2 : 3;

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=5; plural=(n % 10 == 1 && !(n % 100 == 11 || n % 100 == 71 || n % 100 == 91)) ? 0 : (n % 10 == 2 && !(n % 100 == 12 || n % 100 == 72 || n % 100 == 92)) ? 1 : ((n % 10 >= 3 && n % 10 <= 4 || n % 10 == 9) && !(n % 100 >= 10 && n % 100 <= 19 || n % 100 >= 70 && n % 100 <= 79 || n % 100 >= 90 && n % 100 <= 99)) ? 2 : (n != 0 && n % 1000000 == 0) ? 3 : 4;

  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 two: 2, 22, 32, 42, 52, 62…
  • 2 few: 3, 4, 9, 23, 24, 29, 33, 34, 39…
  • 3 other: 0, 5–8, 10–20, 25–28, 30, 35–38…
Bulgarianbg2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Burmesemy1nplurals=1; plural=0;
  • 0 other: 0–199…
Cantoneseyue1nplurals=1; plural=0;
  • 0 other: 0–199…
Catalanca2nplurals=2; plural=(n != 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n == 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 1
  • 1 other: 0, 2–199…
Cebuanoceb2nplurals=2; plural=(n == 1 || n == 2 || n == 3 || !(n % 10 == 4 || n % 10 == 6 || n % 10 == 9)) ? 0 : 1;
  • 0 one: 0–3, 5, 7, 8, 10–13, 15, 17, 18…
  • 1 other: 4, 6, 9, 14, 16, 19…
Central Atlas Tamazighttzm2nplurals=2; plural=(n <= 1 || n >= 11 && n <= 99) ? 0 : 1;
  • 0 one: 0, 1, 11–99
  • 1 other: 2–10, 100–199…
Central Kurdishckb2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Chechence2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Cherokeechr2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Chigacgg2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Chinesezh1nplurals=1; plural=0;
  • 0 other: 0–199…
Colognianksh3nplurals=3; plural=(n == 0) ? 0 : (n == 1) ? 1 : 2;
  • 0 zero: 0
  • 1 one: 1
  • 2 other: 2–199…
Cornishkw6nplurals=6; plural=(n == 0) ? 0 : (n == 1) ? 1 : (n % 100 == 2 || n % 100 == 22 || n % 100 == 42 || n % 100 == 62 || n % 100 == 82 || n % 1000 == 0 && (n % 100000 >= 1000 && n % 100000 <= 20000 || n % 100000 == 40000 || n % 100000 == 60000 || n % 100000 == 80000) || n != 0 && n % 1000000 == 100000) ? 2 : (n % 100 == 3 || n % 100 == 23 || n % 100 == 43 || n % 100 == 63 || n % 100 == 83) ? 3 : (n != 1 && (n % 100 == 1 || n % 100 == 21 || n % 100 == 41 || n % 100 == 61 || n % 100 == 81)) ? 4 : 5;
  • 0 zero: 0
  • 1 one: 1
  • 2 two: 2, 22, 42, 62, 82, 102…
  • 3 few: 3, 23, 43, 63, 83, 103…
  • 4 many: 21, 41, 61, 81, 101, 121…
  • 5 other: 4–20, 24–40, 44–60, 64–80, 84–100, 104–120…
Croatianhr3nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2;
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 few: 2–4, 22–24, 32–34, 42–44, 52–54, 62–64…
  • 2 other: 0, 5–20, 25–30, 35–40, 45–50, 55–60…
Czechcs3nplurals=3; plural=(n == 1) ? 0 : ((n >= 2 && n <= 4) ? 1 : 2);
  • 0 one: 1
  • 1 few: 2–4
  • 2 other: 0, 5–199…
Danishda2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Divehidv2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Dogridoi2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Dutchnl2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Dzongkhadz1nplurals=1; plural=0;
  • 0 other: 0–199…
Englishen2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Esperantoeo2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Estonianet2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Eweee2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Faroesefo2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Filipinofil2nplurals=2; plural=(n != 1 && n != 2 && n != 3 && (n % 10 == 4 || n % 10 == 6 || n % 10 == 9));
  • 0 one: 0–3, 5, 7, 8, 10–13, 15, 17, 18…
  • 1 other: 4, 6, 9, 14, 16, 19…
Finnishfi2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Frenchfr2nplurals=2; plural=(n > 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n == 0 || n == 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 0, 1
  • 1 other: 2–199…
Friulianfur2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Fulaff2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Galiciangl2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Gandalg2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Georgianka2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Germande2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Greekel2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Gujaratigu2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Hausaha2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Hawaiianhaw2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Hebrewhe3nplurals=3; plural=(n == 1) ? 0 : ((n == 2) ? 1 : 2);
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Hindihi2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Hmong Njuahnj1nplurals=1; plural=0;
  • 0 other: 0–199…
Hungarianhu2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Icelandicis2nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 other: 0, 2–20, 22–30, 32–40, 42–50, 52–60…
Idoio2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Igboig1nplurals=1; plural=0;
  • 0 other: 0–199…
Inari Samismn3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Indonesianid1nplurals=1; plural=0;
  • 0 other: 0–199…
Interlinguaia2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Inuktitutiu3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Irishga5nplurals=5; plural=(n == 1) ? 0 : (n == 2) ? 1 : (n >= 3 && n <= 6) ? 2 : (n >= 7 && n <= 10) ? 3 : 4;
  • 0 one: 1
  • 1 two: 2
  • 2 few: 3–6
  • 3 many: 7–10
  • 4 other: 0, 11–199…
Italianit2nplurals=2; plural=(n != 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n == 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 1
  • 1 other: 0, 2–199…
Japaneseja1nplurals=1; plural=0;
  • 0 other: 0–199…
Javanesejv1nplurals=1; plural=0;
  • 0 other: 0–199…
Jjukaj2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Kabuverdianukea1nplurals=1; plural=0;
  • 0 other: 0–199…
Kabylekab2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Kakokkj2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Kalaallisutkl2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Kannadakn2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Kashmiriks2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Kazakhkk2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Khmerkm1nplurals=1; plural=0;
  • 0 other: 0–199…
Koreanko1nplurals=1; plural=0;
  • 0 other: 0–199…
Koyraboro Sennises1nplurals=1; plural=0;
  • 0 other: 0–199…
Kurdishku2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Kyrgyzky2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Lakotalkt1nplurals=1; plural=0;
  • 0 other: 0–199…
Langilag3nplurals=3; plural=(n == 0) ? 0 : ((n == 0 || n == 1) && n != 0) ? 1 : 2;
  • 0 zero: 0
  • 1 one: 1
  • 2 other: 2–199…
Laolo1nplurals=1; plural=0;
  • 0 other: 0–199…
Latvianlv3nplurals=3; plural=(n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19) ? 0 : (n % 10 == 1 && n % 100 != 11) ? 1 : 2;
  • 0 zero: 0, 10–20, 30, 40, 50, 60…
  • 1 one: 1, 21, 31, 41, 51, 61…
  • 2 other: 2–9, 22–29, 32–39, 42–49, 52–59, 62–69…
Ligurianlij2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Lingalaln2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Lithuanianlt3nplurals=3; plural=(n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) ? 0 : (n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) ? 1 : 2;
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 few: 2–9, 22–29, 32–39, 42–49, 52–59, 62–69…
  • 2 other: 0, 10–20, 30, 40, 50, 60…
Lojbanjbo1nplurals=1; plural=0;
  • 0 other: 0–199…
Lower Sorbiandsb4nplurals=4; plural=(n % 100 == 1) ? 0 : (n % 100 == 2) ? 1 : (n % 100 >= 3 && n % 100 <= 4) ? 2 : 3;
  • 0 one: 1, 101
  • 1 two: 2, 102
  • 2 few: 3, 4, 103, 104
  • 3 other: 0, 5–100, 105–199…
Lule Samismj3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Luxembourgishlb2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Macedonianmk2nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 other: 0, 2–20, 22–30, 32–40, 42–50, 52–60…
Machamejmc2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Makondekde1nplurals=1; plural=0;
  • 0 other: 0–199…
Malagasymg2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Malayms1nplurals=1; plural=0;
  • 0 other: 0–199…
Malayalamml2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Maltesemt5nplurals=5; plural=(n == 1) ? 0 : (n == 2) ? 1 : (n == 0 || n % 100 >= 3 && n % 100 <= 10) ? 2 : (n % 100 >= 11 && n % 100 <= 19) ? 3 : 4;
  • 0 one: 1
  • 1 two: 2
  • 2 few: 0, 3–10, 103–110
  • 3 many: 11–19, 111–119
  • 4 other: 20–102, 120–199…
Manxgv4nplurals=4; plural=(n % 10 == 1) ? 0 : (n % 10 == 2) ? 1 : (n % 100 == 0 || n % 100 == 20 || n % 100 == 40 || n % 100 == 60 || n % 100 == 80) ? 2 : 3;
  • 0 one: 1, 11, 21, 31, 41, 51…
  • 1 two: 2, 12, 22, 32, 42, 52…
  • 2 few: 0, 20, 40, 60, 80, 100…
  • 3 other: 3–10, 13–19, 23–30, 33–39, 43–50, 53–59…
Marathimr2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Masaimas2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Metaʼmgo2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Mongolianmn2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Namanaq3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Nepaline2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Ngiemboonnnh2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Ngombajgo2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Nigerian Pidginpcm2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
North Ndebelend2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Northern Samise3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Northern Sothonso2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Norwegianno2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Norwegian Bokmålnb2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Norwegian Nynorsknn2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Nyanjany2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Nyankolenyn2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
N’Konqo1nplurals=1; plural=0;
  • 0 other: 0–199…
Odiaor2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Oromoom2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Osageosa1nplurals=1; plural=0;
  • 0 other: 0–199…
Osseticos2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Papiamentopap2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Pashtops2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Persianfa2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Polishpl3nplurals=3; plural=(n == 1) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);
  • 0 one: 1
  • 1 few: 2–4, 22–24, 32–34, 42–44, 52–54, 62–64…
  • 2 many: 0, 5–21, 25–31, 35–41, 45–51, 55–61…
Portuguesept2nplurals=2; plural=(n > 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n <= 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 0, 1
  • 1 other: 2–199…
Portuguese (Portugal)pt-PT2nplurals=2; plural=(n != 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n == 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 1
  • 1 other: 0, 2–199…
Prussianprg3nplurals=3; plural=(n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19) ? 0 : (n % 10 == 1 && n % 100 != 11) ? 1 : 2;
  • 0 zero: 0, 10–20, 30, 40, 50, 60…
  • 1 one: 1, 21, 31, 41, 51, 61…
  • 2 other: 2–9, 22–29, 32–39, 42–49, 52–59, 62–69…
Punjabipa2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Romanianro3nplurals=3; plural=(n == 1) ? 0 : ((n == 0 || n % 100 >= 1 && n % 100 <= 19) ? 1 : 2);
  • 0 one: 1
  • 1 few: 0, 2–19, 101–119
  • 2 other: 20–100, 120–199…
Romanshrm2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Romborof2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Russianru3nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 few: 2–4, 22–24, 32–34, 42–44, 52–54, 62–64…
  • 2 many: 0, 5–20, 25–30, 35–40, 45–50, 55–60…
Rwarwk2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Sahossy2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Samburusaq2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Sangosg1nplurals=1; plural=0;
  • 0 other: 0–199…
Santalisat3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Sardiniansc2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Scottish Gaelicgd4nplurals=4; plural=(n == 1 || n == 11) ? 0 : ((n == 2 || n == 12) ? 1 : ((n > 2 && n < 20) ? 2 : 3));
  • 0 one: 1, 11
  • 1 two: 2, 12
  • 2 few: 3–10, 13–19
  • 3 other: 0, 20–199…
Senaseh2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Serbiansr3nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 few: 2–4, 22–24, 32–34, 42–44, 52–54, 62–64…
  • 2 other: 0, 5–20, 25–30, 35–40, 45–50, 55–60…
Shambalaksb2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Shonasn2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Sichuan Yiii1nplurals=1; plural=0;
  • 0 other: 0–199…
Sicilianscn2nplurals=2; plural=(n != 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n == 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 1
  • 1 other: 0, 2–199…
Sindhisd2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Sinhalasi2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Skolt Samisms3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Slovaksk3nplurals=3; plural=(n == 1) ? 0 : ((n >= 2 && n <= 4) ? 1 : 2);
  • 0 one: 1
  • 1 few: 2–4
  • 2 other: 0, 5–199…
Sloveniansl4nplurals=4; plural=(n % 100 == 1) ? 0 : ((n % 100 == 2) ? 1 : ((n % 100 == 3 || n % 100 == 4) ? 2 : 3));
  • 0 one: 1, 101
  • 1 two: 2, 102
  • 2 few: 3, 4, 103, 104
  • 3 other: 0, 5–100, 105–199…
Sogaxog2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Somaliso2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
South Ndebelenr2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Southern Kurdishsdh2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Southern Samisma3nplurals=3; plural=(n == 1) ? 0 : (n == 2) ? 1 : 2;
  • 0 one: 1
  • 1 two: 2
  • 2 other: 0, 3–199…
Southern Sothost2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Spanishes2nplurals=2; plural=(n != 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n == 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 1
  • 1 other: 0, 2–199…
Sundanesesu1nplurals=1; plural=0;
  • 0 other: 0–199…
Swahilisw2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Swampy Creecsw2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Swatiss2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Swedishsv2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Swiss Germangsw2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Syriacsyr2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Tachelhitshi3nplurals=3; plural=(n == 0 || n == 1) ? 0 : (n >= 2 && n <= 10) ? 1 : 2;
  • 0 one: 0, 1
  • 1 few: 2–10
  • 2 other: 11–199…
Tamilta2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Telugute2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Tesoteo2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Thaith1nplurals=1; plural=0;
  • 0 other: 0–199…
Tibetanbo1nplurals=1; plural=0;
  • 0 other: 0–199…
Tigretig2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Tigrinyati2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Tok Pisintpi1nplurals=1; plural=0;
  • 0 other: 0–199…
Tonganto1nplurals=1; plural=0;
  • 0 other: 0–199…
Tsongats2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Tswanatn2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Turkishtr2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Turkmentk2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Tyapkcg2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Ukrainianuk3nplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);
  • 0 one: 1, 21, 31, 41, 51, 61…
  • 1 few: 2–4, 22–24, 32–34, 42–44, 52–54, 62–64…
  • 2 many: 0, 5–20, 25–30, 35–40, 45–50, 55–60…
Upper Sorbianhsb4nplurals=4; plural=(n % 100 == 1) ? 0 : (n % 100 == 2) ? 1 : (n % 100 >= 3 && n % 100 <= 4) ? 2 : 3;
  • 0 one: 1, 101
  • 1 two: 2, 102
  • 2 few: 3, 4, 103, 104
  • 3 other: 0, 5–100, 105–199…
Urduur2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Uyghurug2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Uzbekuz2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Vendave2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Venetianvec2nplurals=2; plural=(n != 1);

Exact, with a separate form for round millions (1000000, 2000000, 3000000…): nplurals=3; plural=(n == 1) ? 0 : (n != 0 && n % 1000000 == 0) ? 1 : 2;

  • 0 one: 1
  • 1 other: 0, 2–199…
Vietnamesevi1nplurals=1; plural=0;
  • 0 other: 0–199…
Volapükvo2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Vunjovun2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Walloonwa2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…
Walserwae2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Welshcy6nplurals=6; plural=(n == 0) ? 0 : (n == 1) ? 1 : (n == 2) ? 2 : (n == 3) ? 3 : (n == 6) ? 4 : 5;
  • 0 zero: 0
  • 1 one: 1
  • 2 two: 2
  • 3 few: 3
  • 4 many: 6
  • 5 other: 4, 5, 7–199…
Western Frisianfy2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Wolofwo1nplurals=1; plural=0;
  • 0 other: 0–199…
Xhosaxh2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Yakutsah1nplurals=1; plural=0;
  • 0 other: 0–199…
Yiddishyi2nplurals=2; plural=(n != 1);
  • 0 one: 1
  • 1 other: 0, 2–199…
Yorubayo1nplurals=1; plural=0;
  • 0 other: 0–199…
Zuluzu2nplurals=2; plural=(n > 1);
  • 0 one: 0, 1
  • 1 other: 2–199…

Questions

Why does Babel give Russian four plural forms when gettext uses three?

CLDR gives Russian a fourth form, "other", for fractional numbers such as 1.5. Babel's to_gettext() turns every CLDR form into a msgstr, but a gettext count is always a whole number, so that fourth form is never used. The usual three-form header puts every whole number on the same form CLDR does.

Should a French, Spanish or Italian catalogue switch to the three-form header?

Only if the program shows exact millions with a plural, and the translations need the de form there. Changing nplurals means every plural entry needs a new msgstr, so most projects keep two forms. Both headers are in the table and both pass the checker.

Which languages are missing?

Languages without plural rules of their own in CLDR: a header for them would be a guess presented as data. A regional variant has a row of its own only where CLDR gives it different rules. European Portuguese is the one case: 0 takes the "other" form there, while Portuguese elsewhere puts 0 with 1.

How the table was made

The plural rules are CLDR 47 as Babel 2.18.0 ships them. For each of the 209 languages with rules of their own, every one of the 22,017 counts above was given its CLDR form. The header is the first one that puts all of them on the right msgstr: our own list from translation-checks, the usual (n != 1), (n > 1) or 0, or an expression compiled from the CLDR rule with the fraction and exponent operands set to zero. Every header was evaluated with the same parser the checker uses. A form CLDR uses only for fractions gets no msgstr, and a form used only for exact millions shares "other" in the main header.

Checking whole catalogues

This page checks one header. translation-checks, free under the MIT licence, checks a whole .po file with the same rules: the header, a msgstr for every form of every plural entry, the placeholders, numbers and tags of each translation, and forms used for several numbers that leave the number out. It runs as a pre-commit hook. Polyglot, one of our kits, translates catalogues with a local model and puts every line through those checks before it is written. How we checked the plural forms of our own 42 languages is in the field note gettext Plural-Forms, checked number by number.

Updated: