rails-i18n 4.0.9 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -3
  3. data/README.md +17 -6
  4. data/rails/locale/af.yml +6 -3
  5. data/rails/locale/ar.yml +87 -84
  6. data/rails/locale/az.yml +6 -3
  7. data/rails/locale/be.yml +9 -6
  8. data/rails/locale/bg.yml +6 -3
  9. data/rails/locale/bs.yml +9 -6
  10. data/rails/locale/ca.yml +6 -3
  11. data/rails/locale/cs.yml +10 -6
  12. data/rails/locale/cy.yml +6 -3
  13. data/rails/locale/da.yml +11 -6
  14. data/rails/locale/de-AT.yml +18 -9
  15. data/rails/locale/de-CH.yml +10 -5
  16. data/rails/locale/de-DE.yml +18 -9
  17. data/rails/locale/de.yml +18 -9
  18. data/rails/locale/el.yml +4 -1
  19. data/rails/locale/en-AU.yml +6 -3
  20. data/rails/locale/en-CA.yml +9 -3
  21. data/rails/locale/en-GB.yml +9 -3
  22. data/rails/locale/en-IE.yml +9 -3
  23. data/rails/locale/en-IN.yml +9 -3
  24. data/rails/locale/en-NZ.yml +9 -3
  25. data/rails/locale/en-US.yml +11 -6
  26. data/rails/locale/en-ZA.yml +9 -6
  27. data/rails/locale/en.yml +11 -6
  28. data/rails/locale/eo.yml +7 -4
  29. data/rails/locale/es-419.yml +20 -5
  30. data/rails/locale/es-AR.yml +18 -8
  31. data/rails/locale/es-CL.yml +27 -11
  32. data/rails/locale/es-CO.yml +18 -8
  33. data/rails/locale/es-CR.yml +18 -8
  34. data/rails/locale/es-EC.yml +17 -8
  35. data/rails/locale/es-ES.yml +24 -14
  36. data/rails/locale/es-MX.yml +17 -8
  37. data/rails/locale/es-PA.yml +42 -33
  38. data/rails/locale/es-PE.yml +20 -10
  39. data/rails/locale/es-US.yml +18 -8
  40. data/rails/locale/es-VE.yml +19 -9
  41. data/rails/locale/es.yml +24 -14
  42. data/rails/locale/et.yml +6 -3
  43. data/rails/locale/eu.yml +6 -3
  44. data/rails/locale/fa.yml +6 -3
  45. data/rails/locale/fi.yml +6 -3
  46. data/rails/locale/fr-CA.yml +6 -3
  47. data/rails/locale/fr-CH.yml +6 -6
  48. data/rails/locale/fr-FR.yml +6 -6
  49. data/rails/locale/fr.yml +9 -6
  50. data/rails/locale/he.yml +6 -3
  51. data/rails/locale/hi-IN.yml +6 -3
  52. data/rails/locale/hi.yml +6 -3
  53. data/rails/locale/hr.yml +9 -6
  54. data/rails/locale/hu.yml +6 -3
  55. data/rails/locale/id.yml +13 -7
  56. data/rails/locale/is.yml +9 -6
  57. data/rails/locale/it-CH.yml +6 -3
  58. data/rails/locale/it.yml +10 -6
  59. data/rails/locale/ja.yml +15 -8
  60. data/rails/locale/km.yml +12 -9
  61. data/rails/locale/kn.yml +6 -3
  62. data/rails/locale/ko.yml +6 -3
  63. data/rails/locale/lb.yml +7 -4
  64. data/rails/locale/lo.yml +6 -3
  65. data/rails/locale/lt.yml +9 -6
  66. data/rails/locale/lv.yml +6 -3
  67. data/rails/locale/mk.yml +6 -3
  68. data/rails/locale/ml.yml +210 -0
  69. data/rails/locale/mn.yml +6 -3
  70. data/rails/locale/mr-IN.yml +7 -6
  71. data/rails/locale/ms.yml +6 -3
  72. data/rails/locale/nb.yml +13 -7
  73. data/rails/locale/ne.yml +6 -3
  74. data/rails/locale/nl.yml +11 -6
  75. data/rails/locale/nn.yml +14 -8
  76. data/rails/locale/or.yml +6 -3
  77. data/rails/locale/pa.yml +9 -6
  78. data/rails/locale/pl.yml +9 -6
  79. data/rails/locale/pt-BR.yml +21 -10
  80. data/rails/locale/pt.yml +6 -3
  81. data/rails/locale/ro.yml +6 -3
  82. data/rails/locale/ru.yml +7 -4
  83. data/rails/locale/sk.yml +6 -3
  84. data/rails/locale/sl.yml +6 -3
  85. data/rails/locale/sq.yml +18 -15
  86. data/rails/locale/sr.yml +9 -6
  87. data/rails/locale/sv-SE.yml +202 -0
  88. data/rails/locale/sv.yml +9 -6
  89. data/rails/locale/sw.yml +6 -3
  90. data/rails/locale/ta.yml +9 -6
  91. data/rails/locale/th.yml +6 -3
  92. data/rails/locale/tl.yml +6 -3
  93. data/rails/locale/tr.yml +11 -6
  94. data/rails/locale/tt.yml +9 -6
  95. data/rails/locale/ug.yml +9 -6
  96. data/rails/locale/uk.yml +9 -3
  97. data/rails/locale/ur.yml +10 -7
  98. data/rails/locale/uz.yml +6 -3
  99. data/rails/locale/vi.yml +9 -6
  100. data/rails/locale/wo.yml +9 -3
  101. data/rails/locale/zh-CN.yml +11 -6
  102. data/rails/locale/zh-HK.yml +36 -31
  103. data/rails/locale/zh-TW.yml +11 -6
  104. data/rails/locale/zh-YUE.yml +39 -34
  105. data/rails/pluralization/es-CR.rb +3 -0
  106. data/rails/pluralization/es-PA.rb +3 -0
  107. data/rails/pluralization/es-US.rb +3 -0
  108. data/rails/pluralization/he.rb +2 -20
  109. data/rails/pluralization/ml.rb +3 -0
  110. data/rails/pluralization/pt.rb +3 -0
  111. data/rails/pluralization/sv-SE.rb +3 -0
  112. data/rails/transliteration/es.yml +18 -0
  113. metadata +22 -13
