Skip to content

Commit cc1ed64

Browse files
author
Sébastien Eustace
committed
Merge branch 'maedox-master'
2 parents bca6e89 + ebd7fc4 commit cc1ed64

File tree

8 files changed

+513
-0
lines changed

8 files changed

+513
-0
lines changed

pendulum/locales/nb/__init__.py

Whitespace-only changes.

pendulum/locales/nb/custom.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
"""
5+
nn custom locale file.
6+
"""
7+
8+
translations = {
9+
# Relative time
10+
"after": "{0} etter",
11+
"before": "{0} før",
12+
# Ordinals
13+
"ordinal": {"one": ".", "two": ".", "few": ".", "other": "."},
14+
# Date formats
15+
"date_formats": {
16+
"LTS": "HH:mm:ss",
17+
"LT": "HH:mm",
18+
"LLLL": "dddd Do MMMM YYYY HH:mm",
19+
"LLL": "Do MMMM YYYY HH:mm",
20+
"LL": "Do MMMM YYYY",
21+
"L": "DD.MM.YYYY",
22+
},
23+
}

pendulum/locales/nb/locale.py

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
"""
5+
nb locale file.
6+
7+
It has been generated automatically and must not be modified directly.
8+
"""
9+
10+
from .custom import translations as custom_translations
11+
12+
13+
locale = {
14+
"plural": lambda n: "one" if (n == n and ((n == 1))) else "other",
15+
"ordinal": lambda n: "other",
16+
"translations": {
17+
"days": {
18+
"abbreviated": {
19+
0: "søn.",
20+
1: "man.",
21+
2: "tir.",
22+
3: "ons.",
23+
4: "tor.",
24+
5: "fre.",
25+
6: "lør.",
26+
},
27+
"narrow": {0: "S", 1: "M", 2: "T", 3: "O", 4: "T", 5: "F", 6: "L"},
28+
"short": {
29+
0: "sø.",
30+
1: "ma.",
31+
2: "ti.",
32+
3: "on.",
33+
4: "to.",
34+
5: "fr.",
35+
6: "lø.",
36+
},
37+
"wide": {
38+
0: "søndag",
39+
1: "mandag",
40+
2: "tirsdag",
41+
3: "onsdag",
42+
4: "torsdag",
43+
5: "fredag",
44+
6: "lørdag",
45+
},
46+
},
47+
"months": {
48+
"abbreviated": {
49+
1: "jan.",
50+
2: "feb.",
51+
3: "mar.",
52+
4: "apr.",
53+
5: "mai",
54+
6: "jun.",
55+
7: "jul.",
56+
8: "aug.",
57+
9: "sep.",
58+
10: "okt.",
59+
11: "nov.",
60+
12: "des.",
61+
},
62+
"narrow": {
63+
1: "J",
64+
2: "F",
65+
3: "M",
66+
4: "A",
67+
5: "M",
68+
6: "J",
69+
7: "J",
70+
8: "A",
71+
9: "S",
72+
10: "O",
73+
11: "N",
74+
12: "D",
75+
},
76+
"wide": {
77+
1: "januar",
78+
2: "februar",
79+
3: "mars",
80+
4: "april",
81+
5: "mai",
82+
6: "juni",
83+
7: "juli",
84+
8: "august",
85+
9: "september",
86+
10: "oktober",
87+
11: "november",
88+
12: "desember",
89+
},
90+
},
91+
"units": {
92+
"year": {"one": "{0} år", "other": "{0} år"},
93+
"month": {"one": "{0} måned", "other": "{0} måneder"},
94+
"week": {"one": "{0} uke", "other": "{0} uker"},
95+
"day": {"one": "{0} dag", "other": "{0} dager"},
96+
"hour": {"one": "{0} time", "other": "{0} timer"},
97+
"minute": {"one": "{0} minutt", "other": "{0} minutter"},
98+
"second": {"one": "{0} sekund", "other": "{0} sekunder"},
99+
"microsecond": {"one": "{0} mikrosekund", "other": "{0} mikrosekunder"},
100+
},
101+
"relative": {
102+
"year": {
103+
"future": {"other": "om {0} år", "one": "om {0} år"},
104+
"past": {"other": "for {0} år siden", "one": "for {0} år siden"},
105+
},
106+
"month": {
107+
"future": {"other": "om {0} måneder", "one": "om {0} måned"},
108+
"past": {
109+
"other": "for {0} måneder siden",
110+
"one": "for {0} måned siden",
111+
},
112+
},
113+
"week": {
114+
"future": {"other": "om {0} uker", "one": "om {0} uke"},
115+
"past": {"other": "for {0} uker siden", "one": "for {0} uke siden"},
116+
},
117+
"day": {
118+
"future": {"other": "om {0} dager", "one": "om {0} dag"},
119+
"past": {"other": "for {0} dager siden", "one": "for {0} dag siden"},
120+
},
121+
"hour": {
122+
"future": {"other": "om {0} timer", "one": "om {0} time"},
123+
"past": {"other": "for {0} timer siden", "one": "for {0} time siden"},
124+
},
125+
"minute": {
126+
"future": {"other": "om {0} minutter", "one": "om {0} minutt"},
127+
"past": {
128+
"other": "for {0} minutter siden",
129+
"one": "for {0} minutt siden",
130+
},
131+
},
132+
"second": {
133+
"future": {"other": "om {0} sekunder", "one": "om {0} sekund"},
134+
"past": {
135+
"other": "for {0} sekunder siden",
136+
"one": "for {0} sekund siden",
137+
},
138+
},
139+
},
140+
"day_periods": {
141+
"midnight": "midnatt",
142+
"am": "a.m.",
143+
"pm": "p.m.",
144+
"morning1": "morgenen",
145+
"morning2": "formiddagen",
146+
"afternoon1": "ettermiddagen",
147+
"evening1": "kvelden",
148+
"night1": "natten",
149+
},
150+
},
151+
"custom": custom_translations,
152+
}

