rails-i18n 7.0.1 → 7.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -1
  3. data/lib/rails_i18n/common_pluralizations/serbian.rb +32 -0
  4. data/rails/locale/af.yml +3 -3
  5. data/rails/locale/ar.yml +2 -2
  6. data/rails/locale/cy.yml +3 -3
  7. data/rails/locale/da.yml +16 -8
  8. data/rails/locale/en-CA.yml +1 -1
  9. data/rails/locale/en-IN.yml +3 -3
  10. data/rails/locale/en-TT.yml +3 -3
  11. data/rails/locale/en-ZA.yml +3 -3
  12. data/rails/locale/en.yml +3 -3
  13. data/rails/locale/es-CL.yml +1 -1
  14. data/rails/locale/es-ES.yml +1 -1
  15. data/rails/locale/es.yml +1 -1
  16. data/rails/locale/fi.yml +1 -1
  17. data/rails/locale/fr.yml +1 -1
  18. data/rails/locale/gl.yml +4 -4
  19. data/rails/locale/hi-IN.yml +3 -3
  20. data/rails/locale/hi.yml +3 -3
  21. data/rails/locale/hr.yml +1 -1
  22. data/rails/locale/kn.yml +3 -3
  23. data/rails/locale/lt.yml +1 -1
  24. data/rails/locale/mk.yml +2 -2
  25. data/rails/locale/ml.yml +2 -2
  26. data/rails/locale/mr-IN.yml +3 -3
  27. data/rails/locale/ne.yml +3 -3
  28. data/rails/locale/pa.yml +3 -3
  29. data/rails/locale/pap-AW.yml +6 -6
  30. data/rails/locale/pap-CW.yml +6 -6
  31. data/rails/locale/sr.yml +2 -2
  32. data/rails/locale/st.yml +3 -3
  33. data/rails/locale/sv.yml +2 -2
  34. data/rails/locale/ta.yml +3 -3
  35. data/rails/locale/te.yml +3 -3
  36. data/rails/locale/ur.yml +2 -2
  37. data/rails/locale/wo.yml +3 -3
  38. data/rails/locale/zh-TW.yml +1 -1
  39. data/rails/ordinals/fr-CA.rb +19 -0
  40. data/rails/ordinals/fr-CH.rb +19 -0
  41. data/rails/ordinals/fr-FR.rb +19 -0
  42. data/rails/ordinals/fr.rb +19 -0
  43. data/rails/pluralization/sr.rb +2 -29
  44. data/rails/pluralization/ta.rb +3 -0
  45. data/rails/pluralization/tr.rb +1 -1
  46. metadata +11 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 64db0ab46aa5ba19b123b26cc573ccc8dcb92c3621c574b2c506aca2529e888d
4
- data.tar.gz: 7f390e39a5b9ca3ad45997a9109535e1bb9346271dc6dd5d76ef6ac68db48c2d
3
+ metadata.gz: 734f31dff6b40961b95b90d211ce9184d9628586030eaa74c10281799751428b
4
+ data.tar.gz: 28f3184814163a9bcc057b7a312aeb425bda0534cef5ad85b968e43760d41af4
5
5
  SHA512:
