rails-i18n 0.6.5 → 4.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +217 -0
- data/README.md +48 -19
- data/lib/rails_i18n/common_pluralizations/east_slavic.rb +10 -3
- data/lib/rails_i18n/common_pluralizations/{only_one.rb → one_other.rb} +6 -5
- data/lib/rails_i18n/common_pluralizations/one_two_other.rb +7 -9
- data/lib/rails_i18n/common_pluralizations/one_upto_two_other.rb +1 -1
- data/lib/rails_i18n/common_pluralizations/romanian.rb +1 -0
- data/rails/locale/af.yml +199 -0
- data/rails/locale/ar.yml +163 -87
- data/rails/locale/az.yml +36 -42
- data/rails/locale/be.yml +205 -0
- data/rails/locale/bg.yml +28 -34
- data/rails/locale/{bn-IN.yml → bn.yml} +36 -42
- data/rails/locale/bs.yml +46 -44
- data/rails/locale/ca.yml +43 -49
- data/rails/locale/cs.yml +75 -62
- data/rails/locale/cy.yml +88 -44
- data/rails/locale/da.yml +32 -32
- data/rails/locale/de-AT.yml +48 -41
- data/rails/locale/de-CH.yml +58 -47
- data/rails/locale/de-DE.yml +210 -0
- data/rails/locale/de.yml +51 -44
- data/rails/locale/el.yml +41 -41
- data/rails/locale/en-AU.yml +28 -34
- data/rails/locale/en-CA.yml +28 -43
- data/rails/locale/en-GB.yml +28 -34
- data/rails/locale/en-IE.yml +199 -0
- data/rails/locale/en-IN.yml +28 -34
- data/rails/locale/en-NZ.yml +199 -0
- data/rails/locale/en-US.yml +35 -35
- data/rails/locale/en-ZA.yml +205 -0
- data/rails/locale/en.yml +34 -34
- data/rails/locale/eo.yml +28 -34
- data/rails/locale/es-419.yml +199 -0
- data/rails/locale/es-AR.yml +38 -39
- data/rails/locale/es-CL.yml +32 -33
- data/rails/locale/es-CO.yml +38 -39
- data/rails/locale/es-CR.yml +204 -0
- data/rails/locale/es-EC.yml +205 -0
- data/rails/locale/es-ES.yml +204 -0
- data/rails/locale/es-MX.yml +39 -39
- data/rails/locale/es-PA.yml +205 -0
- data/rails/locale/es-PE.yml +60 -37
- data/rails/locale/es-US.yml +204 -0
- data/rails/locale/es-VE.yml +40 -41
- data/rails/locale/es.yml +41 -36
- data/rails/locale/et.yml +33 -39
- data/rails/locale/eu.yml +41 -47
- data/rails/locale/fa.yml +41 -47
- data/rails/locale/fi.yml +43 -49
- data/rails/locale/fr-CA.yml +29 -35
- data/rails/locale/fr-CH.yml +35 -35
- data/rails/locale/fr-FR.yml +207 -0
- data/rails/locale/fr.yml +172 -187
- data/rails/locale/{gl-ES.yml → gl.yml} +33 -39
- data/rails/locale/he.yml +35 -41
- data/rails/locale/hi-IN.yml +35 -41
- data/rails/locale/hi.yml +37 -43
- data/rails/locale/hr.yml +61 -61
- data/rails/locale/hu.yml +51 -57
- data/rails/locale/id.yml +50 -44
- data/rails/locale/is.yml +31 -31
- data/rails/locale/it-CH.yml +199 -0
- data/rails/locale/it.yml +82 -82
- data/rails/locale/ja.yml +53 -55
- data/rails/locale/km.yml +164 -0
- data/rails/locale/kn.yml +38 -44
- data/rails/locale/ko.yml +29 -35
- data/rails/locale/lb.yml +206 -0
- data/rails/locale/lo.yml +85 -43
- data/rails/locale/lt.yml +85 -49
- data/rails/locale/lv.yml +63 -48
- data/rails/locale/mk.yml +80 -51
- data/rails/locale/mn.yml +56 -62
- data/rails/locale/mr-IN.yml +206 -0
- data/rails/locale/ms.yml +199 -0
- data/rails/locale/nb.yml +32 -33
- data/rails/locale/ne.yml +199 -0
- data/rails/locale/nl.yml +65 -59
- data/rails/locale/nn.yml +70 -28
- data/rails/locale/or.yml +193 -0
- data/rails/locale/pa.yml +205 -0
- data/rails/locale/pl.yml +69 -53
- data/rails/locale/pt-BR.yml +44 -44
- data/rails/locale/{pt-PT.yml → pt.yml} +35 -41
- data/rails/locale/rm.yml +74 -32
- data/rails/locale/ro.yml +41 -34
- data/rails/locale/ru.yml +51 -51
- data/rails/locale/sk.yml +35 -40
- data/rails/locale/sl.yml +33 -37
- data/rails/locale/sq.yml +205 -0
- data/rails/locale/sr.yml +128 -61
- data/rails/locale/{sv-SE.yml → sv.yml} +34 -34
- data/rails/locale/sw.yml +24 -30
- data/rails/locale/ta.yml +205 -0
- data/rails/locale/th.yml +25 -31
- data/rails/locale/tl.yml +105 -135
- data/rails/locale/tr.yml +62 -56
- data/rails/locale/tt.yml +215 -0
- data/rails/locale/ug.yml +204 -0
- data/rails/locale/uk.yml +54 -60
- data/rails/locale/ur.yml +206 -0
- data/rails/locale/uz.yml +251 -0
- data/rails/locale/vi.yml +33 -35
- data/rails/locale/wo.yml +30 -36
- data/rails/locale/zh-CN.yml +47 -41
- data/rails/locale/zh-HK.yml +205 -0
- data/rails/locale/zh-TW.yml +50 -44
- data/rails/locale/zh-YUE.yml +205 -0
- data/rails/pluralization/ar.rb +1 -0
- data/rails/pluralization/bg.rb +3 -0
- data/rails/pluralization/bn.rb +3 -0
- data/rails/pluralization/br.rb +1 -0
- data/rails/pluralization/ca.rb +3 -0
- data/rails/pluralization/da.rb +3 -0
- data/rails/pluralization/de-AT.rb +3 -0
- data/rails/pluralization/de-CH.rb +3 -0
- data/rails/pluralization/de-DE.rb +3 -0
- data/rails/pluralization/de.rb +3 -0
- data/rails/pluralization/el.rb +3 -0
- data/rails/pluralization/en-AU.rb +3 -0
- data/rails/pluralization/en-CA.rb +3 -0
- data/rails/pluralization/en-GB.rb +3 -0
- data/rails/pluralization/en-IN.rb +3 -0
- data/rails/pluralization/en-NZ.rb +3 -0
- data/rails/pluralization/en.rb +3 -0
- data/rails/pluralization/eo.rb +3 -0
- data/rails/pluralization/es-419.rb +3 -0
- data/rails/pluralization/es-AR.rb +3 -0
- data/rails/pluralization/es-CL.rb +3 -0
- data/rails/pluralization/es-CO.rb +3 -0
- data/rails/pluralization/es-EC.rb +3 -0
- data/rails/pluralization/es-ES.rb +3 -0
- data/rails/pluralization/es-MX.rb +3 -0
- data/rails/pluralization/es-PE.rb +3 -0
- data/rails/pluralization/es-VE.rb +3 -0
- data/rails/pluralization/es.rb +3 -0
- data/rails/pluralization/et.rb +3 -0
- data/rails/pluralization/eu.rb +3 -0
- data/rails/pluralization/fi.rb +3 -0
- data/rails/pluralization/fr-CA.rb +3 -0
- data/rails/pluralization/fr-CH.rb +3 -0
- data/rails/pluralization/fr-FR.rb +3 -0
- data/rails/pluralization/gl.rb +3 -0
- data/rails/pluralization/gv.rb +1 -0
- data/rails/pluralization/hi-IN.rb +3 -0
- data/rails/pluralization/hsb.rb +28 -0
- data/rails/pluralization/hu.rb +2 -2
- data/rails/pluralization/is.rb +3 -0
- data/rails/pluralization/it-CH.rb +3 -0
- data/rails/pluralization/it.rb +3 -0
- data/rails/pluralization/lag.rb +1 -0
- data/rails/pluralization/lt.rb +1 -0
- data/rails/pluralization/lv.rb +1 -0
- data/rails/pluralization/mk.rb +1 -0
- data/rails/pluralization/mn.rb +3 -0
- data/rails/pluralization/mr-IN.rb +3 -0
- data/rails/pluralization/mt.rb +1 -0
- data/rails/pluralization/nb.rb +3 -0
- data/rails/pluralization/ne.rb +3 -0
- data/rails/pluralization/nl.rb +3 -0
- data/rails/pluralization/nn.rb +3 -0
- data/rails/pluralization/or.rb +3 -0
- data/rails/pluralization/pa.rb +3 -0
- data/rails/pluralization/pl.rb +1 -0
- data/rails/pluralization/sl.rb +1 -0
- data/rails/pluralization/sv.rb +3 -0
- data/rails/pluralization/sw.rb +3 -0
- data/rails/pluralization/ur.rb +3 -0
- data/rails/pluralization/zh-CN.rb +3 -0
- data/rails/pluralization/zh-HK.rb +3 -0
- data/rails/pluralization/zh-TW.rb +3 -0
- data/rails/pluralization/zh-YUE.rb +3 -0
- data/rails/transliteration/de.yml +12 -0
- data/rails/transliteration/el.yml +104 -0
- data/rails/transliteration/fr.yml +36 -0
- data/rails/transliteration/pl.yml +22 -0
- data/rails/transliteration/ro.yml +14 -0
- data/rails/transliteration/ru.rb +2 -0
- data/rails/transliteration/uk.rb +3 -1
- metadata +278 -194
- data/rails/locale/csb.yml +0 -210
- data/rails/locale/dsb.yml +0 -215
- data/rails/locale/fur.yml +0 -199
- data/rails/locale/gsw-CH.yml +0 -199
- data/rails/locale/hsb.yml +0 -214
- data/rails/locale/sr-Latn.yml +0 -170
data/rails/locale/vi.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
vi:
|
2
3
|
date:
|
3
4
|
abbr_day_names:
|
@@ -31,9 +32,9 @@ vi:
|
|
31
32
|
- Thứ sáu
|
32
33
|
- Thứ bảy
|
33
34
|
formats:
|
34
|
-
default:
|
35
|
-
long:
|
36
|
-
short:
|
35
|
+
default: "%d-%m-%Y"
|
36
|
+
long: "%d %B, %Y"
|
37
|
+
short: "%d %b"
|
37
38
|
month_names:
|
38
39
|
-
|
39
40
|
- Tháng một
|
@@ -78,16 +79,16 @@ vi:
|
|
78
79
|
other: hơn %{count} năm
|
79
80
|
x_days:
|
80
81
|
one: 1 ngày
|
81
|
-
other:
|
82
|
+
other: "%{count} ngày"
|
82
83
|
x_minutes:
|
83
84
|
one: 1 phút
|
84
|
-
other:
|
85
|
+
other: "%{count} phút"
|
85
86
|
x_months:
|
86
87
|
one: 1 tháng
|
87
|
-
other:
|
88
|
+
other: "%{count} tháng"
|
88
89
|
x_seconds:
|
89
90
|
one: 1 giây
|
90
|
-
other:
|
91
|
+
other: "%{count} giây"
|
91
92
|
prompts:
|
92
93
|
day: Ngày
|
93
94
|
hour: Giờ
|
@@ -95,11 +96,12 @@ vi:
|
|
95
96
|
month: Tháng
|
96
97
|
second: Giây
|
97
98
|
year: Năm
|
98
|
-
errors:
|
99
|
-
format:
|
99
|
+
errors:
|
100
|
+
format: "%{attribute} %{message}"
|
100
101
|
messages:
|
101
102
|
accepted: phải được đồng ý
|
102
103
|
blank: không thể để trắng
|
104
|
+
present: cần phải để trắng
|
103
105
|
confirmation: không khớp với xác nhận
|
104
106
|
empty: không thể rỗng
|
105
107
|
equal_to: phải bằng %{count}
|
@@ -112,17 +114,22 @@ vi:
|
|
112
114
|
less_than: phải nhỏ hơn %{count}
|
113
115
|
less_than_or_equal_to: phải nhỏ hơn hoặc bằng %{count}
|
114
116
|
not_a_number: không phải là số
|
115
|
-
not_an_integer: phải là một số nguyên
|
117
|
+
not_an_integer: phải là một số nguyên
|
116
118
|
odd: phải là số lẻ
|
119
|
+
record_invalid: 'Có các lỗi sau: %{errors}'
|
120
|
+
restrict_dependent_destroy:
|
121
|
+
one: Không thể xóa do tồn tại đối tượng phụ thuộc %{record}
|
122
|
+
many: Không thể xóa do tồn tại một số đối tượng phụ thuộc %{record}
|
117
123
|
taken: đã có
|
118
124
|
too_long: quá dài (tối đa %{count} ký tự)
|
119
125
|
too_short: quá ngắn (tối thiểu %{count} ký tự)
|
120
126
|
wrong_length: độ dài không đúng (phải là %{count} ký tự)
|
127
|
+
other_than: cần phải khác %{count}
|
121
128
|
template:
|
122
|
-
body:
|
129
|
+
body: 'Có lỗi với các mục sau:'
|
123
130
|
header:
|
124
131
|
one: 1 lỗi ngăn không cho lưu %{model} này
|
125
|
-
other:
|
132
|
+
other: "%{count} lỗi ngăn không cho lưu %{model} này"
|
126
133
|
helpers:
|
127
134
|
select:
|
128
135
|
prompt: Vui lòng chọn
|
@@ -133,22 +140,22 @@ vi:
|
|
133
140
|
number:
|
134
141
|
currency:
|
135
142
|
format:
|
136
|
-
delimiter: .
|
137
|
-
format:
|
143
|
+
delimiter: "."
|
144
|
+
format: "%n %u"
|
138
145
|
precision: 2
|
139
|
-
separator:
|
146
|
+
separator: ","
|
140
147
|
significant: false
|
141
148
|
strip_insignificant_zeros: false
|
142
149
|
unit: đồng
|
143
150
|
format:
|
144
|
-
delimiter: .
|
151
|
+
delimiter: "."
|
145
152
|
precision: 3
|
146
|
-
separator:
|
153
|
+
separator: ","
|
147
154
|
significant: false
|
148
155
|
strip_insignificant_zeros: false
|
149
156
|
human:
|
150
157
|
decimal_units:
|
151
|
-
format:
|
158
|
+
format: "%n %u"
|
152
159
|
units:
|
153
160
|
unit: ''
|
154
161
|
billion: Tỷ
|
@@ -162,7 +169,7 @@ vi:
|
|
162
169
|
significant: true
|
163
170
|
strip_insignificant_zeros: true
|
164
171
|
storage_units:
|
165
|
-
format:
|
172
|
+
format: "%n %u"
|
166
173
|
units:
|
167
174
|
byte:
|
168
175
|
one: Byte
|
@@ -174,28 +181,19 @@ vi:
|
|
174
181
|
percentage:
|
175
182
|
format:
|
176
183
|
delimiter: ''
|
184
|
+
format: "%n%"
|
177
185
|
precision:
|
178
186
|
format:
|
179
187
|
delimiter: ''
|
180
188
|
support:
|
181
189
|
array:
|
182
|
-
last_word_connector:
|
183
|
-
two_words_connector:
|
184
|
-
words_connector:
|
190
|
+
last_word_connector: ", và "
|
191
|
+
two_words_connector: " và "
|
192
|
+
words_connector: ", "
|
185
193
|
time:
|
186
194
|
am: sáng
|
187
195
|
formats:
|
188
|
-
default:
|
189
|
-
long:
|
190
|
-
short:
|
196
|
+
default: "%a, %d %b %Y %H:%M:%S %z"
|
197
|
+
long: "%d %B, %Y %H:%M"
|
198
|
+
short: "%d %b %H:%M"
|
191
199
|
pm: chiều
|
192
|
-
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
193
|
-
activemodel:
|
194
|
-
errors:
|
195
|
-
<<: *errors
|
196
|
-
activerecord:
|
197
|
-
errors:
|
198
|
-
<<: *errors
|
199
|
-
messages:
|
200
|
-
record_invalid: "Lỗi xác nhận: %{errors}"
|
201
|
-
taken: "đã có"
|
data/rails/locale/wo.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
wo:
|
2
3
|
date:
|
3
4
|
abbr_day_names:
|
@@ -9,7 +10,7 @@ wo:
|
|
9
10
|
- Ajj
|
10
11
|
- Gaw
|
11
12
|
abbr_month_names:
|
12
|
-
-
|
13
|
+
-
|
13
14
|
- Jan
|
14
15
|
- Feb
|
15
16
|
- Mar
|
@@ -31,11 +32,11 @@ wo:
|
|
31
32
|
- Ajjouma
|
32
33
|
- Gaawu
|
33
34
|
formats:
|
34
|
-
default:
|
35
|
-
long:
|
36
|
-
short:
|
35
|
+
default: "%Y-%m-%d"
|
36
|
+
long: "%B %d, %Y"
|
37
|
+
short: "%b %d"
|
37
38
|
month_names:
|
38
|
-
-
|
39
|
+
-
|
39
40
|
- Tamkharit
|
40
41
|
- Digui Gamou
|
41
42
|
- Gamou
|
@@ -78,16 +79,16 @@ wo:
|
|
78
79
|
other: over %{count} years
|
79
80
|
x_days:
|
80
81
|
one: 1 day
|
81
|
-
other:
|
82
|
+
other: "%{count} days"
|
82
83
|
x_minutes:
|
83
84
|
one: 1 minute
|
84
|
-
other:
|
85
|
+
other: "%{count} minutes"
|
85
86
|
x_months:
|
86
87
|
one: 1 month
|
87
|
-
other:
|
88
|
+
other: "%{count} months"
|
88
89
|
x_seconds:
|
89
90
|
one: 1 second
|
90
|
-
other:
|
91
|
+
other: "%{count} seconds"
|
91
92
|
prompts:
|
92
93
|
day: Day
|
93
94
|
hour: Hour
|
@@ -95,12 +96,12 @@ wo:
|
|
95
96
|
month: Month
|
96
97
|
second: Seconds
|
97
98
|
year: Year
|
98
|
-
errors:
|
99
|
-
format:
|
99
|
+
errors:
|
100
|
+
format: "%{attribute} %{message}"
|
100
101
|
messages:
|
101
102
|
accepted: must be accepted
|
102
103
|
blank: can't be blank
|
103
|
-
confirmation: doesn't match
|
104
|
+
confirmation: doesn't match %{attribute}
|
104
105
|
empty: can't be empty
|
105
106
|
equal_to: must be equal to %{count}
|
106
107
|
even: must be even
|
@@ -114,7 +115,7 @@ wo:
|
|
114
115
|
not_a_number: is not a number
|
115
116
|
not_an_integer: must be an integer
|
116
117
|
odd: must be odd
|
117
|
-
record_invalid:
|
118
|
+
record_invalid: 'Validation failed: %{errors}'
|
118
119
|
taken: has already been taken
|
119
120
|
too_long:
|
120
121
|
one: is too long (maximum is 1 character)
|
@@ -126,10 +127,10 @@ wo:
|
|
126
127
|
one: is the wrong length (should be 1 character)
|
127
128
|
other: is the wrong length (should be %{count} characters)
|
128
129
|
template:
|
129
|
-
body:
|
130
|
+
body: 'There were problems with the following fields:'
|
130
131
|
header:
|
131
132
|
one: 1 error prohibited this %{model} from being saved
|
132
|
-
other:
|
133
|
+
other: "%{count} errors prohibited this %{model} from being saved"
|
133
134
|
helpers:
|
134
135
|
select:
|
135
136
|
prompt: Please select
|
@@ -140,22 +141,22 @@ wo:
|
|
140
141
|
number:
|
141
142
|
currency:
|
142
143
|
format:
|
143
|
-
delimiter:
|
144
|
-
format:
|
144
|
+
delimiter: ","
|
145
|
+
format: "%u%n"
|
145
146
|
precision: 2
|
146
|
-
separator: .
|
147
|
+
separator: "."
|
147
148
|
significant: false
|
148
149
|
strip_insignificant_zeros: false
|
149
|
-
unit: $
|
150
|
+
unit: "$"
|
150
151
|
format:
|
151
|
-
delimiter:
|
152
|
+
delimiter: ","
|
152
153
|
precision: 3
|
153
|
-
separator: .
|
154
|
+
separator: "."
|
154
155
|
significant: false
|
155
156
|
strip_insignificant_zeros: false
|
156
157
|
human:
|
157
158
|
decimal_units:
|
158
|
-
format:
|
159
|
+
format: "%n %u"
|
159
160
|
units:
|
160
161
|
billion: Billion
|
161
162
|
million: Million
|
@@ -169,7 +170,7 @@ wo:
|
|
169
170
|
significant: true
|
170
171
|
strip_insignificant_zeros: true
|
171
172
|
storage_units:
|
172
|
-
format:
|
173
|
+
format: "%n %u"
|
173
174
|
units:
|
174
175
|
byte:
|
175
176
|
one: Byte
|
@@ -186,20 +187,13 @@ wo:
|
|
186
187
|
delimiter: ''
|
187
188
|
support:
|
188
189
|
array:
|
189
|
-
last_word_connector:
|
190
|
-
two_words_connector:
|
191
|
-
words_connector:
|
190
|
+
last_word_connector: ", and "
|
191
|
+
two_words_connector: " and "
|
192
|
+
words_connector: ", "
|
192
193
|
time:
|
193
194
|
am: am
|
194
195
|
formats:
|
195
|
-
default:
|
196
|
-
long:
|
197
|
-
short:
|
196
|
+
default: "%a, %d %b %Y %H:%M:%S %z"
|
197
|
+
long: "%B %d, %Y %H:%M"
|
198
|
+
short: "%d %b %H:%M"
|
198
199
|
pm: pm
|
199
|
-
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
200
|
-
activemodel:
|
201
|
-
errors:
|
202
|
-
<<: *errors
|
203
|
-
activerecord:
|
204
|
-
errors:
|
205
|
-
<<: *errors
|
data/rails/locale/zh-CN.yml
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
+
---
|
1
2
|
zh-CN:
|
2
3
|
date:
|
3
4
|
abbr_day_names:
|
4
|
-
-
|
5
|
-
-
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
9
|
-
-
|
10
|
-
-
|
5
|
+
- 周日
|
6
|
+
- 周一
|
7
|
+
- 周二
|
8
|
+
- 周三
|
9
|
+
- 周四
|
10
|
+
- 周五
|
11
|
+
- 周六
|
11
12
|
abbr_month_names:
|
12
13
|
-
|
13
14
|
- 1月
|
@@ -31,9 +32,9 @@ zh-CN:
|
|
31
32
|
- 星期五
|
32
33
|
- 星期六
|
33
34
|
formats:
|
34
|
-
default:
|
35
|
-
long:
|
36
|
-
short:
|
35
|
+
default: "%Y-%m-%d"
|
36
|
+
long: "%Y年%b%d日"
|
37
|
+
short: "%b%d日"
|
37
38
|
month_names:
|
38
39
|
-
|
39
40
|
- 一月
|
@@ -75,19 +76,19 @@ zh-CN:
|
|
75
76
|
other: 不到 %{count} 秒
|
76
77
|
over_x_years:
|
77
78
|
one: 一年多
|
78
|
-
other:
|
79
|
+
other: "%{count} 年多"
|
79
80
|
x_days:
|
80
81
|
one: 一天
|
81
|
-
other:
|
82
|
+
other: "%{count} 天"
|
82
83
|
x_minutes:
|
83
84
|
one: 一分钟
|
84
|
-
other:
|
85
|
+
other: "%{count} 分钟"
|
85
86
|
x_months:
|
86
87
|
one: 一个月
|
87
|
-
other:
|
88
|
+
other: "%{count} 个月"
|
88
89
|
x_seconds:
|
89
90
|
one: 一秒
|
90
|
-
other:
|
91
|
+
other: "%{count} 秒"
|
91
92
|
prompts:
|
92
93
|
day: 日
|
93
94
|
hour: 时
|
@@ -95,11 +96,12 @@ zh-CN:
|
|
95
96
|
month: 月
|
96
97
|
second: 秒
|
97
98
|
year: 年
|
98
|
-
errors:
|
99
|
-
format:
|
99
|
+
errors:
|
100
|
+
format: "%{attribute}%{message}"
|
100
101
|
messages:
|
101
102
|
accepted: 必须是可被接受的
|
102
103
|
blank: 不能为空字符
|
104
|
+
present: 必须是空白
|
103
105
|
confirmation: 与确认值不匹配
|
104
106
|
empty: 不能留空
|
105
107
|
equal_to: 必须等于 %{count}
|
@@ -114,11 +116,21 @@ zh-CN:
|
|
114
116
|
not_a_number: 不是数字
|
115
117
|
not_an_integer: 必须是整数
|
116
118
|
odd: 必须为单数
|
117
|
-
record_invalid:
|
119
|
+
record_invalid: '验证失败: %{errors}'
|
120
|
+
restrict_dependent_destroy:
|
121
|
+
one: 由于 %{record} 需要此记录,所以无法移除记录
|
122
|
+
many: 由于 %{record} 需要此记录,所以无法移除记录
|
118
123
|
taken: 已经被使用
|
119
|
-
too_long:
|
120
|
-
|
121
|
-
|
124
|
+
too_long:
|
125
|
+
one: 过长(最长为一个字符)
|
126
|
+
other: 过长(最长为 %{count} 个字符)
|
127
|
+
too_short:
|
128
|
+
one: 过短(最短为一个字符)
|
129
|
+
other: 过短(最短为 %{count} 个字符)
|
130
|
+
wrong_length:
|
131
|
+
one: 长度非法(必须为一个字符)
|
132
|
+
other: 长度非法(必须为 %{count} 个字符)
|
133
|
+
other_than: 长度非法(不可为 %{count} 个字符
|
122
134
|
template:
|
123
135
|
body: 如下字段出现错误:
|
124
136
|
header:
|
@@ -134,22 +146,22 @@ zh-CN:
|
|
134
146
|
number:
|
135
147
|
currency:
|
136
148
|
format:
|
137
|
-
delimiter:
|
138
|
-
format:
|
149
|
+
delimiter: ","
|
150
|
+
format: "%u %n"
|
139
151
|
precision: 2
|
140
|
-
separator: .
|
152
|
+
separator: "."
|
141
153
|
significant: false
|
142
154
|
strip_insignificant_zeros: false
|
143
155
|
unit: CN¥
|
144
156
|
format:
|
145
|
-
delimiter:
|
157
|
+
delimiter: ","
|
146
158
|
precision: 3
|
147
|
-
separator: .
|
159
|
+
separator: "."
|
148
160
|
significant: false
|
149
161
|
strip_insignificant_zeros: false
|
150
162
|
human:
|
151
163
|
decimal_units:
|
152
|
-
format:
|
164
|
+
format: "%n %u"
|
153
165
|
units:
|
154
166
|
billion: 十亿
|
155
167
|
million: 百万
|
@@ -163,7 +175,7 @@ zh-CN:
|
|
163
175
|
significant: false
|
164
176
|
strip_insignificant_zeros: false
|
165
177
|
storage_units:
|
166
|
-
format:
|
178
|
+
format: "%n %u"
|
167
179
|
units:
|
168
180
|
byte:
|
169
181
|
one: Byte
|
@@ -175,25 +187,19 @@ zh-CN:
|
|
175
187
|
percentage:
|
176
188
|
format:
|
177
189
|
delimiter: ''
|
190
|
+
format: "%n%"
|
178
191
|
precision:
|
179
192
|
format:
|
180
193
|
delimiter: ''
|
181
194
|
support:
|
182
195
|
array:
|
183
|
-
last_word_connector:
|
184
|
-
two_words_connector:
|
185
|
-
words_connector:
|
196
|
+
last_word_connector: ", 和 "
|
197
|
+
two_words_connector: " 和 "
|
198
|
+
words_connector: ", "
|
186
199
|
time:
|
187
200
|
am: 上午
|
188
201
|
formats:
|
189
|
-
default:
|
190
|
-
long:
|
191
|
-
short:
|
202
|
+
default: "%Y年%b%d日 %A %H:%M:%S %Z"
|
203
|
+
long: "%Y年%b%d日 %H:%M"
|
204
|
+
short: "%b%d日 %H:%M"
|
192
205
|
pm: 下午
|
193
|
-
# remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
|
194
|
-
activemodel:
|
195
|
-
errors:
|
196
|
-
<<: *errors
|
197
|
-
activerecord:
|
198
|
-
errors:
|
199
|
-
<<: *errors
|