@@ -1,5 +1,12 @@
1
1
  ---
2
2
  zh-YUE:
3
+ activerecord:
4
+ errors:
5
+ messages:
6
+ record_invalid: "驗證失敗︰%{errors}"
7
+ restrict_dependent_destroy:
8
+ has_one: 唔可以刪除,因為%{record}要用佢
9
+ has_many: 唔可以刪除,因為%{record}要用佢
3
10
  date:
4
11
  abbr_day_names:
5
12
  - 周日
@@ -10,7 +17,7 @@ zh-YUE:
10
17
  - 周五
11
18
  - 周六
12
19
  abbr_month_names:
13
- -
20
+ -
14
21
  - 1月
15
22
  - 2月
16
23
  - 3月
@@ -36,7 +43,7 @@ zh-YUE:
36
43
  long: "%Y年%b%d日"
37
44
  short: "%b%d日"
38
45
  month_names:
39
- -
46
+ -
40
47
  - 一月
41
48
  - 二月
42
49
  - 三月
@@ -97,40 +104,38 @@ zh-YUE:
97
104
  second: 秒
98
105
  year: 年
99
106
  errors:
100
- format: "%{message}"
107
+ format: "%{attribute} %{message}"
101
108
  messages:
102
- accepted: 一定要接受%{attribute}
103
- blank: "%{attribute}唔可以空白"
104
- present: "%{attribute}要空白"
105
- confirmation: "%{attribute}唔夾"
106
- empty: "%{attribute}唔可以漏空"
107
- equal_to: "%{attribute}要係%{count}"
108
- even: "%{attribute}要係雙數"
109
- exclusion: "%{attribute}唔用得"
110
- greater_than: "%{attribute}要大過%{count}"
111
- greater_than_or_equal_to: "%{attribute}要大過或者等於%{count}"
112
- inclusion: "%{attribute}唔喺表入面"
113
- invalid: "%{attribute}無效"
114
- less_than: "%{attribute}要細過%{count}"
115
- less_than_or_equal_to: "%{attribute}要細過或者等於%{count}"
116
- not_a_number: "%{attribute}唔係一個數"
117
- not_an_integer: "%{attribute}要係整數"
118
- odd: "%{attribute}要係單數"
119
- record_invalid: "%{attribute}有問題︰%{errors}"
120
- restrict_dependent_destroy:
121
- one: 唔可以刪除,因為%{record}要用佢
122
- many: 唔可以刪除,因為%{record}要用佢
123
- taken: "%{attribute}已經用過"
109
+ accepted: 一定要被接受
110
+ blank: "唔可以空白"
111
+ present: "一定要空白"
112
+ confirmation: "兩次輸入唔夾"
113
+ empty: "唔可以漏空"
114
+ equal_to: "要等於 %{count}"
115
+ even: "要係雙數"
116
+ exclusion: "唔用得"
117
+ greater_than: "要大過%{count}"
118
+ greater_than_or_equal_to: "要大過或者等於%{count}"
119
+ inclusion: "唔係可被接受嘅內容"
120
+ invalid: "無效"
121
+ less_than: "要細過%{count}"
122
+ less_than_or_equal_to: "要細過或者等於%{count}"
123
+ model_invalid: "驗證失敗︰%{errors}"
124
+ not_a_number: "唔係一個數字"
125
+ not_an_integer: "要係整數"
126
+ odd: "要係單數"
127
+ required: 必須存在
128
+ taken: "已經用緊"
124
129
  too_long:
125
- one: 太長(最多1個字)
126
- other: 太長(最多%{count}個字)
130
+ one: 太長(最多 1 個字)
131
+ other: 太長(最多 %{count} 個字)
127
132
  too_short:
128
- one: 太短(最少1個字)
129
- other: 太短(最少%{count}個字)
133
+ one: 太短(最少 1 個字)
134
+ other: 太短(最少 %{count} 個字)
130
135
  wrong_length:
131
- one: 唔啱字數 (要係1個字)
132
- other: 唔啱字數 (要係%{count}個字)
133
- other_than: "%{attribute}唔可以係%{count}"
136
+ one: 唔啱字數 (要係 1 個字)
137
+ other: 唔啱字數 (要係 %{count} 個字)
138
+ other_than: "唔可以係%{count} 個字"
134
139
  template:
135
140
  body: 呢啲有問題︰
136
141
  header:
@@ -138,9 +143,9 @@ zh-YUE:
138
143
  other: 有%{count}個問題,%{model}儲存唔到。
139
144
  helpers:
140
145
  select:
141
- prompt: 喺度揀
146
+ prompt: 請喺度揀
142
147
  submit:
143
- create: 新嘅%{model}
148
+ create: 新增%{model}
144
149
  submit: 儲存%{model}
145
150
  update: 更新%{model}
146
151
  number:
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:'es-CR')
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:'es-PA')
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:'es-US')
@@ -1,21 +1,3 @@
1
- module RailsI18n
2
- module Pluralization
3
- module Hebrew
4
- def self.rule
5
- lambda do |n|
6
- if n == 1
7
- :one
8
- else
9
- :other
10
- end
11
- end
12
- end
13
- end
14
- end
15
- end
1
+ require 'rails_i18n/common_pluralizations/one_other'
16
2
 
