rails-i18n 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/README.md +109 -7
  2. data/rails/locale/ar.yml +173 -205
  3. data/rails/locale/az.yml +172 -202
  4. data/rails/locale/bg.yml +172 -212
  5. data/rails/locale/bn-IN.yml +158 -222
  6. data/rails/locale/bs.yml +214 -230
  7. data/rails/locale/ca.yml +172 -232
  8. data/rails/locale/cs.yml +167 -189
  9. data/rails/locale/csb.yml +183 -213
  10. data/rails/locale/cy.yml +172 -201
  11. data/rails/locale/da.yml +172 -216
  12. data/rails/locale/de-AT.yml +167 -192
  13. data/rails/locale/de-CH.yml +167 -192
  14. data/rails/locale/de.yml +167 -194
  15. data/rails/locale/dsb.yml +185 -208
  16. data/rails/locale/el.yml +164 -193
  17. data/rails/locale/en-AU.yml +179 -208
  18. data/rails/locale/en-GB.yml +179 -208
  19. data/rails/locale/en-IN.yml +166 -221
  20. data/rails/locale/en-US.yml +179 -204
  21. data/rails/locale/eo.yml +166 -188
  22. data/rails/locale/es-AR.yml +175 -197
  23. data/rails/locale/es-CL.yml +172 -203
  24. data/rails/locale/es-CO.yml +175 -198
  25. data/rails/locale/es-MX.yml +175 -204
  26. data/rails/locale/es-PE.yml +152 -169
  27. data/rails/locale/es.yml +173 -206
  28. data/rails/locale/et.yml +172 -203
  29. data/rails/locale/eu.yml +173 -206
  30. data/rails/locale/fa.yml +173 -203
  31. data/rails/locale/fi.yml +172 -206
  32. data/rails/locale/fr-CA.yml +172 -199
  33. data/rails/locale/fr-CH.yml +172 -196
  34. data/rails/locale/fr.yml +172 -196
  35. data/rails/locale/fur.yml +175 -208
  36. data/rails/locale/gl-ES.yml +153 -197
  37. data/rails/locale/gsw-CH.yml +164 -190
  38. data/rails/locale/he.yml +175 -205
  39. data/rails/locale/hi-IN.yml +172 -201
  40. data/rails/locale/hi.yml +172 -201
  41. data/rails/locale/hr.yml +141 -157
  42. data/rails/locale/hsb.yml +184 -212
  43. data/rails/locale/hu.yml +173 -198
  44. data/rails/locale/id.yml +164 -228
  45. data/rails/locale/is.yml +180 -210
  46. data/rails/locale/it.yml +181 -219
  47. data/rails/locale/ja.yml +172 -208
  48. data/rails/locale/kn.yml +172 -202
  49. data/rails/locale/ko.yml +171 -207
  50. data/rails/locale/lo.yml +162 -213
  51. data/rails/locale/lt.yml +158 -181
  52. data/rails/locale/lv.yml +164 -193
  53. data/rails/locale/mk.yml +141 -157
  54. data/rails/locale/mn.yml +162 -193
  55. data/rails/locale/nb.yml +174 -194
  56. data/rails/locale/nl.yml +172 -203
  57. data/rails/locale/nn.yml +130 -139
  58. data/rails/locale/pl.yml +183 -215
  59. data/rails/locale/pt-BR.yml +180 -213
  60. data/rails/locale/pt-PT.yml +180 -211
  61. data/rails/locale/rm.yml +147 -167
  62. data/rails/locale/ro.yml +172 -192
  63. data/rails/locale/ru.yml +229 -281
  64. data/rails/locale/sk.yml +174 -210
  65. data/rails/locale/sl.yml +195 -242
  66. data/rails/locale/sr-Latn.yml +141 -157
  67. data/rails/locale/sr.yml +141 -157
  68. data/rails/locale/sv-SE.yml +176 -257
  69. data/rails/locale/sw.yml +170 -203
  70. data/rails/locale/th.yml +147 -179
  71. data/rails/locale/tr.yml +144 -162
  72. data/rails/locale/uk.yml +233 -299
  73. data/rails/locale/vi.yml +159 -212
  74. data/rails/locale/zh-CN.yml +164 -185
  75. data/rails/locale/zh-TW.yml +164 -186
  76. metadata +77 -102