pendulum/locales/nn/__init__.py

Whitespace-only changes.

pendulum/locales/nn/custom.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
"""
5+
nn custom locale file.
6+
"""
7+
8+
translations = {
9+
# Relative time
10+
"after": "{0} etter",
11+
"before": "{0} før",
12+
# Ordinals
13+
"ordinal": {"one": ".", "two": ".", "few": ".", "other": "."},
14+
# Date formats
15+
"date_formats": {
16+
"LTS": "HH:mm:ss",
17+
"LT": "HH:mm",
18+
"LLLL": "dddd Do MMMM YYYY HH:mm",
19+
"LLL": "Do MMMM YYYY HH:mm",
20+
"LL": "Do MMMM YYYY",
21+
"L": "DD.MM.YYYY",
22+
},
23+
}

pendulum/locales/nn/locale.py

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
"""
5+
nn locale file.
6+
7+
It has been generated automatically and must not be modified directly.
8+
"""
9+
10+
from .custom import translations as custom_translations
11+
12+
13+
locale = {
14+
"plural": lambda n: "one" if (n == n and ((n == 1))) else "other",
15+
"ordinal": lambda n: "other",
16+
"translations": {
17+
"days": {
18+
"abbreviated": {
19+
0: "søn.",
20+
1: "mån.",
21+
2: "tys.",
22+
3: "ons.",
23+
4: "tor.",
24+
5: "fre.",
25+
6: "lau.",
26+
},
27+
"narrow": {0: "S", 1: "M", 2: "T", 3: "O", 4: "T", 5: "F", 6: "L"},
28+
"short": {
29+
0: "sø.",
30+
1: "må.",
31+
2: "ty.",
32+
3: "on.",
33+
4: "to.",
34+
5: "fr.",
35+
6: "la.",
36+
},
37+
"wide": {
38+
0: "søndag",
39+
1: "måndag",
40+
2: "tysdag",
41+
3: "onsdag",
42+
4: "torsdag",
43+
5: "fredag",
44+
6: "laurdag",
45+
},
46+
},
47+
"months": {
48+
"abbreviated": {
49+
1: "jan.",
50+
2: "feb.",
51+
3: "mars",
52+
4: "apr.",
53+
5: "mai",
54+
6: "juni",
55+
7: "juli",
56+
8: "aug.",
57+
9: "sep.",
58+
10: "okt.",
59+
11: "nov.",
60+
12: "des.",
61+
},
62+
"narrow": {
63+
1: "J",
64+
2: "F",
65+
3: "M",
66+
4: "A",
67+
5: "M",
68+
6: "J",
69+
7: "J",
70+
8: "A",
71+
9: "S",
72+
10: "O",
73+
11: "N",
74+
12: "D",
75+
},
76+
"wide": {
77+
1: "januar",
78+
2: "februar",
79+
3: "mars",
80+
4: "april",
81+
5: "mai",
82+
6: "juni",
83+
7: "juli",
84+
8: "august",
85+
9: "september",
86+
10: "oktober",
87+
11: "november",
88+
12: "desember",
89+
},
90+
},
91+
"units": {
92+
"year": {"one": "{0} år", "other": "{0} år"},
93+
"month": {"one": "{0} månad", "other": "{0} månadar"},
94+
"week": {"one": "{0} veke", "other": "{0} veker"},
95+
"day": {"one": "{0} dag", "other": "{0} dagar"},
96+
"hour": {"one": "{0} time", "other": "{0} timar"},
97+
"minute": {"one": "{0} minutt", "other": "{0} minutt"},
98+
"second": {"one": "{0} sekund", "other": "{0} sekund"},
99+
"microsecond": {"one": "{0} mikrosekund", "other": "{0} mikrosekund"},
100+
},
101+
"relative": {
102+
"year": {
103+
"future": {"other": "om {0} år", "one": "om {0} år"},
104+
"past": {"other": "for {0} år sidan", "one": "for {0} år sidan"},
105+
},
106+
"month": {
107+
"future": {"other": "om {0} månadar", "one": "om {0} månad"},
108+
"past": {
109+
"other": "for {0} månadar sidan",
110+
"one": "for {0} månad sidan",
111+
},
112+
},
113+
"week": {
114+
"future": {"other": "om {0} veker", "one": "om {0} veke"},
115+
"past": {"other": "for {0} veker sidan", "one": "for {0} veke sidan"},
116+
},
117+
"day": {
118+
"future": {"other": "om {0} dagar", "one": "om {0} dag"},
119+
"past": {"other": "for {0} dagar sidan", "one": "for {0} dag sidan"},
120+
},
121+
"hour": {
122+
"future": {"other": "om {0} timar", "one": "om {0} time"},
123+
"past": {"other": "for {0} timar sidan", "one": "for {0} time sidan"},
124+
},
125+
"minute": {
126+
"future": {"other": "om {0} minutt", "one": "om {0} minutt"},
127+
"past": {
128+
"other": "for {0} minutt sidan",
129+
"one": "for {0} minutt sidan",
130+
},
131+
},
132+
"second": {
133+
"future": {"other": "om {0} sekund", "one": "om {0} sekund"},
134+
"past": {
135+
"other": "for {0} sekund sidan",
136+
"one": "for {0} sekund sidan",
137+
},
138+
},
139+
},
140+
"day_periods": {"am": "formiddag", "pm": "ettermiddag"},
141+
},
142+
"custom": custom_translations,
143+
}

0 commit comments

Comments
 (0)