Skip to content

Commit c17eb8c

Browse files
author
Michele Comitini
committed
Add italian [it] locale.
1 parent f629fa6 commit c17eb8c

File tree

3 files changed

+235
-0
lines changed

3 files changed

+235
-0
lines changed

pendulum/locales/it/__init__.py

Whitespace-only changes.

pendulum/locales/it/custom.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
it custom locale file.
4+
"""
5+
6+
from __future__ import unicode_literals
7+
8+
9+
translations = {
10+
# Date formats
11+
"date_formats": {
12+
"LTS": "H:mm:ss",
13+
"LT": "H:mm",
14+
"L": "DD/MM/YYYY",
15+
"LL": "D MMMM YYYY",
16+
"LLL": "D MMMM YYYY [alle] H:mm",
17+
"LLLL": "dddd, D MMMM YYYY [alle] H:mm",
18+
},
19+
}

pendulum/locales/it/locale.py

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
"""
4+
it locale file.
5+
6+
It has been generated automatically and must not be modified directly.
7+
"""
8+
9+
from .custom import translations as custom_translations
10+
11+
12+
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',
52+
},
53+
},
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',
96+
},
97+
},
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+
},
131+
},
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+
},
142+
},
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+
},
152+
},
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+
},
162+
},
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+
},
172+
},
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+
},
182+
},
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+
},
192+
},
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+
},
202+
},
203+
},
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',
213+
},
214+
},
215+
'custom': custom_translations
216+
}

0 commit comments

Comments
 (0)