rails-i18n 6.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +52 -6
  3. data/lib/rails_i18n/common_pluralizations/east_slavic.rb +1 -1
  4. data/lib/rails_i18n/railtie.rb +3 -0
  5. data/lib/rails_i18n.rb +0 -1
  6. data/rails/locale/ca.yml +31 -7
  7. data/rails/locale/da.yml +1 -1
  8. data/rails/locale/de.yml +1 -1
  9. data/rails/locale/el-CY.yml +15 -2
  10. data/rails/locale/el.yml +13 -0
  11. data/rails/locale/en-TT.yml +213 -0
  12. data/rails/locale/es-AR.yml +1 -1
  13. data/rails/locale/es-CO.yml +7 -7
  14. data/rails/locale/fi.yml +12 -12
  15. data/rails/locale/fr-CA.yml +2 -2
  16. data/rails/locale/fr.yml +14 -14
  17. data/rails/locale/hr.yml +13 -4
  18. data/rails/locale/it-CH.yml +14 -1
  19. data/rails/locale/it.yml +7 -6
  20. data/rails/locale/lt.yml +7 -7
  21. data/rails/locale/lv.yml +1 -1
  22. data/rails/locale/nb.yml +11 -5
  23. data/rails/locale/pap-AW.yml +215 -0
  24. data/rails/locale/pap-CW.yml +215 -0
  25. data/rails/locale/pl.yml +23 -23
  26. data/rails/locale/ro.yml +55 -55
  27. data/rails/locale/sq.yml +6 -6
  28. data/rails/locale/st.yml +215 -0
  29. data/rails/locale/sv.yml +2 -2
  30. data/rails/locale/uk.yml +4 -4
  31. data/rails/locale/vi.yml +1 -0
  32. data/rails/locale/zh-CN.yml +1 -1
  33. data/rails/locale/zh-TW.yml +1 -1
  34. data/rails/pluralization/ka.rb +2 -2
  35. data/rails/pluralization/pap-AW.rb +3 -0
  36. data/rails/pluralization/pap-CW.rb +3 -0
  37. data/rails/pluralization/pt-BR.rb +3 -0
  38. data/rails/pluralization/sr.rb +29 -2
  39. data/rails/pluralization/st.rb +3 -0
  40. data/rails/pluralization/tr.rb +1 -1
  41. data/rails/transliteration/da.yml +10 -0
  42. data/rails/transliteration/ka.yml +37 -0
  43. data/rails/transliteration/uk.rb +5 -21
  44. metadata +18 -10
  45. data/lib/rails_i18n/unicode.rb +0 -1
