comparison 0.8.x/babel/messages/plurals.py @ 142:4a7af44e6695 stable

Create branch for 0.8.x releases.
author cmlenz
date Wed, 20 Jun 2007 10:09:07 +0000
parents
children
comparison
equal deleted inserted replaced
1:bf36ec5f5e50 142:4a7af44e6695
1 # -*- coding: utf-8 -*-
2 #
3 # Copyright (C) 2007 Edgewall Software
4 # All rights reserved.
5 #
6 # This software is licensed as described in the file COPYING, which
7 # you should have received as part of this distribution. The terms
8 # are also available at http://babel.edgewall.org/wiki/License.
9 #
10 # This software consists of voluntary contributions made by many
11 # individuals. For the exact contribution history, see the revision
12 # history and logs, available at http://babel.edgewall.org/log/.
13
14 """Plural form definitions."""
15
16 PLURALS = {
17 # Afrikaans - From Pootle's PO's
18 'af': (2, '(n != 1)'),
19 # Arabic - From Pootle's PO's
20 'ar': (6, '(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 && n<=10 ? 3 : n>=11 && n<=99 ? 4 : 5)'),
21 # Bulgarian - From Pootle's PO's
22 'bg': (2, '(n != 1)'),
23 # Bengali - From Pootle's PO's
24 'bn': (2, '(n != 1)'),
25 # Catalan - From Pootle's PO's
26 'ca': (2, '(n != 1)'),
27 # Czech
28 'cs': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'),
29 # Danish
30 'da': (2, '(n != 1)'),
31 # German
32 'de': (2, '(n != 1)'),
33 # Greek
34 'el': (2, '(n != 1)'),
35 # English
36 'en': (2, '(n != 1)'),
37 # Esperanto
38 'eo': (2, '(n != 1)'),
39 # Spanish
40 'es': (2, '(n != 1)'),
41 # Estonian
42 'et': (2, '(n != 1)'),
43 # Basque - From Pootle's PO's
44 'eu': (2, '(n != 1)'),
45 # Persian - From Pootle's PO's
46 'fa': (1, '0'),
47 # Finnish
48 'fi': (2, '(n != 1)'),
49 # French
50 'fr': (2, '(n > 1)'),
51 # Furlan - From Pootle's PO's
52 'fur': (2, '(n > 1)'),
53 # Irish
54 'ga': (3, 'n==1 ? 0 : n==2 ? 1 : 2'),
55 # Galego - From Pootle's PO's
56 'gl': (2, '(n != 1)'),
57 # Hausa - From Pootle's PO's
58 'ha': (2, '(n != 1)'),
59 # Hebrew
60 'he': (2, '(n != 1)'),
61 # Hindi - From Pootle's PO's
62 'hi': (2, '(n != 1)'),
63 # Croatian
64 'hr': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'),
65 # Hungarian
66 'hu': (1, '0'),
67 # Armenian - From Pootle's PO's
68 'hy': (1, '0'),
69 # Icelandic - From Pootle's PO's
70 'is': (2, '(n != 1)'),
71 # Italian
72 'it': (2, '(n != 1)'),
73 # Japanese
74 'ja': (1, '0'),
75 # Georgian - From Pootle's PO's
76 'ka': (1, '0'),
77 # Kongo - From Pootle's PO's
78 'kg': (2, '(n != 1)'),
79 # Khmer - From Pootle's PO's
80 'km': (1, '0'),
81 # Korean
82 'ko': (1, '0'),
83 # KurdĂ® - From Pootle's PO's
84 'ku': (2, '(n != 1)'),
85 # Lithuanian
86 'lt': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)'),
87 # Latvian
88 'lv': (3, '(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2)'),
89 # Maltese - From Pootle's PO's
90 'mt': (4, '(n==1 ? 0 : n==0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3)'),
91 # Norwegian Bokmal
92 'nb': (2, '(n != 1)'),
93 # Dutch
94 'nl': (2, '(n != 1)'),
95 # Norwegian Nynorsk
96 'nn': (2, '(n != 1)'),
97 # Norwegian
98 'no': (2, '(n != 1)'),
99 # Punjabi - From Pootle's PO's
100 'pa': (2, '(n != 1)'),
101 # Polish
102 'pl': (3, '(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'),
103 # Portuguese
104 'pt': (2, '(n != 1)'),
105 # Brazilian
106 'pt_BR': (2, '(n > 1)'),
107 # Romanian - From Pootle's PO's
108 'ro': (3, '(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)'),
109 # Russian
110 'ru': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'),
111 # Slovak
112 'sk': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'),
113 # Slovenian
114 'sl': (4, '(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)'),
115 # Serbian - From Pootle's PO's
116 'sr': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10< =4 && (n%100<10 || n%100>=20) ? 1 : 2)'),
117 # Sesotho - From Pootle's PO's
118 'st': (2, '(n != 1)'),
119 # Swedish
120 'sv': (2, '(n != 1)'),
121 # Turkish
122 'tr': (1, '0'),
123 # Ukrainian
124 'uk': (3, '(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)'),
125 # Venda - From Pootle's PO's
126 've': (2, '(n != 1)'),
127 # Vietnamese - From Pootle's PO's
128 'vi': (1, '0'),
129 # Xhosa - From Pootle's PO's
130 'xh': (2, '(n != 1)'),
131 # Chinese - From Pootle's PO's
132 'zh_CN': (1, '0'),
133 'zh_HK': (1, '0'),
134 'zh_TW': (1, '0'),
135 }
Copyright (C) 2012-2017 Edgewall Software