6
- metadata.gz: 9539c4e1840616800bedadd48ad004e41cff64605de87e6d944b000fac19fff9ee3a3bea6ca5cd27ab92493ceb0234e4d396ec5ba970030042569e9986df7f28
7
- data.tar.gz: 2d852dcee634a47cd9be44f474217da359cc95281c52708fa213b620284f20de067531bb56d9a7dd89684b869e0696a35ae918024ed366e0fd36cf5c5a8a78a4
6
+ metadata.gz: c90ef6bd2aec15bca7967cbd7b79dd149e43690321febaf549e1eb7107fb8843ee8cfe25655418e251fc45f5b372898ef1cb4691eb6cfdd250f2f5e0ad61c1c9
7
+ data.tar.gz: f3d949f10171bdc2ee55d2d82a5185f65698a6396193d858f75e8b94e139dc6c74f989ffb4fac8d25f9346ad7495867f546b98699cb300dbf6ce51ae5edeb625
data/CHANGELOG.md CHANGED
@@ -1,4 +1,46 @@
1
- ## 6.0.0
1
+ ## unreleased
2
+
3
+ ## 7.0.1 (2021-12-24)
4
+
5
+ - Fix ordinals loading.
6
+
7
+ ## 7.0.0 (2021-12-23)
8
+
9
+ - Support Rails 7
10
+ - Drop support for Ruby 1.8
11
+ - Eager load translations during boot phase if possible.
12
+ - Translate ordinals (fr, fr-FR, fr-CA, fr-BE)
13
+ - Update following locales:
14
+ - Albanian (sq)
15
+ - Catalan (ca)
16
+ - Chinese (zh-CN, zh-TW)
17
+ - Croatian (hr)
18
+ - Danish (da)
19
+ - Finnish (fi)
20
+ - French (fr, fr-FR, fr-CA, fr-BE)
21
+ - Georgian (ka)
22
+ - German (de)
23
+ - Greek (el, el-CY)
24
+ - Italian (it, it-CH)
25
+ - Latvian (lv)
26
+ - Lithuanian (lt)
27
+ - Norwegian (nb)
28
+ - Polish (pl)
29
+ - Portuguese (pt-BR)
30
+ - Romanian (ro)
31
+ - Serbian (sr)
32
+ - Spanish (es-CO, es-AR)
33
+ - Swedish (sv)
34
+ - Turkish (tr)
35
+ - Ukrainian (uk)
36
+ - Vietnamese (vi)
37
+ - Add following locales:
38
+ - English Trinidad & Tobago (en-TT)
39
+ - Papiamento (pap-AW, pap-CW)
40
+ - Sesotho (st)
41
+
42
+ ## 6.0.0 (2019-08-17)
43
+
2
44
  - Update rails-i18n.gemspec to use Railties 6.0.0
3
45
  - Add Malagasy (mg) locale
4
46
  - Update following locales:
@@ -0,0 +1,32 @@
1
+ module RailsI18n
2
+ module Pluralization
3
+ module Serbian
4
+ FROM_2_TO_4 = (2..4).to_a.freeze
5
+ FROM_12_TO_14 = (12..14).to_a.freeze
6
+
7
+ def self.rule
8
+ lambda do |n|
9
+ n ||= 0
10
+ mod10 = n % 10
11
+ mod100 = n % 100
12
+
13
+ if mod10 == 1 && mod100 != 11
14
+ :one
15
+ elsif FROM_2_TO_4.include?(mod10) && !FROM_12_TO_14.include?(mod100)
16
+ :few
17
+ else
18
+ :other
19
+ end
20
+ end
21
+ end
22
+
23
+ def self.with_locale(locale)
24
+ { locale => {
25
+ :i18n => {
26
+ :plural => {
27
+ :keys => [:one, :few, :other],
28
+ :rule => rule }}}}
29
+ end
30
+ end
31
+ end
32
+ end
data/rails/locale/af.yml CHANGED
@@ -40,8 +40,8 @@ af:
40
40
  - Saterdag
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - Januarie
@@ -208,6 +208,6 @@ af:
208
208
  am: vm
209
209
  formats:
210
210
  default: "%a, %d %b %Y %H:%M:%S %z"
211
- long: "%B %d, %Y %H:%M"
211
+ long: "%d %B %Y %H:%M"
212
212
  short: "%d %b %H:%M"
213
213
  pm: nm
data/rails/locale/ar.yml CHANGED
@@ -272,7 +272,7 @@ ar:
272
272
  time:
273
273
  am: صباحًا
274
274
  formats:
275
- default: "%a %b %d %H:%M:%S %Z %Y"
276
- long: "%d %B, %Y %H:%M"
275
+ default: "%a %d %b %Y %H:%M:%S %Z"
276
+ long: "%d %B %Y %H:%M"
277
277
  short: "%d %b %H:%M"
278
278
  pm: مساءً
data/rails/locale/cy.yml CHANGED
@@ -37,8 +37,8 @@ cy:
37
37
  - Dydd Sadwrn
38
38
  formats:
39
39
  default: "%d-%m-%Y"
40
- long: "%B %d, %Y"
41
- short: "%b %d"
40
+ long: "%d %B %Y"
41
+ short: "%d %b"
42
42
  month_names:
43
43
  -
44
44
  - Ionawr