@@ -0,0 +1,215 @@
1
+ ---
2
+ st:
3
+ activerecord:
4
+ errors:
5
+ messages:
6
+ record_invalid: 'Netefatso e fosahetse: %{errors}'
7
+ restrict_dependent_destroy:
8
+ has_one: E ka se hlakolehe hobane kamano e le ٰngoe teng le %{record}
9
+ has_many: E ka se hlakolehe hobane kamano tse ngata li teng le %{record}
10
+ date:
11
+ abbr_day_names:
12
+ - Son
13
+ - ٰMan
14
+ - Labob
15
+ - Labor
16
+ - Labon
17
+ - Laboh
18
+ - Moq
19
+ abbr_month_names:
20
+ -
21
+ - Phe
22
+ - Hlako
23
+ - Tlha
24
+ - ٰMes
25
+ - Motš
26
+ - Phupt
27
+ - Phup
28
+ - Pha
29
+ - Loe
30
+ - Mph
31
+ - Pul
32
+ - Tši
33
+ day_names:
34
+ - Sontaha
35
+ - ٰMantaha
36
+ - Labobeli
37
+ - Laboraro
38
+ - Labone
39
+ - Labohlano
40
+ - Moqebelo
41
+ formats:
42
+ default: "%Y-%m-%d"
43
+ long: "%B %d, %Y"
44
+ short: "%b %d"
45
+ month_names:
46
+ -
47
+ - Pherekhong
48
+ - Hlakola
49
+ - Hlakubele
50
+ - ٰMesa
51
+ - Motšeanong
52
+ - Phuptjane
53
+ - Phupu
54
+ - Phato
55
+ - Loetse
56
+ - Mphalane
57
+ - Pulungoana
58
+ - Tšitoe
59
+ order:
60
+ - :year
61
+ - :month
62
+ - :day
63
+ datetime:
64
+ distance_in_words:
65
+ about_x_hours:
66
+ one: ekaba hora e le ٰngoe
67
+ other: ekaba hora tse %{count}
68
+ about_x_months:
69
+ one: ekaba khoeli e le ٰngoe
70
+ other: ekaba likhoeli tse %{count}
71
+ about_x_years:
72
+ one: ekaba selemo se le seng
73
+ other: ekaba lilemo tse %{count}
74
+ almost_x_years:
75
+ one: e tlo ba selemo se le seng
76
+ other: e tlo ba lilemo tse %{count}
77
+ half_a_minute: halofo ea motsotso
78
+ less_than_x_seconds:
79
+ one: ka tlase ho motsotsoana
80
+ other: ka tlase ho metsotsoana e %{count}
81
+ less_than_x_minutes:
82
+ one: ka tlase ho motsotso
83
+ other: ka tlase ho metsotso e %{count}
84
+ over_x_years:
85
+ one: ka holimo ho selemo
86
+ other: ka holimo ho lilemo tse %{count}
87
+ x_seconds:
88
+ one: motsotsoana o le mong
89
+ other: metsotsoana e %{count}
90
+ x_minutes:
91
+ one: motsotso o le mong
92
+ other: metsotso e %{count}
93
+ x_days:
94
+ one: letsatsi le le leng
95
+ other: matsatsi a %{count}
96
+ x_months:
97
+ one: khoeli e le \'ngoe
98
+ other: likhoeli tse %{count}
99
+ x_years:
100
+ one: selemo se le seng
101
+ other: lilemo tse %{count}
102
+ prompts:
103
+ second: Motsotsoana
104
+ minute: Motsotso
105
+ hour: Hora
106
+ day: Letsatsi
107
+ month: Khoeli
108
+ year: Selemo
109
+ errors:
110
+ format: "%{attribute} %{message}"
111
+ messages:
112
+ accepted: e tlameha ho amoheloa
113
+ blank: e ka se be letho
114
+ confirmation: ha e lumellane le %{attribute}
115
+ empty: e ka se be letho
116
+ equal_to: e tlameha ho lekana le %{count}
117
+ even: e tlameha ho lekana
118
+ exclusion: e bolokiloe
119
+ greater_than: e tlameha e be kholo ho %{count}
120
+ greater_than_or_equal_to: e tlameha e be kholo kapa e lekane le %{count}
121
+ inclusion: ha ea kenyelletsoa lenaneng
122
+ invalid: ha e sebetse
123
+ less_than: e tlameha e be nyane ho %{count}
124
+ less_than_or_equal_to: e tlameha e be nyane kapa e lekane le %{count}
125
+ model_invalid: 'Liphoso tsa netefatso: %{errors}'
126
+ not_a_number: ha se palo
127
+ not_an_integer: e tšoanetse e be palo e felletseng
128
+ odd: e tlameha ho makatsa
129
+ other_than: e tlameha e be kholo ho %{count}
130
+ present: e tlameha ebe ha e na letho
131
+ required: e tlameha ho ba teng
132
+ taken: e sentse e nkuoe
133
+ too_long:
134
+ one: e telele haholo (boholo ke semelo se le seng)
135
+ other: e telele haholo (boholo ke limelo tse %{count})
136
+ too_short:
137
+ one: e khutšoane haholo (bonyane ke semelo se le seng)
138
+ other: e khutšoane haholo (bonyane ke limelo tse %{count})
139
+ wrong_length:
140
+ one: ke bolelele bo fosahetseng (e tšoanetse e be semelo se le seng)
141
+ other: ke bolelele bo fosahetseng (e tšoanetse e be limelo tse %{count})
142
+ template:
143
+ body: 'Ho bile le mathata ka a itseng makaleng a latelang:'
144
+ header:
145
+ one: phoso e le ٰngoe e thibetse %{model} ho bolokeha
146
+ other: liphoso tse %{count} li thibetse %{model} ho bolokeha
147
+ helpers:
148
+ select:
149
+ prompt: Khetha ka kopo
150
+ submit:
151
+ create: Bopa %{model}
152
+ submit: Boloka %{model}
153
+ update: Ntjhafatsa %{model}
154
+ number:
155
+ currency:
156
+ format:
157
+ delimiter: ","
158
+ format: "%u%n"
159
+ precision: 2
160
+ separator: "."
161
+ significant: false
162
+ strip_insignificant_zeros: false
163
+ unit: M
164
+ format:
165
+ delimiter: ","
166
+ precision: 3
167
+ separator: "."
168
+ significant: false
169
+ strip_insignificant_zeros: false
170
+ human:
171
+ decimal_units:
172
+ format: "%n %u"
173
+ units:
174
+ billion: Bilione
175
+ million: Milione
176
+ quadrillion: Libilione tse likete
177
+ thousand: Sekete
178
+ trillion: Trilione
179
+ unit: ''
180
+ format:
181
+ delimiter: ''
182
+ precision: 3
183
+ significant: true
184
+ strip_insignificant_zeros: true
185
+ storage_units:
186
+ format: "%n %u"
187
+ units:
188
+ byte:
189
+ one: Byte
190
+ other: Bytes
191
+ eb: EB
192
+ gb: GB
193
+ kb: KB
194
+ mb: MB
195
+ pb: PB
196
+ tb: TB
197
+ percentage:
198
+ format:
199
+ delimiter: ''
200
+ format: "%n%"
201
+ precision:
202
+ format:
203
+ delimiter: ''
204
+ support:
205
+ array:
206
+ last_word_connector: ", le "
207
+ two_words_connector: " le "
208
+ words_connector: ", "
209
+ time:
210
+ am: am
211
+ formats:
212
+ default: "%a, %d %b %Y %H:%M:%S %z"
213
+ long: "%B %d, %Y %H:%M"
214
+ short: "%d %b %H:%M"
215
+ pm: pm
data/rails/locale/sv.yml CHANGED
@@ -136,8 +136,8 @@ sv:
136
136
  template:
