|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | from __future__ import unicode_literals |
| 3 | + |
3 | 4 | """ |
4 | 5 | it locale file. |
5 | 6 |
|
|
10 | 11 |
|
11 | 12 |
|
12 | 13 | locale = { |
13 | | - 'plural': lambda n: 'one' if ((n == n and ((n == 1))) and (0 == 0 and ((0 == 0)))) else 'other', |
14 | | - 'ordinal': lambda n: 'many' if (n == n and ((n == 11) or (n == 8) or (n == 80) or (n == 800))) else 'other', |
15 | | - 'translations': { |
16 | | - 'days': { |
17 | | - 'abbreviated': { |
18 | | - 0: 'dom', |
19 | | - 1: 'lun', |
20 | | - 2: 'mar', |
21 | | - 3: 'mer', |
22 | | - 4: 'gio', |
23 | | - 5: 'ven', |
24 | | - 6: 'sab', |
25 | | - }, |
26 | | - 'narrow': { |
27 | | - 0: 'D', |
28 | | - 1: 'L', |
29 | | - 2: 'M', |
30 | | - 3: 'M', |
31 | | - 4: 'G', |
32 | | - 5: 'V', |
33 | | - 6: 'S', |
34 | | - }, |
35 | | - 'short': { |
36 | | - 0: 'dom', |
37 | | - 1: 'lun', |
38 | | - 2: 'mar', |
39 | | - 3: 'mer', |
40 | | - 4: 'gio', |
41 | | - 5: 'ven', |
42 | | - 6: 'sab', |
43 | | - }, |
44 | | - 'wide': { |
45 | | - 0: 'domenica', |
46 | | - 1: 'lunedì', |
47 | | - 2: 'martedì', |
48 | | - 3: 'mercoledì', |
49 | | - 4: 'giovedì', |
50 | | - 5: 'venerdì', |
51 | | - 6: 'sabato', |
| 14 | + "plural": lambda n: "one" |
| 15 | + if ((n == n and ((n == 1))) and (0 == 0 and ((0 == 0)))) |
| 16 | + else "other", |
| 17 | + "ordinal": lambda n: "many" |
| 18 | + if (n == n and ((n == 11) or (n == 8) or (n == 80) or (n == 800))) |
| 19 | + else "other", |
| 20 | + "translations": { |
| 21 | + "days": { |
| 22 | + "abbreviated": { |
| 23 | + 0: "dom", |
| 24 | + 1: "lun", |
| 25 | + 2: "mar", |
| 26 | + 3: "mer", |
| 27 | + 4: "gio", |
| 28 | + 5: "ven", |
| 29 | + 6: "sab", |
| 30 | + }, |
| 31 | + "narrow": {0: "D", 1: "L", 2: "M", 3: "M", 4: "G", 5: "V", 6: "S"}, |
| 32 | + "short": { |
| 33 | + 0: "dom", |
| 34 | + 1: "lun", |
| 35 | + 2: "mar", |
| 36 | + 3: "mer", |
| 37 | + 4: "gio", |
| 38 | + 5: "ven", |
| 39 | + 6: "sab", |
| 40 | + }, |
| 41 | + "wide": { |
| 42 | + 0: "domenica", |
| 43 | + 1: "lunedì", |
| 44 | + 2: "martedì", |
| 45 | + 3: "mercoledì", |
| 46 | + 4: "giovedì", |
| 47 | + 5: "venerdì", |
| 48 | + 6: "sabato", |
52 | 49 | }, |
53 | 50 | }, |
54 | | - 'months': { |
55 | | - 'abbreviated': { |
56 | | - 1: 'gen', |
57 | | - 2: 'feb', |
58 | | - 3: 'mar', |
59 | | - 4: 'apr', |
60 | | - 5: 'mag', |
61 | | - 6: 'giu', |
62 | | - 7: 'lug', |
63 | | - 8: 'ago', |
64 | | - 9: 'set', |
65 | | - 10: 'ott', |
66 | | - 11: 'nov', |
67 | | - 12: 'dic', |
68 | | - }, |
69 | | - 'narrow': { |
70 | | - 1: 'G', |
71 | | - 2: 'F', |
72 | | - 3: 'M', |
73 | | - 4: 'A', |
74 | | - 5: 'M', |
75 | | - 6: 'G', |
76 | | - 7: 'L', |
77 | | - 8: 'A', |
78 | | - 9: 'S', |
79 | | - 10: 'O', |
80 | | - 11: 'N', |
81 | | - 12: 'D', |
82 | | - }, |
83 | | - 'wide': { |
84 | | - 1: 'gennaio', |
85 | | - 2: 'febbraio', |
86 | | - 3: 'marzo', |
87 | | - 4: 'aprile', |
88 | | - 5: 'maggio', |
89 | | - 6: 'giugno', |
90 | | - 7: 'luglio', |
91 | | - 8: 'agosto', |
92 | | - 9: 'settembre', |
93 | | - 10: 'ottobre', |
94 | | - 11: 'novembre', |
95 | | - 12: 'dicembre', |
| 51 | + "months": { |
| 52 | + "abbreviated": { |
| 53 | + 1: "gen", |
| 54 | + 2: "feb", |
| 55 | + 3: "mar", |
| 56 | + 4: "apr", |
| 57 | + 5: "mag", |
| 58 | + 6: "giu", |
| 59 | + 7: "lug", |
| 60 | + 8: "ago", |
| 61 | + 9: "set", |
| 62 | + 10: "ott", |
| 63 | + 11: "nov", |
| 64 | + 12: "dic", |
| 65 | + }, |
| 66 | + "narrow": { |
| 67 | + 1: "G", |
| 68 | + 2: "F", |
| 69 | + 3: "M", |
| 70 | + 4: "A", |
| 71 | + 5: "M", |
| 72 | + 6: "G", |
| 73 | + 7: "L", |
| 74 | + 8: "A", |
| 75 | + 9: "S", |
| 76 | + 10: "O", |
| 77 | + 11: "N", |
| 78 | + 12: "D", |
| 79 | + }, |
| 80 | + "wide": { |
| 81 | + 1: "gennaio", |
| 82 | + 2: "febbraio", |
| 83 | + 3: "marzo", |
| 84 | + 4: "aprile", |
| 85 | + 5: "maggio", |
| 86 | + 6: "giugno", |
| 87 | + 7: "luglio", |
| 88 | + 8: "agosto", |
| 89 | + 9: "settembre", |
| 90 | + 10: "ottobre", |
| 91 | + 11: "novembre", |
| 92 | + 12: "dicembre", |
96 | 93 | }, |
97 | 94 | }, |
98 | | - 'units': { |
99 | | - 'year': { |
100 | | - 'one': '{0} anno', |
101 | | - 'other': '{0} anni', |
102 | | - }, |
103 | | - 'month': { |
104 | | - 'one': '{0} mese', |
105 | | - 'other': '{0} mesi', |
106 | | - }, |
107 | | - 'week': { |
108 | | - 'one': '{0} settimana', |
109 | | - 'other': '{0} settimane', |
110 | | - }, |
111 | | - 'day': { |
112 | | - 'one': '{0} giorno', |
113 | | - 'other': '{0} giorni', |
114 | | - }, |
115 | | - 'hour': { |
116 | | - 'one': '{0} ora', |
117 | | - 'other': '{0} ore', |
118 | | - }, |
119 | | - 'minute': { |
120 | | - 'one': '{0} minuto', |
121 | | - 'other': '{0} minuti', |
122 | | - }, |
123 | | - 'second': { |
124 | | - 'one': '{0} secondo', |
125 | | - 'other': '{0} secondi', |
126 | | - }, |
127 | | - 'microsecond': { |
128 | | - 'one': '{0} microsecondo', |
129 | | - 'other': '{0} microsecondi', |
130 | | - }, |
| 95 | + "units": { |
| 96 | + "year": {"one": "{0} anno", "other": "{0} anni"}, |
| 97 | + "month": {"one": "{0} mese", "other": "{0} mesi"}, |
| 98 | + "week": {"one": "{0} settimana", "other": "{0} settimane"}, |
| 99 | + "day": {"one": "{0} giorno", "other": "{0} giorni"}, |
| 100 | + "hour": {"one": "{0} ora", "other": "{0} ore"}, |
| 101 | + "minute": {"one": "{0} minuto", "other": "{0} minuti"}, |
| 102 | + "second": {"one": "{0} secondo", "other": "{0} secondi"}, |
| 103 | + "microsecond": {"one": "{0} microsecondo", "other": "{0} microsecondi"}, |
131 | 104 | }, |
132 | | - 'relative': { |
133 | | - 'year': { |
134 | | - 'future': { |
135 | | - 'other': 'tra {0} anni', |
136 | | - 'one': 'tra {0} anno', |
137 | | - }, |
138 | | - 'past': { |
139 | | - 'other': '{0} anni fa', |
140 | | - 'one': '{0} anno fa', |
141 | | - }, |
| 105 | + "relative": { |
| 106 | + "year": { |
| 107 | + "future": {"other": "tra {0} anni", "one": "tra {0} anno"}, |
| 108 | + "past": {"other": "{0} anni fa", "one": "{0} anno fa"}, |
142 | 109 | }, |
143 | | - 'month': { |
144 | | - 'future': { |
145 | | - 'other': 'tra {0} mesi', |
146 | | - 'one': 'tra {0} mese', |
147 | | - }, |
148 | | - 'past': { |
149 | | - 'other': '{0} mesi fa', |
150 | | - 'one': '{0} mese fa', |
151 | | - }, |
| 110 | + "month": { |
| 111 | + "future": {"other": "tra {0} mesi", "one": "tra {0} mese"}, |
| 112 | + "past": {"other": "{0} mesi fa", "one": "{0} mese fa"}, |
152 | 113 | }, |
153 | | - 'week': { |
154 | | - 'future': { |
155 | | - 'other': 'tra {0} settimane', |
156 | | - 'one': 'tra {0} settimana', |
157 | | - }, |
158 | | - 'past': { |
159 | | - 'other': '{0} settimane fa', |
160 | | - 'one': '{0} settimana fa', |
161 | | - }, |
| 114 | + "week": { |
| 115 | + "future": {"other": "tra {0} settimane", "one": "tra {0} settimana"}, |
| 116 | + "past": {"other": "{0} settimane fa", "one": "{0} settimana fa"}, |
162 | 117 | }, |
163 | | - 'day': { |
164 | | - 'future': { |
165 | | - 'other': 'tra {0} giorni', |
166 | | - 'one': 'tra {0} giorno', |
167 | | - }, |
168 | | - 'past': { |
169 | | - 'other': '{0} giorni fa', |
170 | | - 'one': '{0} giorno fa', |
171 | | - }, |
| 118 | + "day": { |
| 119 | + "future": {"other": "tra {0} giorni", "one": "tra {0} giorno"}, |
| 120 | + "past": {"other": "{0} giorni fa", "one": "{0} giorno fa"}, |
172 | 121 | }, |
173 | | - 'hour': { |
174 | | - 'future': { |
175 | | - 'other': 'tra {0} ore', |
176 | | - 'one': 'tra {0} ora', |
177 | | - }, |
178 | | - 'past': { |
179 | | - 'other': '{0} ore fa', |
180 | | - 'one': '{0} ora fa', |
181 | | - }, |
| 122 | + "hour": { |
| 123 | + "future": {"other": "tra {0} ore", "one": "tra {0} ora"}, |
| 124 | + "past": {"other": "{0} ore fa", "one": "{0} ora fa"}, |
182 | 125 | }, |
183 | | - 'minute': { |
184 | | - 'future': { |
185 | | - 'other': 'tra {0} minuti', |
186 | | - 'one': 'tra {0} minuto', |
187 | | - }, |
188 | | - 'past': { |
189 | | - 'other': '{0} minuti fa', |
190 | | - 'one': '{0} minuto fa', |
191 | | - }, |
| 126 | + "minute": { |
| 127 | + "future": {"other": "tra {0} minuti", "one": "tra {0} minuto"}, |
| 128 | + "past": {"other": "{0} minuti fa", "one": "{0} minuto fa"}, |
192 | 129 | }, |
193 | | - 'second': { |
194 | | - 'future': { |
195 | | - 'other': 'tra {0} secondi', |
196 | | - 'one': 'tra {0} secondo', |
197 | | - }, |
198 | | - 'past': { |
199 | | - 'other': '{0} secondi fa', |
200 | | - 'one': '{0} secondo fa', |
201 | | - }, |
| 130 | + "second": { |
| 131 | + "future": {"other": "tra {0} secondi", "one": "tra {0} secondo"}, |
| 132 | + "past": {"other": "{0} secondi fa", "one": "{0} secondo fa"}, |
202 | 133 | }, |
203 | 134 | }, |
204 | | - 'day_periods': { |
205 | | - 'midnight': 'mezzanotte', |
206 | | - 'am': 'AM', |
207 | | - 'noon': 'mezzogiorno', |
208 | | - 'pm': 'PM', |
209 | | - 'morning1': 'di mattina', |
210 | | - 'afternoon1': 'del pomeriggio', |
211 | | - 'evening1': 'di sera', |
212 | | - 'night1': 'di notte', |
| 135 | + "day_periods": { |
| 136 | + "midnight": "mezzanotte", |
| 137 | + "am": "AM", |
| 138 | + "noon": "mezzogiorno", |
| 139 | + "pm": "PM", |
| 140 | + "morning1": "di mattina", |
| 141 | + "afternoon1": "del pomeriggio", |
| 142 | + "evening1": "di sera", |
| 143 | + "night1": "di notte", |
213 | 144 | }, |
214 | 145 | }, |
215 | | - 'custom': custom_translations |
| 146 | + "custom": custom_translations, |
216 | 147 | } |
0 commit comments