@@ -241,6 +241,6 @@ cy:
241
241
  am: yb
242
242
  formats:
243
243
  default: "%a, %d %b %Y %H:%M:%S %z"
244
- long: "%B %d, %Y %H:%M"
244
+ long: "%d %B %Y %H:%M"
245
245
  short: "%d %b %H:%M"
246
246
  pm: yh
data/rails/locale/da.yml CHANGED
@@ -111,24 +111,24 @@ da:
111
111
  messages:
112
112
  accepted: skal accepteres
113
113
  blank: skal udfyldes
114
- confirmation: stemmer ikke overens med bekræftelse
114
+ confirmation: stemmer ikke overens med %{attribute}
115
115
  empty: må ikke udelades
116
116
  equal_to: skal være %{count}
117
117
  even: skal være et lige tal
118
118
  exclusion: er reserveret
119
119
  greater_than: skal være større end %{count}
120
- greater_than_or_equal_to: skal være større end, eller lig med, %{count}
120
+ greater_than_or_equal_to: skal være større end eller lig med %{count}
121
121
  inclusion: er ikke på listen
122
122
  invalid: er ikke gyldig
123
123
  less_than: skal være mindre end %{count}
124
- less_than_or_equal_to: skal være mindre end, eller lig med, %{count}
124
+ less_than_or_equal_to: skal være mindre end eller lig med %{count}
125
125
  model_invalid: 'Godkendelse gik galt: %{errors}'
126
126
  not_a_number: er ikke et tal
127
127
  not_an_integer: er ikke et heltal
128
128
  odd: skal være et ulige tal
129
129
  other_than: skal være forskellig fra %{count}
130
130
  present: skal være tom
131
- required: skal eksistere
131
+ required: skal udfyldes
132
132
  taken: er allerede brugt
133
133
  too_long:
134
134
  one: er for lang (højst 1 tegn)
@@ -171,11 +171,19 @@ da:
171
171
  decimal_units:
172
172
  format: "%n %u"
173
173
  units:
174
- billion: Milliard
175
- million: Million
176
- quadrillion: Billiard
174
+ billion:
175
+ one: Milliard
176
+ other: Milliarder
177
+ million:
178
+ one: Million
179
+ other: Millioner
180
+ quadrillion:
181
+ one: Billiard
182
+ other: Billiarder
177
183
  thousand: Tusind
178
- trillion: Billion
184
+ trillion:
185
+ one: Billion
186
+ other: Billioner
179
187
  unit: ''
180
188
  format:
181
189
  delimiter: ''
@@ -39,7 +39,7 @@ en-CA:
39
39
  - Friday
40
40
  - Saturday
41
41
  formats:
42
- default: "%d-%m-%Y"
42
+ default: "%Y-%m-%d"
43
43
  long: "%B %d, %Y"
44
44
  short: "%d %b"
45
45
  month_names:
@@ -40,8 +40,8 @@ en-IN:
40
40
  - Saturday
41
41
  formats:
42
42
  default: "%d-%m-%Y"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - January
@@ -210,6 +210,6 @@ en-IN:
210
210
  am: am
211
211
  formats:
212
212
  default: "%a, %d %b %Y %H:%M:%S %z"
213
- long: "%B %d, %Y %H:%M"
213
+ long: "%d %B %Y %H:%M"
214
214
  short: "%d %b %H:%M"
215
215
  pm: pm
@@ -40,8 +40,8 @@ en-TT:
40
40
  - Saturday
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - January
@@ -208,6 +208,6 @@ en-TT:
208
208
  am: am
209
209
  formats:
210
210
  default: "%a, %d %b %Y %H:%M:%S %z"
211
- long: "%B %d, %Y %H:%M"
211
+ long: "%d %B %Y %H:%M"
212
212
  short: "%d %b %H:%M"
213
213
  pm: pm
@@ -40,8 +40,8 @@ en-ZA:
40
40
  - Saturday
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - January
@@ -210,6 +210,6 @@ en-ZA:
210
210
  am: am
211
211
  formats:
212
212
  default: "%a, %d %b %Y %H:%M:%S %z"
213
- long: "%B %d, %Y %H:%M"
213
+ long: "%d %B %Y %H:%M"
214
214
  short: "%d %b %H:%M"