137
137
  body: 'Det var problem med följande fält:'
138
138
  header:
139
- one: Ett fel förhindrade denna %{model} från att sparas
140
- other: "%{count} fel förhindrade denna %{model} från att sparas"
139
+ one: Ett fel förhindrade ifrågavarande %{model} från att sparas
140
+ other: "%{count} fel förhindrade ifrågavarande %{model} från att sparas"
141
141
  helpers:
142
142
  select:
143
143
  prompt: Välj
data/rails/locale/uk.yml CHANGED
@@ -63,8 +63,8 @@ uk:
63
63
  datetime:
64
64
  distance_in_words:
65
65
  about_x_hours:
66
- one: близько %{count} година
67
- few: близько %{count} години
66
+ one: близько %{count} години
67
+ few: близько %{count} годин
68
68
  many: близько %{count} годин
69
69
  other: близько %{count} години
70
70
  about_x_months:
@@ -78,8 +78,8 @@ uk:
78
78
  many: близько %{count} років
79
79
  other: близько %{count} року
80
80
  almost_x_years:
81
- one: майже %{count} роки
82
- few: майже %{count} років
81
+ one: майже %{count} рік
82
+ few: майже %{count} роки
83
83
  many: майже %{count} років
84
84
  other: майже %{count} років
85
85
  half_a_minute: пів хвилини
data/rails/locale/vi.yml CHANGED
@@ -128,6 +128,7 @@ vi:
128
128
  too_long: quá dài (tối đa %{count} ký tự)
129
129
  too_short: quá ngắn (tối thiểu %{count} ký tự)
130
130
  wrong_length: độ dài không đúng (phải là %{count} ký tự)
131
+ required: "phải có"
131
132
  template:
132
133
  body: 'Có lỗi với các mục sau:'
133
134
  header:
@@ -83,7 +83,7 @@ zh-CN:
83
83
  month: 月
