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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +29 -3
- data/README.md +17 -6
- data/rails/locale/af.yml +6 -3
- data/rails/locale/ar.yml +87 -84
- data/rails/locale/az.yml +6 -3
- data/rails/locale/be.yml +9 -6
- data/rails/locale/bg.yml +6 -3
- data/rails/locale/bs.yml +9 -6
- data/rails/locale/ca.yml +6 -3
- data/rails/locale/cs.yml +10 -6
- data/rails/locale/cy.yml +6 -3
- data/rails/locale/da.yml +11 -6
- data/rails/locale/de-AT.yml +18 -9
- data/rails/locale/de-CH.yml +10 -5
- data/rails/locale/de-DE.yml +18 -9
- data/rails/locale/de.yml +18 -9
- data/rails/locale/el.yml +4 -1
- data/rails/locale/en-AU.yml +6 -3
- data/rails/locale/en-CA.yml +9 -3
- data/rails/locale/en-GB.yml +9 -3
- data/rails/locale/en-IE.yml +9 -3
- data/rails/locale/en-IN.yml +9 -3
- data/rails/locale/en-NZ.yml +9 -3
- data/rails/locale/en-US.yml +11 -6
- data/rails/locale/en-ZA.yml +9 -6
- data/rails/locale/en.yml +11 -6
- data/rails/locale/eo.yml +7 -4
- data/rails/locale/es-419.yml +20 -5
- data/rails/locale/es-AR.yml +18 -8
- data/rails/locale/es-CL.yml +27 -11
- data/rails/locale/es-CO.yml +18 -8
- data/rails/locale/es-CR.yml +18 -8
- data/rails/locale/es-EC.yml +17 -8
- data/rails/locale/es-ES.yml +24 -14
- data/rails/locale/es-MX.yml +17 -8
- data/rails/locale/es-PA.yml +42 -33
- data/rails/locale/es-PE.yml +20 -10
- data/rails/locale/es-US.yml +18 -8
- data/rails/locale/es-VE.yml +19 -9
- data/rails/locale/es.yml +24 -14
- data/rails/locale/et.yml +6 -3
- data/rails/locale/eu.yml +6 -3
- data/rails/locale/fa.yml +6 -3
- data/rails/locale/fi.yml +6 -3
- data/rails/locale/fr-CA.yml +6 -3
- data/rails/locale/fr-CH.yml +6 -6
- data/rails/locale/fr-FR.yml +6 -6
- data/rails/locale/fr.yml +9 -6
- data/rails/locale/he.yml +6 -3
- data/rails/locale/hi-IN.yml +6 -3
- data/rails/locale/hi.yml +6 -3
- data/rails/locale/hr.yml +9 -6
- data/rails/locale/hu.yml +6 -3
- data/rails/locale/id.yml +13 -7
- data/rails/locale/is.yml +9 -6
- data/rails/locale/it-CH.yml +6 -3
- data/rails/locale/it.yml +10 -6
- data/rails/locale/ja.yml +15 -8
- data/rails/locale/km.yml +12 -9
- data/rails/locale/kn.yml +6 -3
- data/rails/locale/ko.yml +6 -3
- data/rails/locale/lb.yml +7 -4
- data/rails/locale/lo.yml +6 -3
- data/rails/locale/lt.yml +9 -6
- data/rails/locale/lv.yml +6 -3
- data/rails/locale/mk.yml +6 -3
- data/rails/locale/ml.yml +210 -0
- data/rails/locale/mn.yml +6 -3
- data/rails/locale/mr-IN.yml +7 -6
- data/rails/locale/ms.yml +6 -3
- data/rails/locale/nb.yml +13 -7
- data/rails/locale/ne.yml +6 -3
- data/rails/locale/nl.yml +11 -6
- data/rails/locale/nn.yml +14 -8
- data/rails/locale/or.yml +6 -3
- data/rails/locale/pa.yml +9 -6
- data/rails/locale/pl.yml +9 -6
- data/rails/locale/pt-BR.yml +21 -10
- data/rails/locale/pt.yml +6 -3
- data/rails/locale/ro.yml +6 -3
- data/rails/locale/ru.yml +7 -4
- data/rails/locale/sk.yml +6 -3
- data/rails/locale/sl.yml +6 -3
- data/rails/locale/sq.yml +18 -15
- data/rails/locale/sr.yml +9 -6
- data/rails/locale/sv-SE.yml +202 -0
- data/rails/locale/sv.yml +9 -6
- data/rails/locale/sw.yml +6 -3
- data/rails/locale/ta.yml +9 -6
- data/rails/locale/th.yml +6 -3
- data/rails/locale/tl.yml +6 -3
- data/rails/locale/tr.yml +11 -6
- data/rails/locale/tt.yml +9 -6
- data/rails/locale/ug.yml +9 -6
- data/rails/locale/uk.yml +9 -3
- data/rails/locale/ur.yml +10 -7
- data/rails/locale/uz.yml +6 -3
- data/rails/locale/vi.yml +9 -6
- data/rails/locale/wo.yml +9 -3
- data/rails/locale/zh-CN.yml +11 -6
- data/rails/locale/zh-HK.yml +36 -31
- data/rails/locale/zh-TW.yml +11 -6
- data/rails/locale/zh-YUE.yml +39 -34
- data/rails/pluralization/es-CR.rb +3 -0
- data/rails/pluralization/es-PA.rb +3 -0
- data/rails/pluralization/es-US.rb +3 -0
- data/rails/pluralization/he.rb +2 -20
- data/rails/pluralization/ml.rb +3 -0
- data/rails/pluralization/pt.rb +3 -0
- data/rails/pluralization/sv-SE.rb +3 -0
- data/rails/transliteration/es.yml +18 -0
- metadata +22 -13
data/rails/locale/zh-YUE.yml
CHANGED
@@ -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:
|
103
|
-
blank: "
|
104
|
-
present: "
|
105
|
-
confirmation: "
|
106
|
-
empty: "
|
107
|
-
equal_to: "%{
|
108
|
-
even: "
|
109
|
-
exclusion: "
|
110
|
-
greater_than: "
|
111
|
-
greater_than_or_equal_to: "
|
112
|
-
inclusion: "
|
113
|
-
invalid: "
|
114
|
-
less_than: "
|
115
|
-
less_than_or_equal_to: "
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
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:
|
130
|
+
one: 太長(最多 1 個字)
|
131
|
+
other: 太長(最多 %{count} 個字)
|
127
132
|
too_short:
|
128
|
-
one: 太短(最少1個字)
|
129
|
-
other:
|
133
|
+
one: 太短(最少 1 個字)
|
134
|
+
other: 太短(最少 %{count} 個字)
|
130
135
|
wrong_length:
|
131
|
-
one: 唔啱字數 (要係1個字)
|
132
|
-
other: 唔啱字數 (
|
133
|
-
other_than: "
|
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:
|
148
|
+
create: 新增%{model}
|
144
149
|
submit: 儲存%{model}
|
145
150
|
update: 更新%{model}
|
146
151
|
number:
|
data/rails/pluralization/he.rb
CHANGED
@@ -1,21 +1,3 @@
|
|
1
|
-
|
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
|
-
|
18
|
-
:i18n => {
|
19
|
-
:plural => {
|
20
|
-
:keys => [:one, :two, :many, :other],
|
21
|
-
:rule => RailsI18n::Pluralization::Hebrew.rule }}}}
|
3
|
+
::RailsI18n::Pluralization::OneOther.with_locale(:he)
|
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
|
+
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: '
|
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: '
|
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:
|
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:
|
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.
|
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.
|
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.
|
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.
|
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
|