215
215
  pm: pm
data/rails/locale/en.yml CHANGED
@@ -40,8 +40,8 @@ en:
40
40
  - Saturday
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - January
@@ -210,6 +210,6 @@ en:
210
210
  am: am
211
211
  formats:
212
212
  default: "%a, %d %b %Y %H:%M:%S %z"
213
- long: "%B %d, %Y %H:%M"
213
+ long: "%d %B %Y %H:%M"
214
214
  short: "%d %b %H:%M"
215
215
  pm: pm
@@ -183,7 +183,7 @@ es-CL:
183
183
  unit: ''
184
184
  format:
185
185
  delimiter: ''
186
- precision: 1
186
+ precision: 3
187
187
  significant: true
188
188
  strip_insignificant_zeros: true
189
189
  storage_units:
@@ -183,7 +183,7 @@ es-ES:
183
183
  unit: ''
184
184
  format:
185
185
  delimiter: ''
186
- precision: 1
186
+ precision: 3
187
187
  significant: true
188
188
  strip_insignificant_zeros: true
189
189
  storage_units:
data/rails/locale/es.yml CHANGED
@@ -183,7 +183,7 @@ es:
183
183
  unit: ''
184
184
  format:
185
185
  delimiter: ''
186
- precision: 1
186
+ precision: 3
187
187
  significant: true
188
188
  strip_insignificant_zeros: true
189
189
  storage_units:
data/rails/locale/fi.yml CHANGED
@@ -40,7 +40,7 @@ fi:
40
40
  - lauantai
41
41
  formats:
42
42
  default: "%-d.%-m.%Y"
43
- long: "%A %e. %Bta %Y"
43
+ long: "%d. %Bta %Y"
44
44
  short: "%d. %b"
45
45
  month_names:
46
46
  -
data/rails/locale/fr.yml CHANGED
@@ -133,7 +133,7 @@ fr:
133
133
  other_than: doit être différent de %{count}
134
134
  present: doit être vide
135
135
  required: doit exister
136
- taken: n'est pas disponible
136
+ taken: est déjà utilisé(e)
137
137
  too_long:
138
138
  one: est trop long (pas plus d'un caractère)
139
139
  other: est trop long (pas plus de %{count} caractères)
data/rails/locale/gl.yml CHANGED
@@ -93,9 +93,9 @@ gl:
93
93
  format: "%{attribute} %{message}"
94
94
  messages:
95
95
  accepted: debe ser aceptado
96
- blank: non pode estar en blanco
96
+ blank: non pode estar en branco
97
97
  confirmation: non coincide coa confirmación
98
- empty: non pode estar valeiro
98
+ empty: non pode estar baleiro
99
99
  equal_to: debe ser igual a %{count}
100
100
  even: debe ser impar
101
101
  exclusion: xa existe
@@ -114,8 +114,8 @@ gl:
114
114
  template:
115
115
  body: 'Atopáronse os seguintes problemas:'
116
116
  header:
117
- one: 1 erro evitou que se poidese gardar o %{model}
118
- other: "%{count} erros evitaron que se poidese gardar o %{model}"
117
+ one: 1 erro evitou que se puidese gardar o %{model}
118
+ other: "%{count} erros evitaron que se puidese gardar o %{model}"
119
119
  number:
120
120
  currency:
121
121
  format:
@@ -37,8 +37,8 @@ hi-IN:
37
37
  - शनिवार
38
38
  formats:
39
39
  default: "%d-%m-%Y"
40
- long: "%B %d, %Y"
41
- short: "%b %d"
40
+ long: "%d %B %Y"
41
+ short: "%d %b"
42
42
  month_names:
43
43
  -
44
44
  - जनवरी
@@ -191,6 +191,6 @@ hi-IN:
191
191
  am: am
192
192
  formats:
193
193
  default: "%a, %d %b %Y %H:%M:%S %z"
194
- long: "%B %d, %Y %H:%M"
194
+ long: "%d %B %Y %H:%M"
195
195
  short: "%d %b %H:%M"
196
196
  pm: pm
data/rails/locale/hi.yml CHANGED
@@ -37,8 +37,8 @@ hi:
37
37
  - शनिवार
38
38
  formats:
39
39
  default: "%d-%m-%Y"
40
- long: "%B %d, %Y"
41
- short: "%b %d"
40
+ long: "%d %B %Y"
41
+ short: "%d %b"
42
42
  month_names:
43
43
  -
44
44
  - जनवरी
@@ -191,6 +191,6 @@ hi:
191
191
  am: पूर्वाह्न
192
192
  formats:
193
193
  default: "%a, %d %b %Y %H:%M:%S %z"
194
- long: "%B %d, %Y %H:%M"
194
+ long: "%d %B %Y %H:%M"
195
195
  short: "%d %b %H:%M"
196
196
  pm: अपराह्न
data/rails/locale/hr.yml CHANGED
@@ -182,7 +182,7 @@ hr:
182
182
  submit:
183
183
  create: Stvori %{model}
184
184
  submit: Spremi %{model}
185
- update: Izmjeni %{model}
185
+ update: Izmijeni %{model}
186
186
  number:
187
187
  currency:
188
188
  format:
data/rails/locale/kn.yml CHANGED
@@ -37,8 +37,8 @@ kn:
37
37
  - ಶನಿವಾರ
38
38
  formats:
39
39
  default: "%Y-%m-%d"
40
- long: "%B %d, %Y"
41
- short: "%b %d"
40
+ long: "%d %B %Y"
41
+ short: "%d %b"
42
42
  month_names:
43
43
  -
44
44
  - ಜನವರಿ
@@ -191,6 +191,6 @@ kn:
191
191
  am: ಪ್ರಾತಃಕಾಲ
192
192
  formats:
193
193
  default: "%a, %d %b %Y %H:%M:%S %z"
194
- long: "%B %d, %Y %H:%M"
194
+ long: "%d %B %Y %H:%M"
195
195
  short: "%d %b %H:%M"
196
196
  pm: ಅಪರನ್ನಃ
data/rails/locale/lt.yml CHANGED
@@ -216,6 +216,6 @@ lt:
216
216
  am: am
217
217
  formats:
218
218
  default: "%a, %d %b %Y %H:%M:%S %z"
219
- long: "%B %d, %Y %H:%M"
219
+ long: "%Y %B %d %H:%M"
220
220
  short: "%d %b %H:%M"
221
221
  pm: pm
data/rails/locale/mk.yml CHANGED
@@ -196,7 +196,7 @@ mk:
196
196
  time:
197
197
  am: АМ
198
198
  formats:
199
- default: "%a %b %d %H:%M:%S %Z %Y"
200
- long: "%B %d, %Y %H:%M"
199
+ default: "%a %d %b %Y %H:%M:%S %Z"
200
+ long: "%d %B %Y %H:%M"
201
201
  short: "%d %b %H:%M"
202
202
  pm: ПМ
data/rails/locale/ml.yml CHANGED
@@ -41,7 +41,7 @@ ml:
41
41
  formats:
42
42
  default: "%d-%m-%Y"
43
43
  long: "%d %B, %Y"
44
- short: "%b %d"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - ജനുവരി
@@ -205,6 +205,6 @@ ml:
205
205
  am: രാവിലെ
206
206
  formats:
207
207
  default: "%a, %d %b %Y %H:%M:%S %z"
208
- long: "%B %d, %Y %H:%M"
208
+ long: "%Y, %B %d %H:%M"
209
209
  short: "%d %b %H:%M"
210
210
  pm: വൈകിട്ട്
@@ -40,8 +40,8 @@ mr-IN:
40
40
  - रविवार
41
41
  formats:
42
42
  default: "%d-%m-%Y"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - जानेवारी
@@ -202,6 +202,6 @@ mr-IN:
202
202
  am: म.पू.
203
203
  formats:
204
204
  default: "%a, %d %b %Y %H:%M:%S %z"
205
- long: "%B %d, %Y %H:%M"
205
+ long: "%d %B %Y %H:%M"
206
206
  short: "%d %b %H:%M"
207
207
  pm: म.नं.
data/rails/locale/ne.yml CHANGED
@@ -40,8 +40,8 @@ ne:
40
40
  - शनिबार
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - जनवरी
@@ -200,6 +200,6 @@ ne:
200
200
  am: बिहान
201
201
  formats:
202
202
  default: "%a, %d %b %Y %H:%M:%S %z"
203
- long: "%B %d, %Y %H:%M"
203
+ long: "%d %B %Y %H:%M"
204
204
  short: "%d %b %H:%M"
205
205
  pm: बेलुका
data/rails/locale/pa.yml CHANGED
@@ -40,8 +40,8 @@ pa:
40
40
  - ਸ਼ਨਿੱਚਰਵਾਰ
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - ਜਨਵਰੀ
@@ -203,6 +203,6 @@ pa:
203
203
  am: ਸਵੇਰ
204
204
  formats:
205
205
  default: "%a, %d %b %Y %H:%M:%S %z"
206
- long: "%B %d, %Y %H:%M"
206
+ long: "%d %B %Y %H:%M"
207
207
  short: "%d %b %H:%M"
208
208
  pm: ਸ਼ਾਮ
@@ -57,9 +57,9 @@ pap-AW:
57
57
  - novèmber
58
58
  - desèmber
59
59
  order:
60
- - :aña
61
- - :luna
62
- - :dia
60
+ - :year
61
+ - :month
62
+ - :day
63
63
  datetime:
64
64
  distance_in_words:
65
65
  about_x_hours:
@@ -165,8 +165,8 @@ pap-AW:
165
165
  delimiter: '.'
166
166
  precision: 3
167
167
  separator: ','
168
- significant: falsu
169
- strip_insignificant_zeros: falsu
168
+ significant: false
169
+ strip_insignificant_zeros: false
170
170
  human:
171
171
  decimal_units:
172
172
  format: '%n %u'
@@ -210,6 +210,6 @@ pap-AW:
210
210
  am: am
211
211
  formats:
212
212
  default: '%a, %d %b %Y %H.%M.%S %z'
213
- long: '%B %d, %Y %H.%M'
213
+ long: '%d %B %Y %H.%M'
214
214
  short: '%d %b %H.%M'
215
215
  pm: pm
@@ -57,9 +57,9 @@ pap-CW:
57
57
  - novèmber
58
58
  - desèmber
59
59
  order:
60
- - :aña
61
- - :luna
62
- - :dia
60
+ - :year
61
+ - :month
62
+ - :day
63
63
  datetime:
64
64
  distance_in_words:
65
65
  about_x_hours:
@@ -165,8 +165,8 @@ pap-CW:
165
165
  delimiter: '.'
166
166
  precision: 3
167
167
  separator: ','
168
- significant: falsu
169
- strip_insignificant_zeros: falsu
168
+ significant: false
169
+ strip_insignificant_zeros: false
170
170
  human:
171
171
  decimal_units:
172
172
  format: '%n %u'
@@ -210,6 +210,6 @@ pap-CW:
210
210
  am: am
211
211
  formats:
212
212
  default: '%a, %d %b %Y %H.%M.%S %z'
213
- long: '%B %d, %Y %H.%M'
213
+ long: '%d %B %Y %H.%M'
214
214
  short: '%d %b %H.%M'
215
215
  pm: pm
data/rails/locale/sr.yml CHANGED
@@ -236,7 +236,7 @@ sr:
236
236
  time:
237
237
  am: АМ
238
238
  formats:
239
- default: "%a %b %d %H:%M:%S %Z %Y"
240
- long: "%B %d, %Y %H:%M"
239
+ default: "%a %d %b %Y %H:%M:%S %Z"
240
+ long: "%d %B %Y %H:%M"
241
241
  short: "%d %b %H:%M"
242
242
  pm: ПМ
data/rails/locale/st.yml CHANGED
@@ -40,8 +40,8 @@ st:
40
40
  - Moqebelo
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - Pherekhong
@@ -210,6 +210,6 @@ st:
210
210
  am: am
211
211
  formats:
212
212
  default: "%a, %d %b %Y %H:%M:%S %z"
213
- long: "%B %d, %Y %H:%M"
213
+ long: "%d %B %Y %H:%M"
214
214
  short: "%d %b %H:%M"
215
215
  pm: pm
data/rails/locale/sv.yml CHANGED
@@ -188,8 +188,8 @@ sv:
188
188
  tb: TB
189
189
  percentage:
190
190
  format:
191
- delimiter: ''
192
- format: "%n%"
191
+ delimiter: ' '
192
+ format: "%n %"
193
193
  precision:
194
194
  format:
195
195
  delimiter: ''
data/rails/locale/ta.yml CHANGED
@@ -40,8 +40,8 @@ ta:
40
40
  - சனிக்கிழமை
41
41
  formats:
42
42
  default: "%d-%m-%Y"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - ஜனவரி
@@ -203,6 +203,6 @@ ta:
203
203
  am: மு.ப.
204
204
  formats:
205
205
  default: "%a, %d %b %Y %H:%M:%S %z"
206
- long: "%B %d, %Y %H:%M"
206
+ long: "%d %B %Y %H:%M"
207
207
  short: "%d %b %H:%M"
208
208
  pm: பி.ப.
data/rails/locale/te.yml CHANGED
@@ -40,8 +40,8 @@ te:
40
40
  - శనివారం
41
41
  formats:
42
42
  default: "%d-%m-%Y"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - జనవరి
@@ -208,6 +208,6 @@ te:
208
208
  am: am
209
209
  formats:
210
210
  default: "%a, %d %b %Y %H:%M:%S %z"
211
- long: "%B %d, %Y %H:%M"
211
+ long: "%d %B %Y %H:%M"
212
212
  short: "%d %b %H:%M"
213
213
  pm: pm
data/rails/locale/ur.yml CHANGED
@@ -42,7 +42,7 @@ ur:
42
42
  - ہفتہ
43
43
  formats:
44
44
  default: "%d %B %Y"
45
- long: "%B %d، %Y"
45
+ long: "%d %B، %Y"
46
46
  short: "%d %b"
47
47
  month_names:
48
48
  -
@@ -205,6 +205,6 @@ ur:
205
205
  am: صبح
206
206
  formats:
207
207
  default: "%a، %d %b %Y، %p %l:%M %Z"
208
- long: "%B %d، %Y %p %H:%M"
208
+ long: "%d %B، %Y %p %H:%M"
209
209
  short: "%d %b، %H:%M"
210
210
  pm: شام
data/rails/locale/wo.yml CHANGED
@@ -40,8 +40,8 @@ wo:
40
40
  - Gaawu
41
41
  formats:
42
42
  default: "%Y-%m-%d"
43
- long: "%B %d, %Y"
44
- short: "%b %d"
43
+ long: "%d %B, %Y"
44
+ short: "%d %b"
45
45
  month_names:
46
46
  -
47
47
  - Tamkharit
@@ -203,6 +203,6 @@ wo:
203
203
  am: am
204
204
  formats:
205
205
  default: "%a, %d %b %Y %H:%M:%S %z"
206
- long: "%B %d, %Y %H:%M"
206
+ long: "%d %B, %Y %H:%M"
207
207
  short: "%d %b %H:%M"
208
208
  pm: pm
@@ -107,7 +107,7 @@ zh-TW:
107
107
  month: 月
108
108
  year: 年
109
109
  errors:
110
- format: "%{attribute} %{message}"
110
+ format: "%{attribute}%{message}"
111
111
  messages:
112
112
  accepted: 必須是可被接受的
113
113
  blank: 不能為空白
@@ -0,0 +1,19 @@
1
+ {
2
+ "fr-CA": {
3
+ number: {
4
+ nth: {
5
+ ordinals: -> (_key, number:, **_options) {
6
+ if number.to_i.abs == 1
7
+ 'er'
8
+ else
9
+ 'e'
10
+ end
11
+ },
12
+
13
+ ordinalized: -> (_key, number:, **_options) {
14
+ "#{number}#{ActiveSupport::Inflector.ordinal(number)}"
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "fr-CH": {
3
+ number: {
4
+ nth: {
5
+ ordinals: -> (_key, number:, **_options) {
6
+ if number.to_i.abs == 1
7
+ 'er'
8
+ else
9
+ 'e'
10
+ end
11
+ },
12
+
13
+ ordinalized: -> (_key, number:, **_options) {
14
+ "#{number}#{ActiveSupport::Inflector.ordinal(number)}"
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "fr-FR": {
3
+ number: {
4
+ nth: {
5
+ ordinals: -> (_key, number:, **_options) {
6
+ if number.to_i.abs == 1
7
+ 'er'
8
+ else
9
+ 'e'
10
+ end
11
+ },
12
+
13
+ ordinalized: -> (_key, number:, **_options) {
14
+ "#{number}#{ActiveSupport::Inflector.ordinal(number)}"
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ fr: {
3
+ number: {
4
+ nth: {
5
+ ordinals: -> (_key, number:, **_options) {
6
+ if number.to_i.abs == 1
7
+ 'er'
8
+ else
9
+ 'e'
10
+ end
11
+ },
12
+
13
+ ordinalized: -> (_key, number:, **_options) {
14
+ "#{number}#{ActiveSupport::Inflector.ordinal(number)}"
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
@@ -1,30 +1,3 @@
1
- module RailsI18n
2
- module Pluralization
3
- module Serbian
4
- FROM_2_TO_4 = (2..4).to_a.freeze
5
- FROM_12_TO_14 = (12..14).to_a.freeze
1
+ require 'rails_i18n/common_pluralizations/serbian'
6
2
 
7
- def self.rule
8
- lambda do |n|
9
- n ||= 0
10
- mod10 = n % 10
11
- mod100 = n % 100
12
-
13
- if mod10 == 1 && mod100 != 11
14
- :one
15
- elsif FROM_2_TO_4.include?(mod10) && !FROM_12_TO_14.include?(mod100)
16
- :few
17
- else
18
- :other
19
- end
20
- end
21
- end
22
- end
23
- end
24
- end
25
-
26
- { :sr => {
27
- :i18n => {
28
- :plural => {
29
- :keys => [:one, :few, :other],
30
- :rule => RailsI18n::Pluralization::Serbian.rule }}}}
3
+ ::RailsI18n::Pluralization::Serbian.with_locale(:sr)
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:ta)
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/other'
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
2
 
3
3
  ::RailsI18n::Pluralization::OneOther.with_locale(:tr)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.1
4
+ version: 7.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails I18n Group
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-24 00:00:00.000000000 Z
11
+ date: 2022-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -84,14 +84,14 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 0.9.20
87
+ version: 0.9.37
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 0.9.20
94
+ version: 0.9.37
95
95
  description: A set of common locale data and translations to internationalize and/or
96
96
  localize your Rails applications.
97
97
  email: rails-i18n@googlegroups.com
@@ -111,6 +111,7 @@ files:
111
111
  - lib/rails_i18n/common_pluralizations/one_with_zero_other.rb
112
112
  - lib/rails_i18n/common_pluralizations/other.rb
113
113
  - lib/rails_i18n/common_pluralizations/romanian.rb
114
+ - lib/rails_i18n/common_pluralizations/serbian.rb
114
115
  - lib/rails_i18n/common_pluralizations/west_slavic.rb
115
116
  - lib/rails_i18n/railtie.rb
116
117
  - rails/locale/af.yml
@@ -228,6 +229,10 @@ files:
228
229
  - rails/locale/zh-HK.yml
229
230
  - rails/locale/zh-TW.yml
230
231
  - rails/locale/zh-YUE.yml
232
+ - rails/ordinals/fr-CA.rb
233
+ - rails/ordinals/fr-CH.rb
234
+ - rails/ordinals/fr-FR.rb
235
+ - rails/ordinals/fr.rb
231
236
  - rails/pluralization/ak.rb
232
237
  - rails/pluralization/am.rb
233
238
  - rails/pluralization/ar.rb
@@ -359,6 +364,7 @@ files:
359
364
  - rails/pluralization/sv-SE.rb
360
365
  - rails/pluralization/sv.rb
361
366
  - rails/pluralization/sw.rb
367
+ - rails/pluralization/ta.rb
362
368
  - rails/pluralization/th.rb
363
369
  - rails/pluralization/ti.rb
364
370
  - rails/pluralization/tl.rb
@@ -413,7 +419,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
413
419
  - !ruby/object:Gem::Version
414
420
  version: 1.8.11
415
421
  requirements: []
416
- rubygems_version: 3.2.32
422
+ rubygems_version: 3.1.4
417
423
  signing_key:
418
424
  specification_version: 4
419
425
  summary: Common locale data and translations for Rails i18n.