84
84
  year: 年
85
85
  errors:
86
- format: "%{attribute}%{message}"
86
+ format: "%{attribute} %{message}"
87
87
  messages:
88
88
  accepted: 必须是可被接受的
89
89
  blank: 不能为空字符
@@ -155,7 +155,7 @@ zh-TW:
155
155
  currency:
156
156
  format:
157
157
  delimiter: ","
158
- format: "%u %n"
158
+ format: "%u%n"
159
159
  precision: 2
160
160
  separator: "."
161
161
  significant: false
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/other'
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
2
 
3
- ::RailsI18n::Pluralization::Other.with_locale(:ka)
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:ka)
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/other'
2
+
3
+ ::RailsI18n::Pluralization::Other.with_locale(:'pap-AW')
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/other'
2
+
3
+ ::RailsI18n::Pluralization::Other.with_locale(:'pap-CW')
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:'pt-BR')
@@ -1,3 +1,30 @@
1
- require 'rails_i18n/common_pluralizations/east_slavic'
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
2
6
 
3
- ::RailsI18n::Pluralization::EastSlavic.with_locale(:sr)
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 }}}}
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:st)
@@ -1,3 +1,3 @@
1
1
  require 'rails_i18n/common_pluralizations/other'
2
2
 
3
- ::RailsI18n::Pluralization::Other.with_locale(:tr)
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:tr)
@@ -0,0 +1,10 @@
1
+ da:
2
+ i18n:
3
+ transliterate:
4
+ rule:
5
+ æ: "ae"
6
+ ø: "oe"
7
+ å: "aa"
8
+ Æ: "Ae"
9
+ Ø: "Oe"
10
+ Å: "Aa"
@@ -0,0 +1,37 @@
1
+ ka:
2
+ i18n:
3
+ transliterate:
4
+ rule:
5
+ ა: "a"
6
+ ბ: "b"
7
+ გ: "g"
8
+ დ: "d"
9
+ ე: "e"
10
+ ვ: "v"
11
+ ზ: "z"
12
+ თ: "T"
13
+ ი: "i"
14
+ კ: "k"
15
+ ლ: "l"
16
+ მ: "m"
17
+ ნ: "n"
18
+ ო: "o"
19
+ პ: "p"
20
+ ჟ: "J"
21
+ რ: "r"
22
+ ს: "s"
23
+ ტ: "t"
24
+ უ: "u"
25
+ ფ: "f"
26
+ ქ: "q"
27
+ ღ: "R"
28
+ ყ: "y"
29
+ შ: "S"
30
+ ჩ: "C"
31
+ ც: "c"
32
+ ძ: "Z"
33
+ წ: "w"
34
+ ჭ: "W"
35
+ ხ: "x"
36
+ ჯ: "j"
37
+ ჰ: "h"
@@ -62,28 +62,12 @@ module RailsI18n
62
62
 
63
63
  private
64
64
 
