diff options
author | Yuriy Shatrov <y_shatrov@wargaming.net> | 2016-04-05 11:24:51 +0300 |
---|---|---|
committer | Yuriy Shatrov <y_shatrov@wargaming.net> | 2016-04-05 12:40:36 +0300 |
commit | 128afa091715a194e1483f9d606c370cf6ae794d (patch) | |
tree | 50d352601a65c69aa6280ca721e2d0241abacea9 /babel/messages/plurals.py | |
parent | 124294a60563b8fe2852f58cf42a074068dff389 (diff) | |
download | babel-128afa091715a194e1483f9d606c370cf6ae794d.tar.gz |
plurals: correct plural forms for cs and sk locales
Change plural forms for Czech (cs) and Slovak (sk) locales from Plural rule #_7_ to Plural rule #_8_ according to https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals .
Fixes https://github.com/python-babel/babel/issues/372
Diffstat (limited to 'babel/messages/plurals.py')
-rw-r--r-- | babel/messages/plurals.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/babel/messages/plurals.py b/babel/messages/plurals.py index cc7b79e..38c04ca 100644 --- a/babel/messages/plurals.py +++ b/babel/messages/plurals.py @@ -75,7 +75,7 @@ PLURALS = { # Cree # 'cr': (), # Czech - 'cs': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'), + 'cs': (3, '((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2)'), # Church Slavic # 'cu': (), # Chuvash @@ -171,7 +171,7 @@ PLURALS = { # Russian 'ru': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'), # Slovak - 'sk': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'), + 'sk': (3, '((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2)'), # Slovenian 'sl': (4, '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)'), # Serbian - From Pootle's PO's |