Skip to content

Commit 73b843a

Browse files
Add pl locale (#459)
1 parent 4fd7174 commit 73b843a

File tree

4 files changed

+418
-0
lines changed

4 files changed

+418
-0
lines changed

pendulum/locales/pl/__init__.py

Whitespace-only changes.

pendulum/locales/pl/custom.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
5+
"""
6+
pl custom locale file.
7+
"""
8+
9+
translations = {
10+
"units": {"few_second": "kilka sekund"},
11+
# Relative time
12+
"ago": "{} temu",
13+
"from_now": "za {}",
14+
"after": "{0} po",
15+
"before": "{0} przed",
16+
# Date formats
17+
"date_formats": {
18+
"LTS": "HH:mm:ss",
19+
"LT": "HH:mm",
20+
"L": "DD.MM.YYYY",
21+
"LL": "D MMMM YYYY",
22+
"LLL": "D MMMM YYYY HH:mm",
23+
"LLLL": "dddd, D MMMM YYYY HH:mm",
24+
},
25+
}

pendulum/locales/pl/locale.py

Lines changed: 282 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,282 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from .custom import translations as custom_translations
5+
6+
7+
"""
8+
pl locale file.
9+
10+
It has been generated automatically and must not be modified directly.
11+
"""
12+
13+
14+
locale = {
15+
"plural": lambda n: "few"
16+
if (
17+
(
18+
(0 == 0 and ((0 == 0)))
19+
and ((n % 10) == (n % 10) and (((n % 10) >= 2 and (n % 10) <= 4)))
20+
)
21+
and (not ((n % 100) == (n % 100) and (((n % 100) >= 12 and (n % 100) <= 14))))
22+
)
23+
else "many"
24+
if (
25+
(
26+
(
27+
((0 == 0 and ((0 == 0))) and (not (n == n and ((n == 1)))))
28+
and ((n % 10) == (n % 10) and (((n % 10) >= 0 and (n % 10) <= 1)))
29+
)
30+
or (
31+
(0 == 0 and ((0 == 0)))
32+
and ((n % 10) == (n % 10) and (((n % 10) >= 5 and (n % 10) <= 9)))
33+
)
34+
)
35+
or (
36+
(0 == 0 and ((0 == 0)))
37+
and ((n % 100) == (n % 100) and (((n % 100) >= 12 and (n % 100) <= 14)))
38+
)
39+
)
40+
else "one"
41+
if ((n == n and ((n == 1))) and (0 == 0 and ((0 == 0))))
42+
else "other",
43+
"ordinal": lambda n: "other",
44+
"translations": {
45+
"days": {
46+
"abbreviated": {
47+
0: "niedz.",
48+
1: "pon.",
49+
2: "wt.",
50+
3: "śr.",
51+
4: "czw.",
52+
5: "pt.",
53+
6: "sob.",
54+
},
55+
"narrow": {0: "n", 1: "p", 2: "w", 3: "ś", 4: "c", 5: "p", 6: "s"},
56+
"short": {
57+
0: "nie",
58+
1: "pon",
59+
2: "wto",
60+
3: "śro",
61+
4: "czw",
62+
5: "pią",
63+
6: "sob",
64+
},
65+
"wide": {
66+
0: "niedziela",
67+
1: "poniedziałek",
68+
2: "wtorek",
69+
3: "środa",
70+
4: "czwartek",
71+
5: "piątek",
72+
6: "sobota",
73+
},
74+
},
75+
"months": {
76+
"abbreviated": {
77+
1: "sty",
78+
2: "lut",
79+
3: "mar",
80+
4: "kwi",
81+
5: "maj",
82+
6: "cze",
83+
7: "lip",
84+
8: "sie",
85+
9: "wrz",
86+
10: "paź",
87+
11: "lis",
88+
12: "gru",
89+
},
90+
"narrow": {
91+
1: "s",
92+
2: "l",
93+
3: "m",
94+
4: "k",
95+
5: "m",
96+
6: "c",
97+
7: "l",
98+
8: "s",
99+
9: "w",
100+
10: "p",
101+
11: "l",
102+
12: "g",
103+
},
104+
"wide": {
105+
1: "stycznia",
106+
2: "lutego",
107+
3: "marca",
108+
4: "kwietnia",
109+
5: "maja",
110+
6: "czerwca",
111+
7: "lipca",
112+
8: "sierpnia",
113+
9: "września",
114+
10: "października",
115+
11: "listopada",
116+
12: "grudnia",
117+
},
118+
},
119+
"units": {
120+
"year": {
121+
"one": "{0} rok",
122+
"few": "{0} lata",
123+
"many": "{0} lat",
124+
"other": "{0} roku",
125+
},
126+
"month": {
127+
"one": "{0} miesiąc",
128+
"few": "{0} miesiące",
129+
"many": "{0} miesięcy",
130+
"other": "{0} miesiąca",
131+
},
132+
"week": {
133+
"one": "{0} tydzień",
134+
"few": "{0} tygodnie",
135+
"many": "{0} tygodni",
136+
"other": "{0} tygodnia",
137+
},
138+
"day": {
139+
"one": "{0} dzień",
140+
"few": "{0} dni",
141+
"many": "{0} dni",
142+
"other": "{0} dnia",
143+
},
144+
"hour": {
145+
"one": "{0} godzina",
146+
"few": "{0} godziny",
147+
"many": "{0} godzin",
148+
"other": "{0} godziny",
149+
},
150+
"minute": {
151+
"one": "{0} minuta",
152+
"few": "{0} minuty",
153+
"many": "{0} minut",
154+
"other": "{0} minuty",
155+
},
156+
"second": {
157+
"one": "{0} sekunda",
158+
"few": "{0} sekundy",
159+
"many": "{0} sekund",
160+
"other": "{0} sekundy",
161+
},
162+
"microsecond": {
163+
"one": "{0} mikrosekunda",
164+
"few": "{0} mikrosekundy",
165+
"many": "{0} mikrosekund",
166+
"other": "{0} mikrosekundy",
167+
},
168+
},
169+
"relative": {
170+
"year": {
171+
"future": {
172+
"other": "za {0} roku",
173+
"one": "za {0} rok",
174+
"few": "za {0} lata",
175+
"many": "za {0} lat",
176+
},
177+
"past": {
178+
"other": "{0} roku temu",
179+
"one": "{0} rok temu",
180+
"few": "{0} lata temu",
181+
"many": "{0} lat temu",
182+
},
183+
},
184+
"month": {
185+
"future": {
186+
"other": "za {0} miesiąca",
187+
"one": "za {0} miesiąc",
188+
"few": "za {0} miesiące",
189+
"many": "za {0} miesięcy",
190+
},
191+
"past": {
192+
"other": "{0} miesiąca temu",
193+
"one": "{0} miesiąc temu",
194+
"few": "{0} miesiące temu",
195+
"many": "{0} miesięcy temu",
196+
},
197+
},
198+
"week": {
199+
"future": {
200+
"other": "za {0} tygodnia",
201+
"one": "za {0} tydzień",
202+
"few": "za {0} tygodnie",
203+
"many": "za {0} tygodni",
204+
},
205+
"past": {
206+
"other": "{0} tygodnia temu",
207+
"one": "{0} tydzień temu",
208+
"few": "{0} tygodnie temu",
209+
"many": "{0} tygodni temu",
210+
},
211+
},
212+
"day": {
213+
"future": {
214+
"other": "za {0} dnia",
215+
"one": "za {0} dzień",
216+
"few": "za {0} dni",
217+
"many": "za {0} dni",
218+
},
219+
"past": {
220+
"other": "{0} dnia temu",
221+
"one": "{0} dzień temu",
222+
"few": "{0} dni temu",
223+
"many": "{0} dni temu",
224+
},
225+
},
226+
"hour": {
227+
"future": {
228+
"other": "za {0} godziny",
229+
"one": "za {0} godzinę",
230+
"few": "za {0} godziny",
231+
"many": "za {0} godzin",
232+
},
233+
"past": {
234+
"other": "{0} godziny temu",
235+
"one": "{0} godzinę temu",
236+
"few": "{0} godziny temu",
237+
"many": "{0} godzin temu",
238+
},
239+
},
240+
"minute": {
241+
"future": {
242+
"other": "za {0} minuty",
243+
"one": "za {0} minutę",
244+
"few": "za {0} minuty",
245+
"many": "za {0} minut",
246+
},
247+
"past": {
248+
"other": "{0} minuty temu",
249+
"one": "{0} minutę temu",
250+
"few": "{0} minuty temu",
251+
"many": "{0} minut temu",
252+
},
253+
},
254+
"second": {
255+
"future": {
256+
"other": "za {0} sekundy",
257+
"one": "za {0} sekundę",
258+
"few": "za {0} sekundy",
259+
"many": "za {0} sekund",
260+
},
261+
"past": {
262+
"other": "{0} sekundy temu",
263+
"one": "{0} sekundę temu",
264+
"few": "{0} sekundy temu",
265+
"many": "{0} sekund temu",
266+
},
267+
},
268+
},
269+
"day_periods": {
270+
"midnight": "o północy",
271+
"am": "AM",
272+
"noon": "w południe",
273+
"pm": "PM",
274+
"morning1": "rano",
275+
"morning2": "przed południem",
276+
"afternoon1": "po południu",
277+
"evening1": "wieczorem",
278+
"night1": "w nocy",
279+
},
280+
},
281+
"custom": custom_translations,
282+
}

0 commit comments

Comments
 (0)