@@ -1,228 +1,175 @@
1
- # Vietnamese translation for Ruby on Rails
2
- # by
3
- # Do Hai Bac (dohaibac@gmail.com)
4
- # Dao Thanh Ngoc (ngocdaothanh@gmail.com, http://github.com/ngocdaothanh/rails-i18n/tree/master)
5
-
6
1
  vi:
2
+ date:
3
+ abbr_day_names:
4
+ - Chủ nhật
5
+ - Thứ hai
6
+ - Thứ ba
7
+ - Thứ tư
8
+ - Thứ năm
9
+ - Thứ sáu
10
+ - Thứ bảy
11
+ abbr_month_names:
12
+ -
13
+ - Tháng một
14
+ - Tháng hai
15
+ - Tháng ba
16
+ - Tháng tư
17
+ - Tháng năm
18
+ - Tháng sáu
19
+ - Tháng bảy
20
+ - Tháng tám
21
+ - Tháng chín
22
+ - Tháng mười
23
+ - Tháng mười một
24
+ - Tháng mười hai
25
+ day_names:
26
+ - Chủ nhật
27
+ - Thứ hai
28
+ - Thứ ba
29
+ - Thứ tư
30
+ - Thứ năm
31
+ - Thứ sáu
32
+ - Thứ bảy
33
+ formats:
34
+ default: ! '%d-%m-%Y'
35
+ long: ! '%d %B, %Y'
36
+ short: ! '%d %b'
37
+ month_names:
38
+ -
39
+ - Tháng một
40
+ - Tháng hai
41
+ - Tháng ba
42
+ - Tháng tư
43
+ - Tháng năm
44
+ - Tháng sáu
45
+ - Tháng bảy
46
+ - Tháng tám
47
+ - Tháng chín
48
+ - Tháng mười
49
+ - Tháng mười một
50
+ - Tháng mười hai
51
+ order:
52
+ - :day
53
+ - :month
54
+ - :year
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: khoảng 1 giờ
59
+ other: khoảng %{count} giờ
60
+ about_x_months:
61
+ one: khoảng 1 tháng
62
+ other: khoảng %{count} tháng
63
+ about_x_years:
64
+ one: khoảng 1 năm
65
+ other: khoảng %{count} năm
66
+ half_a_minute: 30 giây
67
+ less_than_x_minutes:
68
+ one: chưa tới 1 phút
69
+ other: chưa tới %{count} phút
70
+ less_than_x_seconds:
71
+ one: chưa tới 1 giây
72
+ other: chưa tới %{count} giây
73
+ over_x_years:
74
+ one: hơn 1 năm
75
+ other: hơn %{count} năm
76
+ x_days:
77
+ one: 1 ngày
78
+ other: ! '%{count} ngày'
79
+ x_minutes:
80
+ one: 1 phút
81
+ other: ! '%{count} phút'
82
+ x_months:
83
+ one: 1 tháng
84
+ other: ! '%{count} tháng'
85
+ x_seconds:
86
+ one: 1 giây
87
+ other: ! '%{count} giây'
88
+ prompts:
89
+ day: Ngày
90
+ hour: Giờ
91
+ minute: Phút
92
+ month: Tháng
93
+ second: Giây
94
+ year: Năm
95
+ errors:
96
+ format: ! '%{attribute} %{message}'
97
+ messages:
98
+ accepted: phải được đồng ý
99
+ blank: không thể để trắng
100
+ confirmation: không khớp với xác nhận
101
+ empty: không thể rỗng
102
+ equal_to: phải bằng %{count}
103
+ even: phải là số lẻ
104
+ exclusion: đã được giành trước
105
+ greater_than: phải lớn hơn %{count}
106
+ greater_than_or_equal_to: phải lớn hơn hoặc bằng %{count}
107
+ inclusion: không có trong danh sách
108
+ invalid: không hợp lệ
109
+ less_than: phải nhỏ hơn %{count}
110
+ less_than_or_equal_to: phải nhỏ hơn hoặc bằng %{count}
111
+ not_a_number: không phải là số
112
+ odd: phải là số chẵn
113
+ taken: đã có
114
+ too_long: quá dài (tối đa %{count} ký tự)
115
+ too_short: quá ngắn (tối thiểu %{count} ký tự)
116
+ wrong_length: độ dài không đúng (phải là %{count} ký tự)
117
+ template:
118
+ body: ! 'Có lỗi với các mục sau:'
119
+ header:
120
+ one: 1 lỗi ngăn không cho lưu %{model} này
121
+ other: ! '%{count} lỗi ngăn không cho lưu %{model} này'
7
122
  number:
8
- # Used in number_with_delimiter()
9
- # These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
10
- format:
11
- # Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
12
- separator: ","
13
- # Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
14
- delimiter: "."
15
- # Number of decimals, behind the separator (1 with a precision of 2 gives: 1.00)
16
- precision: 3
17
- significant: false
18
- strip_insignificant_zeros: false
19
-
20
- # Used in number_to_currency()
21
123
  currency:
22
124
  format:
23
- # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
24
- format: "%n %u"
25
- unit: "đồng"
26
- # These three are to override number.format and are optional
27
- separator: ","
28
- delimiter: "."
125
+ delimiter: .
126
+ format: ! '%n %u'
29
127
  precision: 2
128
+ separator: ! ','
30
129
  significant: false
31
130
  strip_insignificant_zeros: false
32
-
33
- # Used in number_to_percentage()
34
- percentage:
35
- format:
36
- # These three are to override number.format and are optional
37
- # separator:
38
- delimiter: ""
39
- # precision:
40
-
41
- # Used in number_to_precision()
42
- precision:
43
- format:
44
- # These three are to override number.format and are optional
45
- # separator:
46
- delimiter: ""
47
- # precision:
48
-
49
- # Used in number_to_human_size()
131
+ unit: đồng
132
+ format:
133
+ delimiter: .
134
+ precision: 3
135
+ separator: ! ','
136
+ significant: false
137
+ strip_insignificant_zeros: false
50
138
  human:
139
+ decimal_units:
140
+ format: ! '%n %u'
141
+ units:
142
+ unit: ''
51
143
  format:
52
- # These three are to override number.format and are optional
53
- # separator:
54
- delimiter: ""
144
+ delimiter: ''
55
145
  precision: 1
56
146
  significant: true
57
147
  strip_insignificant_zeros: true
58
148
  storage_units:
59
- # Storage units output formatting.
60
- # %u is the storage unit, %n is the number (default: 2 MB)
61
- format: "%n %u"
62
- units:
63
- byte:
64
- one: "Byte"
65
- other: "Byte"
66
- kb: "KB"
67
- mb: "MB"
68
- gb: "GB"
69
- tb: "TB"
70
- decimal_units:
71
- format: "%n %u"
149
+ format: ! '%n %u'
72
150
  units:
73
- unit: ""
74
-
75
- # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
76
- datetime:
77
- distance_in_words:
78
- half_a_minute: "30 giây"
79
- less_than_x_seconds:
80
- one: "chưa tới 1 giây"
81
- other: "chưa tới %{count} giây"
82
- x_seconds:
83
- one: "1 giây"
84
- other: "%{count} giây"
85
- less_than_x_minutes:
86
- one: "chưa tới 1 phút"
87
- other: "chưa tới %{count} phút"
88
- x_minutes:
89
- one: "1 phút"
90
- other: "%{count} phút"
91
- about_x_hours:
92
- one: "khoảng 1 giờ"
93
- other: "khoảng %{count} giờ"
94
- x_days:
95
- one: "1 ngày"
96
- other: "%{count} ngày"
97
- about_x_months:
98
- one: "khoảng 1 tháng"
99
- other: "khoảng %{count} tháng"
100
- x_months:
101
- one: "1 tháng"
102
- other: "%{count} tháng"
103
- about_x_years:
104
- one: "khoảng 1 năm"
105
- other: "khoảng %{count} năm"
106
- over_x_years:
107
- one: "hơn 1 năm"
108
- other: "hơn %{count} năm"
109
- prompts:
110
- year: "Năm"
111
- month: "Tháng"
112
- day: "Ngày"
113
- hour: "Giờ"
114
- minute: "Phút"
115
- second: "Giây"
116
-
117
- errors:
118
- format: "%{attribute} %{message}"
119
- messages: &errors_messages
120
- inclusion: "không có trong danh sách"
121
- exclusion: "đã được giành trước"
122
- invalid: "không hợp lệ"
123
- confirmation: "không khớp với xác nhận"
124
- accepted: "phải được đồng ý"
125
- empty: "không thể rỗng"
126
- blank: "không thể để trắng"
127
- too_long: "quá dài (tối đa %{count} ký tự)"
128
- too_short: "quá ngắn (tối thiểu %{count} ký tự)"
129
- wrong_length: "độ dài không đúng (phải là %{count} ký tự)"
130
- taken: "đã có"
131
- not_a_number: "không phải là số"
132
- greater_than: "phải lớn hơn %{count}"
133
- greater_than_or_equal_to: "phải lớn hơn hoặc bằng %{count}"
134
- equal_to: "phải bằng %{count}"
135
- less_than: "phải nhỏ hơn %{count}"
136
- less_than_or_equal_to: "phải nhỏ hơn hoặc bằng %{count}"
137
- odd: "phải là số chẵn"
138
- even: "phải là số lẻ"
139
- template: &errors_template
140
- header:
141
- one: "1 lỗi ngăn không cho lưu %{model} này"
142
- other: "%{count} lỗi ngăn không cho lưu %{model} này"
143
- body: "Có lỗi với các mục sau:"
144
-
145
- activerecord:
146
- errors:
147
- messages:
148
- <<: *errors_messages
149
- template:
150
- <<: *errors_template
151
- full_messages:
152
- format: "%{attribute} %{message}"
153
-
154
- date:
155
- formats:
156
- # Use the strftime parameters for formats.
157
- # When no format has been given, it uses default.
158
- # You can provide other formats here if you like!
159
- default: "%d-%m-%Y"
160
- short: "%d %b"
161
- long: "%d %B, %Y"
162
-
163
- day_names:
164
- - "Chủ nhật"
165
- - "Thứ hai"
166
- - "Thứ ba"
167
- - "Thứ tư"
168
- - "Thứ năm"
169
- - "Thứ sáu"
170
- - "Thứ bảy"
171
- abbr_day_names:
172
- - "Chủ nhật"
173
- - "Thứ hai"
174
- - "Thứ ba"
175
- - "Thứ tư"
176
- - "Thứ năm"
177
- - "Thứ sáu"
178
- - "Thứ bảy"
179
-
180
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
181
- month_names:
182
- - ~
183
- - "Tháng một"
184
- - "Tháng hai"
185
- - "Tháng ba"
186
- - "Tháng tư"
187
- - "Tháng năm"
188
- - "Tháng sáu"
189
- - "Tháng bảy"
190
- - "Tháng tám"
191
- - "Tháng chín"
192
- - "Tháng mười"
193
- - "Tháng mười một"
194
- - "Tháng mười hai"
195
- abbr_month_names:
196
- - ~
197
- - "Tháng một"
198
- - "Tháng hai"
199
- - "Tháng ba"
200
- - "Tháng tư"
201
- - "Tháng năm"
202
- - "Tháng sáu"
203
- - "Tháng bảy"
204
- - "Tháng tám"
205
- - "Tháng chín"
206
- - "Tháng mười"
207
- - "Tháng mười một"
208
- - "Tháng mười hai"
209
- # Used in date_select and datime_select.
210
- order:
211
- - :day
212
- - :month
213
- - :year
214
-
215
- time:
216
- formats:
217
- default: "%a, %d %b %Y %H:%M:%S %z"
218
- short: "%d %b %H:%M"
219
- long: "%d %B, %Y %H:%M"
220
- am: "sáng"
221
- pm: "chiều"
222
-
223
- # Used in array.to_sentence.
151
+ byte:
152
+ one: Byte
153
+ other: Byte
154
+ gb: GB
155
+ kb: KB
156
+ mb: MB
157
+ tb: TB
158
+ percentage:
159
+ format:
160
+ delimiter: ''
161
+ precision:
162
+ format:
163
+ delimiter: ''
224
164
  support:
