Plural-Forms gettext pou 42 lang, tcheke nonm pa nonm kont CLDR

Lang yo

Yon antre pliryèl gettext kenbe fòm li yo nan plas nimewote, msgstr[0], msgstr[1] epi konsa, epi liy Plural-Forms nan tèt fichye a se yon ti fòmil C ki chwazi plas la pou yon nimewo. Pou Polyglot 1.4.0, nou te bezwen fòmil sa a pou tout 42 lang li tradui, epi chak plas te dwe kenbe fòm CLDR bay pou menm nimewo yo — CLDR se done pliryèl ki dèyè Android, ICU ak pwòp tcheke nou yo. Men tablo a, ak kijan nou te tcheke l.

Antèt pou chak lang CLDR gen règ pou pliryèl, ak yon tcheke pou pa w la, se sou Plural-Forms pou chak lang.

Kijan nou te tcheke l

Kote ansyen done yo pa t dakò

Nou te kòmanse tcheke kont Babel 2.10, ki pote CLDR 41 soti 2022. Twa lang te soti diferan, epi nan chak ka, done pi resan an ak lang lan menm dakò ak tablo a:

Sa plas yo kenbe

Tablo a

LanggettextPlural-Formsmsgstr[0], [1]…
Amarikamnplurals=2; plural=(n > 1);one, other
Arabarnplurals=6; plural=(n == 0) ? 0 : ((n == 1) ? 1 : ((n == 2) ? 2 : ((n % 100 >= 3 && n % 100 <= 10) ? 3 : ((n % 100 >= 11) ? 4 : 5))));zero, one, two, few, many, other
Amenyenhynplurals=2; plural=(n > 1);one, other
Bilgbgnplurals=2; plural=(n != 1);one, other
Chinwa (Senplifye)zh_CNnplurals=1; plural=0;other
Chinwa (Tradisyonèl)zh_TWnplurals=1; plural=0;other
Tchèquecsnplurals=3; plural=(n == 1) ? 0 : ((n >= 2 && n <= 4) ? 1 : 2);one, few, other
Olandènlnplurals=2; plural=(n != 1);one, other
Filipinofilnplurals=2; plural=(n != 1 && n != 2 && n != 3 && (n % 10 == 4 || n % 10 == 6 || n % 10 == 9));one, other
Finnwafinplurals=2; plural=(n != 1);one, other
Fransefrnplurals=2; plural=(n > 1);one, other
Almandenplurals=2; plural=(n != 1);one, other
Grèkelnplurals=2; plural=(n != 1);one, other
Kreyòl Ayisyenhtnplurals=1; plural=0;other
Ebrehenplurals=3; plural=(n == 1) ? 0 : ((n == 2) ? 1 : 2);one, two, other
Ongwahunplurals=2; plural=(n != 1);one, other
Endonezyenidnplurals=1; plural=0;other
Italianitnplurals=2; plural=(n != 1);one, other
Japonejanplurals=1; plural=0;other
Kannadaknnplurals=2; plural=(n > 1);one, other
Khmerkmnplurals=1; plural=0;other
Koreyenkonplurals=1; plural=0;other
Masedonyenmknplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;one, other
Malaymsnplurals=1; plural=0;other
Norvejyen Bokmålnbnplurals=2; plural=(n != 1);one, other
Oromoomnplurals=2; plural=(n != 1);one, other
Pèsyenfanplurals=2; plural=(n > 1);one, other
Polonèplnplurals=3; plural=(n == 1) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);one, few, many
Pòtigè (Brezil)pt_BRnplurals=2; plural=(n > 1);one, other
Punjabipanplurals=2; plural=(n > 1);one, other
Woumenronplurals=3; plural=(n == 1) ? 0 : ((n == 0 || n % 100 >= 1 && n % 100 <= 19) ? 1 : 2);one, few, other
Risyenrunplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);one, few, many
Gaelik Ekosègdnplurals=4; plural=(n == 1 || n == 11) ? 0 : ((n == 2 || n == 12) ? 1 : ((n > 2 && n < 20) ? 2 : 3));one, two, few, other
Sèbyen (Sirilik)srnplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);one, few, other
Slovaksknplurals=3; plural=(n == 1) ? 0 : ((n >= 2 && n <= 4) ? 1 : 2);one, few, other
Slovenyenslnplurals=4; plural=(n % 100 == 1) ? 0 : ((n % 100 == 2) ? 1 : ((n % 100 == 3 || n % 100 == 4) ? 2 : 3));one, two, few, other
Panyòlesnplurals=2; plural=(n != 1);one, other
Syedwasvnplurals=2; plural=(n != 1);one, other
Taythnplurals=1; plural=0;other
Tiktrnplurals=2; plural=(n != 1);one, other
Ikrènuknplurals=3; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2);one, few, many
Vyetnamyenvinplurals=1; plural=0;other

Sa egzekisyon reyèl la te jwenn

Fòm zewo ak de nan lang Arab la te refize nan premye tan paske yo pa te genyen %(n)s. Yon fòm pou yon sèl nimewo ka fè sa, epi fòm de nan lang Arab la di "de" pou kont li, men tcheke nou an te konnen sèlman %d ak {count} kòm kont la. Kounye a li konnen %(n)s ak %(count)d Python tou, sa vle di tou yon "one" Ris san nimewo a refize, paske "one" Ris la se 21 ak 31 tou. Menm egzekisyon an te fè modèl la li tradiksyon li yo pou sans, epi li te kenbe "Unsubscribe" Tchèk ki te ekri kòm "log out".

Kote li ye

Polyglot 1.4.0 ekri tèt sa yo nan chak fichye .po li pwodui epi li mete chak fòm nan plas li. Poukisa yon fòm itilize pou plizyè nimewo dwe montre nimewo a se nan yon nòt anvan, epi tcheke yo menm yo gratis nan translation-checks, ki depi 1.3.0 li li yon fichye .po ou deja genyen epi li di lè Plural-Forms li a mete nimewo nan yon sèl plas ke CLDR bay fòm diferan.