65
- if RUBY_VERSION < '1.9'
66
- # two bytes will be enough for Cyrillic
67
- class_eval <<-END, __FILE__, __LINE__ + 1
68
- def behind
69
- tail = @pre_match && @pre_match[-2..-1]
70
- tail && tail.split(//).last
71
- end
72
-
73
- def ahead
74
- @post_match && @post_match[0..1].split(//).first
75
- end
76
- END
77
- else
78
- class_eval <<-END, __FILE__, __LINE__ + 1
79
- def behind
80
- @pre_match && @pre_match[-1]
81
- end
65
+ def behind
66
+ @pre_match && @pre_match[-1]
67
+ end
82
68
 
83
- def ahead
84
- @post_match && @post_match[0]
85
- end
86
- END
69
+ def ahead
70
+ @post_match && @post_match[0]
87
71
  end
88
72
 
89
73
  def downcased?(symbol)
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: 6.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails I18n Group
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-17 00:00:00.000000000 Z
11
+ date: 2021-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 6.0.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7'
42
+ version: '8'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 6.0.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7'
52
+ version: '8'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec-rails
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -113,7 +113,6 @@ files:
113
113
  - lib/rails_i18n/common_pluralizations/romanian.rb
114
114
  - lib/rails_i18n/common_pluralizations/west_slavic.rb
115
115
  - lib/rails_i18n/railtie.rb
116
- - lib/rails_i18n/unicode.rb
117
116
  - rails/locale/af.yml
118
117
  - rails/locale/ar.yml
119
118
  - rails/locale/az.yml
@@ -138,6 +137,7 @@ files:
138
137
  - rails/locale/en-IE.yml
139
138
  - rails/locale/en-IN.yml
140
139
  - rails/locale/en-NZ.yml
140
+ - rails/locale/en-TT.yml
141
141
  - rails/locale/en-US.yml
142
142
  - rails/locale/en-ZA.yml
143
143
  - rails/locale/en.yml
@@ -196,6 +196,8 @@ files:
196
196
  - rails/locale/oc.yml
197
197
  - rails/locale/or.yml
198
198
  - rails/locale/pa.yml
199
+ - rails/locale/pap-AW.yml
200
+ - rails/locale/pap-CW.yml
199
201
  - rails/locale/pl.yml
200
202
  - rails/locale/pt-BR.yml
201
203
  - rails/locale/pt.yml
@@ -206,6 +208,7 @@ files:
206
208
  - rails/locale/sl.yml
207
209
  - rails/locale/sq.yml
208
210
  - rails/locale/sr.yml
211
+ - rails/locale/st.yml
209
212
  - rails/locale/sv-SE.yml
210
213
  - rails/locale/sv.yml
211
214
  - rails/locale/sw.yml
@@ -330,7 +333,10 @@ files:
330
333
  - rails/pluralization/oc.rb
331
334
  - rails/pluralization/or.rb
332
335
  - rails/pluralization/pa.rb
336
+ - rails/pluralization/pap-AW.rb
337
+ - rails/pluralization/pap-CW.rb
333
338
  - rails/pluralization/pl.rb
339
+ - rails/pluralization/pt-BR.rb
334
340
  - rails/pluralization/pt.rb
335
341
  - rails/pluralization/ro.rb
336
342
  - rails/pluralization/root.rb
@@ -349,6 +355,7 @@ files:
349
355
  - rails/pluralization/smn.rb
350
356
  - rails/pluralization/sms.rb
351
357
  - rails/pluralization/sr.rb
358
+ - rails/pluralization/st.rb
352
359
  - rails/pluralization/sv-SE.rb
353
360
  - rails/pluralization/sv.rb
354
361
  - rails/pluralization/sw.rb
@@ -372,12 +379,14 @@ files:
372
379
  - rails/transliteration/az.yml
373
380
  - rails/transliteration/bg.yml
374
381
  - rails/transliteration/ca.yml
382
+ - rails/transliteration/da.yml
375
383
  - rails/transliteration/de.yml
376
384
  - rails/transliteration/el.yml
377
385
  - rails/transliteration/es.yml
378
386
  - rails/transliteration/fa.yml
379
387
  - rails/transliteration/fr.yml
380
388
  - rails/transliteration/hu.yml
389
+ - rails/transliteration/ka.yml
381
390
  - rails/transliteration/oc.yml
382
391
  - rails/transliteration/pl.yml
383
392
  - rails/transliteration/pt.yml
@@ -389,7 +398,7 @@ homepage: http://github.com/svenfuchs/rails-i18n
389
398
  licenses:
390
399
  - MIT
391
400
  metadata: {}
392
- post_install_message:
401
+ post_install_message:
393
402
  rdoc_options: []
394
403
  require_paths:
395
404
  - lib
@@ -404,9 +413,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
404
413
  - !ruby/object:Gem::Version
405
414
  version: 1.8.11
406
415
  requirements: []
407
- rubyforge_project:
408
- rubygems_version: 2.7.3
409
- signing_key:
416
+ rubygems_version: 3.2.32
417
+ signing_key:
410
418
  specification_version: 4
411
419
  summary: Common locale data and translations for Rails i18n.
412
420
  test_files: []
@@ -1 +0,0 @@
1
- $KCODE = "U" if RUBY_VERSION < '1.9' && $KCODE == 'NONE'