225
165
  array:
226
- words_connector: ", "
227
- two_words_connector: ""
228
- last_word_connector: ", và "
166
+ last_word_connector: ! ', và '
167
+ two_words_connector: ! ' '
168
+ words_connector: ! ', '
169
+ time:
170
+ am: sáng
171
+ formats:
172
+ default: ! '%a, %d %b %Y %H:%M:%S %z'
173
+ long: ! '%d %B, %Y %H:%M'
174
+ short: ! '%d %b %H:%M'
175
+ pm: chiều
@@ -1,213 +1,192 @@
1
- # Chinese (China) translations for Ruby on Rails
2
- # by tsechingho (http://github.com/tsechingho)
3
-
4
1
  zh-CN:
5
2
  date:
6
- formats:
7
- default: "%Y-%m-%d"
8
- short: "%b%d日"
9
- long: "%Y年%b%d日"
10
- day_names:
11
- - 星期日
12
- - 星期一
13
- - 星期二
14
- - 星期三
15
- - 星期四
16
- - 星期五
17
- - 星期六
18
3
  abbr_day_names:
19
- - 日
20
- - 一
21
- - 二
22
- - 三
23
- - 四
24
- - 五
25
- - 六
26
- month_names:
27
- - ~
28
- - 一月
29
- - 二月
30
- - 三月
31
- - 四月
32
- - 五月
33
- - 六月
34
- - 七月
35
- - 八月
36
- - 九月
37
- - 十月
38
- - 十一月
39
- - 十二月
4
+ - 日
5
+ - 一
6
+ - 二
7
+ - 三
8
+ - 四
9
+ - 五
10
+ - 六
40
11
  abbr_month_names:
41
- - ~
42
- - 1月
43
- - 2月
44
- - 3月
45
- - 4月
46
- - 5月
47
- - 6月
48
- - 7月
49
- - 8月
50
- - 9月
51
- - 10月
52
- - 11月
53
- - 12月
54
- order:
55
- - :year
56
- - :month
57
- - :day
58
-
59
- time:
12
+ -
13
+ - 1月
14
+ - 2月
15
+ - 3月
16
+ - 4月
17
+ - 5月
18
+ - 6月
19
+ - 7月
20
+ - 8月
21
+ - 9月
22
+ - 10月
23
+ - 11月
24
+ - 12月
25
+ day_names:
26
+ - 星期日
27
+ - 星期一
28
+ - 星期二
29
+ - 星期三
30
+ - 星期四
31
+ - 星期五
32
+ - 星期六
60
33
  formats:
61
- default: "%Y年%b%d日 %A %H:%M:%S %Z"
62
- short: "%b%d日 %H:%M"
63
- long: "%Y年%b%d日 %H:%M"
64
- am: "上午"
65
- pm: "下午"
66
-
34
+ default: ! '%Y-%m-%d'
35
+ long: ! '%Y年%b%d日'
36
+ short: ! '%b%d日'
37
+ month_names:
38
+ -
39
+ - 一月
40
+ - 二月
41
+ - 三月
42
+ - 四月
43
+ - 五月
44
+ - 六月
45
+ - 七月
46
+ - 八月
47
+ - 九月
48
+ - 十月
49
+ - 十一月
50
+ - 十二月
51
+ order:
52
+ - :year
53
+ - :month
54
+ - :day
67
55
  datetime:
68
56
  distance_in_words:
69
- half_a_minute: "半分钟"
70
- less_than_x_seconds:
71
- one: "不到一秒"
72
- other: "不到 %{count} 秒"
73
- x_seconds:
74
- one: "一秒"
75
- other: "%{count} 秒"
76
- less_than_x_minutes:
77
- one: "不到一分钟"
78
- other: "不到 %{count} 分钟"
79
- x_minutes:
80
- one: "一分钟"
81
- other: "%{count} 分钟"
82
57
  about_x_hours:
83
- one: "大约一小时"
84
- other: "大约 %{count} 小时"
85
- x_days:
86
- one: "一天"
87
- other: "%{count} 天"
58
+ one: 大约一小时
59
+ other: 大约 %{count} 小时
88
60
  about_x_months:
89
- one: "大约一个月"
90
- other: "大约 %{count} 个月"
91
- x_months:
92
- one: "一个月"
93
- other: "%{count} 个月"
61
+ one: 大约一个月
62
+ other: 大约 %{count} 个月
94
63
  about_x_years:
95
- one: "大约一年"
96
- other: "大约 %{count} 年"
97
- over_x_years:
98
- one: "一年多"
99
- other: "%{count} 年多"
64
+ one: 大约一年
65
+ other: 大约 %{count} 年
100
66
  almost_x_years:
101
- one: "接近一年"
102
- other: "接近 %{count} 年"
67
+ one: 接近一年
68
+ other: 接近 %{count} 年
69
+ half_a_minute: 半分钟
70
+ less_than_x_minutes:
71
+ one: 不到一分钟
72
+ other: 不到 %{count} 分钟
73
+ less_than_x_seconds:
74
+ one: 不到一秒
75
+ other: 不到 %{count} 秒
76
+ over_x_years:
77
+ one: 一年多
78
+ other: ! '%{count} 年多'
79
+ x_days:
80
+ one: 一天
81
+ other: ! '%{count} 天'
82
+ x_minutes:
83
+ one: 一分钟
84
+ other: ! '%{count} 分钟'
85
+ x_months:
86
+ one: 一个月
87
+ other: ! '%{count} 个月'
88
+ x_seconds:
89
+ one: 一秒
90
+ other: ! '%{count} 秒'
103
91
  prompts:
104
- year: "年"
105
- month: "月"
106
- day: "日"
107
- hour: "时"
108
- minute: "分"
109
- second: "秒"
110
-
92
+ day:
93
+ hour:
94
+ minute:
95
+ month:
96
+ second:
97
+ year:
98
+ errors:
99
+ format: ! '%{attribute} %{message}'
100
+ messages:
101
+ accepted: 必须是可被接受的
102
+ blank: 不能为空字符
103
+ confirmation: 与确认值不匹配
104
+ empty: 不能留空
105
+ equal_to: 必须等于 %{count}
106
+ even: 必须为双数
107
+ exclusion: 是保留关键字
108
+ greater_than: 必须大于 %{count}
109
+ greater_than_or_equal_to: 必须大于或等于 %{count}
110
+ inclusion: 不包含于列表中
111
+ invalid: 是无效的
112
+ less_than: 必须小于 %{count}
113
+ less_than_or_equal_to: 必须小于或等于 %{count}
114
+ not_a_number: 不是数字
115
+ not_an_integer: 必须是整数
116
+ odd: 必须为单数
117
+ record_invalid: ! '验证失败: %{errors}'
118
+ taken: 已经被使用
119
+ too_long: 过长(最长为 %{count} 个字符)
120
+ too_short: 过短(最短为 %{count} 个字符)
121
+ wrong_length: 长度非法(必须为 %{count} 个字符)
122
+ template:
123
+ body: 如下字段出现错误:
124
+ header:
125
+ one: 有 1 个错误发生导致「%{model}」无法被保存。
126
+ other: 有 %{count} 个错误发生导致「%{model}」无法被保存。
127
+ helpers:
128
+ select:
129
+ prompt: 请选择
130
+ submit:
131
+ create: 新增%{model}
132
+ submit: 储存%{model}
133
+ update: 更新%{model}
111
134
  number:
112
- format:
113
- separator: "."
114
- delimiter: ","
115
- precision: 3
116
- significant: false
117
- strip_insignificant_zeros: false
118
135
  currency:
119
136
  format:
120
- format: "%u %n"
121
- unit: "CN¥"
122
- separator: "."
123
- delimiter: ","
137
+ delimiter: ! ','
138
+ format: ! '%u %n'
124
139
  precision: 2
140
+ separator: .
125
141
  significant: false
126
142
  strip_insignificant_zeros: false