17
- { :he => {
18
- :i18n => {
19
- :plural => {
20
- :keys => [:one, :two, :many, :other],
21
- :rule => RailsI18n::Pluralization::Hebrew.rule }}}}
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:he)
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_with_zero_other'
2
+
3
+ ::RailsI18n::Pluralization::OneWithZeroOther.with_locale(:ml)
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:pt)
@@ -0,0 +1,3 @@
1
+ require 'rails_i18n/common_pluralizations/one_other'
2
+
3
+ ::RailsI18n::Pluralization::OneOther.with_locale(:'sv-SE')
@@ -0,0 +1,18 @@
1
+ es:
2
+ i18n:
3
+ transliterate:
4
+ rule:
5
+ á: "a"
6
+ é: "e"
7
+ í: "i"
8
+ ó: "o"
9
+ ú: "u"
10
+ ü: "u"
11
+ ñ: "n"
12
+ Á: "A"
13
+ É: "E"
14
+ Í: "I"
15
+ Ó: "O"
16
+ Ú: "U"
17
+ Ü: "U"
18
+ Ñ: "N"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.9
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails I18n Group
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '4.0'
33
+ version: '5.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: '5.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.14.2
47
+ version: '3.1'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.14.2
54
+ version: '3.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: i18n-spec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.4.0
61
+ version: 0.6.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '='
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.4.0
68
+ version: 0.6.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: spork
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.3.6
89
+ version: 0.9.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.3.6
96
+ version: 0.9.2
97
97
  description: A set of common locale data and translations to internationalize and/or
98
98
  localize your Rails applications.
99
99
  email: rails-i18n@googlegroups.com
@@ -182,6 +182,7 @@ files:
182
182
  - rails/locale/lt.yml
183
183
  - rails/locale/lv.yml
184
184
  - rails/locale/mk.yml
185
+ - rails/locale/ml.yml
185
186
  - rails/locale/mn.yml
186
187
  - rails/locale/mr-IN.yml
187
188
  - rails/locale/ms.yml
@@ -201,6 +202,7 @@ files:
201
202
  - rails/locale/sl.yml
202
203
  - rails/locale/sq.yml
203
204
  - rails/locale/sr.yml
205
+ - rails/locale/sv-SE.yml
204
206
  - rails/locale/sv.yml
205
207
  - rails/locale/sw.yml
206
208
  - rails/locale/ta.yml
@@ -252,10 +254,13 @@ files:
252
254
  - rails/pluralization/es-AR.rb
253
255
  - rails/pluralization/es-CL.rb
254
256
  - rails/pluralization/es-CO.rb
257
+ - rails/pluralization/es-CR.rb
255
258
  - rails/pluralization/es-EC.rb
256
259
  - rails/pluralization/es-ES.rb
257
260
  - rails/pluralization/es-MX.rb
261
+ - rails/pluralization/es-PA.rb
258
262
  - rails/pluralization/es-PE.rb
263
+ - rails/pluralization/es-US.rb
259
264
  - rails/pluralization/es-VE.rb
260
265
  - rails/pluralization/es.rb
261
266
  - rails/pluralization/et.rb
@@ -304,6 +309,7 @@ files:
304
309
  - rails/pluralization/lv.rb
305
310
  - rails/pluralization/mg.rb
306
311
  - rails/pluralization/mk.rb
312
+ - rails/pluralization/ml.rb
307
313
  - rails/pluralization/mn.rb
308
314
  - rails/pluralization/mo.rb
309
315
  - rails/pluralization/mr-IN.rb
@@ -319,6 +325,7 @@ files:
319
325
  - rails/pluralization/or.rb
320
326
  - rails/pluralization/pa.rb
321
327
  - rails/pluralization/pl.rb
328
+ - rails/pluralization/pt.rb
322
329
  - rails/pluralization/ro.rb
323
330
  - rails/pluralization/root.rb
324
331
  - rails/pluralization/ru.rb
@@ -336,6 +343,7 @@ files:
336
343
  - rails/pluralization/smn.rb
337
344
  - rails/pluralization/sms.rb
338
345
  - rails/pluralization/sr.rb
346
+ - rails/pluralization/sv-SE.rb
339
347
  - rails/pluralization/sv.rb
340
348
  - rails/pluralization/sw.rb
341
349
  - rails/pluralization/th.rb
@@ -358,6 +366,7 @@ files:
358
366
  - rails/transliteration/bg.yml
359
367
  - rails/transliteration/de.yml
360
368
  - rails/transliteration/el.yml
369
+ - rails/transliteration/es.yml
361
370
  - rails/transliteration/fr.yml
362
371
  - rails/transliteration/hu.yml
363
372
  - rails/transliteration/pl.yml