127
- percentage:
128
- format:
129
- delimiter: ""
130
- precision:
131
- format:
132
- delimiter: ""
143
+ unit: CN¥
144
+ format:
145
+ delimiter: ! ','
146
+ precision: 3
147
+ separator: .
148
+ significant: false
149
+ strip_insignificant_zeros: false
133
150
  human:
151
+ decimal_units:
152
+ format: ! '%n %u'
153
+ units:
154
+ billion: 十亿
155
+ million: 百万
156
+ quadrillion: 千兆
157
+ thousand: 千
158
+ trillion: 兆
159
+ unit: ''
134
160
  format:
135
- delimiter: ""
161
+ delimiter: ''
136
162
  precision: 1
137
163
  significant: false
138
164
  strip_insignificant_zeros: false
139
165
  storage_units:
140
- format: "%n %u"
166
+ format: ! '%n %u'
141
167
  units:
142
168
  byte:
143
- one: "Byte"
144
- other: "Bytes"
145
- kb: "KB"
146
- mb: "MB"
147
- gb: "GB"
148
- tb: "TB"
149
- decimal_units:
150
- format: "%n %u"
151
- units:
152
- unit: ""
153
- thousand: "千" # 10^3 kilo
154
- million: "百万" # 10^6 mega
155
- billion: "十亿" # 10^9 giga
156
- trillion: "兆" # 10^12 tera
157
- quadrillion: "千兆" # 10^15 peta
158
- # 10^18 exa, 10^21 zetta, 10^24 yotta
159
-
169
+ one: Byte
170
+ other: Bytes
171
+ gb: GB
172
+ kb: KB
173
+ mb: MB
174
+ tb: TB
175
+ percentage:
176
+ format:
177
+ delimiter: ''
178
+ precision:
179
+ format:
180
+ delimiter: ''
160
181
  support:
161
182
  array:
162
- words_connector: ", "
163
- two_words_connector: ""
164
- last_word_connector: ", 和 "
165
- select:
166
- prompt: "请选择"
167
-
168
- errors:
169
- format: "%{attribute} %{message}"
170
- messages: &errors_messages
171
- inclusion: "不包含于列表中"
172
- exclusion: "是保留关键字"
173
- invalid: "是无效的"
174
- confirmation: "与确认值不匹配"
175
- accepted: "必须是可被接受的"
176
- empty: "不能留空"
177
- blank: "不能为空字符"
178
- too_long: "过长(最长为 %{count} 个字符)"
179
- too_short: "过短(最短为 %{count} 个字符)"
180
- wrong_length: "长度非法(必须为 %{count} 个字符)"
181
- not_a_number: "不是数字"
182
- not_an_integer: "必须是整数"
183
- greater_than: "必须大于 %{count}"
184
- greater_than_or_equal_to: "必须大于或等于 %{count}"
185
- equal_to: "必须等于 %{count}"
186
- less_than: "必须小于 %{count}"
187
- less_than_or_equal_to: "必须小于或等于 %{count}"
188
- odd: "必须为单数"
189
- even: "必须为双数"
190
- taken: "已经被使用"
191
- record_invalid: "验证失败: %{errors}"
192
- template: &errors_template
193
- header:
194
- one: "有 1 个错误发生导致「%{model}」无法被保存。"
195
- other: "有 %{count} 个错误发生导致「%{model}」无法被保存。"
196
- body: "如下字段出现错误:"
197
-
198
- activerecord:
199
- errors:
200
- full_messages:
201
- format: "%{attribute} %{message}"
202
- messages:
203
- <<: *errors_messages
204
- template:
205
- <<: *errors_template
206
-
207
- helpers:
208
- select:
209
- prompt: "请选择"
210
- submit:
211
- create: "新增%{model}"
212
- update: "更新%{model}"
213
- submit: "储存%{model}"
183
+ last_word_connector: ! ', 和 '
184
+ two_words_connector: ! ' '
185
+ words_connector: ! ', '
186
+ time:
187
+ am: 上午
188
+ formats:
189
+ default: ! '%Y年%b%d日 %A %H:%M:%S %Z'
190
+ long: ! '%Y年%b%d日 %H:%M'
191
+ short: ! '%b%d日 %H:%M'
192
+ pm: 下午