refinerycms-i18n 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +27 -9
  3. data/Gemfile +17 -7
  4. data/Rakefile +2 -0
  5. data/app/assets/images/refinery/icons/flags/ko.png +0 -0
  6. data/app/assets/images/refinery/icons/flags/{ua.png → uk.png} +0 -0
  7. data/lib/generators/refinery/i18n_generator.rb +2 -1
  8. data/lib/generators/refinery/templates/config/initializers/refinery/i18n.rb.erb +0 -2
  9. data/lib/refinery/i18n-filter.rb +4 -4
  10. data/lib/refinery/i18n.rb +10 -6
  11. data/lib/refinery/i18n/configuration.rb +10 -2
  12. data/lib/refinery/i18n/engine.rb +20 -18
  13. data/refinerycms-i18n.gemspec +8 -6
  14. data/script/rails +5 -0
  15. data/spec/{requests → features}/dashboard_locale_picker_spec.rb +2 -2
  16. data/spec/spec_helper.rb +20 -46
  17. data/spec/support/refinery/i18n/set_defaults.rb +17 -0
  18. metadata +25 -97
  19. data/config/locales/ar.yml +0 -124
  20. data/config/locales/bg.yml +0 -280
  21. data/config/locales/bn-IN.yml +0 -183
  22. data/config/locales/bs.yml +0 -117
  23. data/config/locales/ca.yml +0 -170
  24. data/config/locales/cs.rb +0 -168
  25. data/config/locales/cy.yml +0 -181
  26. data/config/locales/da.yml +0 -195
  27. data/config/locales/de-AT.yml +0 -154
  28. data/config/locales/de-CH.yml +0 -154
  29. data/config/locales/de.yml +0 -193
  30. data/config/locales/dsb.yml +0 -185
  31. data/config/locales/el.yml +0 -133
  32. data/config/locales/en-AU.yml +0 -180
  33. data/config/locales/en-GB.yml +0 -210
  34. data/config/locales/en-US.yml +0 -182
  35. data/config/locales/eo.yml +0 -182
  36. data/config/locales/es-AR.yml +0 -177
  37. data/config/locales/es-CO.yml +0 -179
  38. data/config/locales/es-MX.yml +0 -186
  39. data/config/locales/es-PE.yml +0 -124
  40. data/config/locales/es.yml +0 -285
  41. data/config/locales/et.yml +0 -187
  42. data/config/locales/eu.yml +0 -264
  43. data/config/locales/fa.yml +0 -143
  44. data/config/locales/fi.yml +0 -155
  45. data/config/locales/fr-CA.yml +0 -187
  46. data/config/locales/fr-CH.yml +0 -184
  47. data/config/locales/fr.yml +0 -182
  48. data/config/locales/fun/en-AU.rb +0 -105
  49. data/config/locales/fun/gibberish.rb +0 -109
  50. data/config/locales/fur.yml +0 -144
  51. data/config/locales/gl-ES.yml +0 -196
  52. data/config/locales/gsw-CH.yml +0 -182
  53. data/config/locales/he.yml +0 -106
  54. data/config/locales/hi-IN.yml +0 -181
  55. data/config/locales/hi.yml +0 -181
  56. data/config/locales/hr.yml +0 -119
  57. data/config/locales/hsb.yml +0 -193
  58. data/config/locales/hu.yml +0 -147
  59. data/config/locales/id.yml +0 -142
  60. data/config/locales/is.yml +0 -145
  61. data/config/locales/it.yml +0 -198
  62. data/config/locales/ja.yml +0 -191
  63. data/config/locales/ko.yml +0 -186
  64. data/config/locales/lo.yml +0 -204
  65. data/config/locales/lt.yml +0 -144
  66. data/config/locales/lv.yml +0 -181
  67. data/config/locales/mk.yml +0 -118
  68. data/config/locales/mn.yml +0 -159
  69. data/config/locales/nb.yml +0 -140
  70. data/config/locales/nl.yml +0 -186
  71. data/config/locales/nn.yml +0 -99
  72. data/config/locales/pl.yml +0 -193
  73. data/config/locales/pt-BR.yml +0 -208
  74. data/config/locales/pt-PT.yml +0 -190
  75. data/config/locales/rm.yml +0 -137
  76. data/config/locales/ro.yml +0 -155
  77. data/config/locales/ru.yml +0 -213
  78. data/config/locales/sk.yml +0 -195
  79. data/config/locales/sl.yml +0 -193
  80. data/config/locales/sr-Latn.yml +0 -119
  81. data/config/locales/sr.yml +0 -119
  82. data/config/locales/sv.yml +0 -244
  83. data/config/locales/sw.yml +0 -182
  84. data/config/locales/th.rb +0 -200
  85. data/config/locales/tr.yml +0 -142
  86. data/config/locales/uk.yml +0 -240
  87. data/config/locales/vi.yml +0 -201
  88. data/config/locales/zh-CN.yml +0 -210
  89. data/config/locales/zh-TW.yml +0 -210
  90. data/lib/gemspec.rb +0 -29
@@ -1,240 +0,0 @@
1
- # Ukrainian translations for Ruby on Rails
2
- # by Andrii Ponomarov (http://github.com/andrii)
3
- # improved (I hope) by Iwakura Taro
4
- # it is recomended to use russian rubygem to make i18n of your app
5
-
6
- uk:
7
- 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 (the number 1 with a precision of 2 gives: 1.00)
16
- precision: 3
17
-
18
- # Used in number_to_currency()
19
- currency:
20
- format:
21
- # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
22
- format: "%n %u"
23
- unit: "грн."
24
- # These three are to override number.format and are optional
25
- separator: ","
26
- delimiter: " "
27
- precision: 2
28
-
29
- # Used in number_to_percentage()
30
- percentage:
31
- format:
32
- # These three are to override number.format and are optional
33
- # separator:
34
- delimiter: ""
35
- # precision:
36
-
37
- # Used in number_to_precision()
38
- precision:
39
- format:
40
- # These three are to override number.format and are optional
41
- # separator:
42
- delimiter: ""
43
- # precision:
44
-
45
- # Used in number_to_human_size()
46
- human:
47
- format:
48
- # These three are to override number.format and are optional
49
- # separator:
50
- delimiter: ""
51
- precision: 1
52
- storage_units:
53
- # Storage units output formatting.
54
- # %u is the storage unit, %n is the number (default: 2 MB)
55
- format: "%n %u"
56
- units:
57
- byte:
58
- one: "байт"
59
- few: "байти"
60
- many: "байтів"
61
- other: "байту"
62
- kb: "кБ"
63
- mb: "МБ"
64
- gb: "ГБ"
65
- tb: "ТБ"
66
-
67
- # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
68
- datetime:
69
- distance_in_words:
70
- half_a_minute: "півхвилини"
71
- less_than_x_seconds:
72
- one: "менше %{count} секунди"
73
- few: "менше %{count} секунд"
74
- many: "менше %{count} секунд"
75
- other: "менше %{count} секунди"
76
- x_seconds:
77
- one: "%{count} секунда"
78
- few: "%{count} секунди"
79
- many: "%{count} секунд"
80
- other: "%{count} секунди"
81
- less_than_x_minutes:
82
- one: "менше %{count} хвилини"
83
- few: "менше %{count} хвилин"
84
- many: "менше %{count} хвилин"
85
- other: "менше %{count} хвилини"
86
- x_minutes:
87
- one: "%{count} хвилина"
88
- few: "%{count} хвилини"
89
- many: "%{count} хвилин"
90
- other: "%{count} хвилини"
91
- about_x_hours:
92
- one: "близько %{count} година"
93
- few: "близько %{count} години"
94
- many: "близько %{count} годин"
95
- other: "близько %{count} години"
96
- x_days:
97
- one: "%{count} день"
98
- few: "%{count} дні"
99
- many: "%{count} днів"
100
- other: "%{count} дня"
101
- about_x_months:
102
- one: "близько %{count} місяця"
103
- few: "близько %{count} місяців"
104
- many: "близько %{count} місяців"
105
- other: "близько %{count} місяця"
106
- x_months:
107
- one: "%{count} місяць"
108
- few: "%{count} місяці"
109
- many: "%{count} місяців"
110
- other: "%{count} місяця"
111
- about_x_years:
112
- one: "близько %{count} року"
113
- few: "близько %{count} років"
114
- many: "близько %{count} років"
115
- other: "близько %{count} року"
116
- over_x_years:
117
- one: "більше %{count} року"
118
- few: "більше %{count} років"
119
- many: "більше %{count} років"
120
- other: "більше %{count} року"
121
- prompts:
122
- year: "Рік"
123
- month: "Місяць"
124
- day: "День"
125
- hour: "Година"
126
- minute: "Хвилина"
127
- second: "Секунда"
128
-
129
- activerecord:
130
- errors:
131
- template:
132
- header:
133
- one: "%{model} не збережено через %{count} помилку"
134
- few: "%{model} не збережено через %{count} помилки"
135
- many: "%{model} не збережено через %{count} помилок"
136
- other: "%{model} не збережено через %{count} помилки"
137
- # The variable :count is also available
138
- body: "Помилки виявлено в таких полях:"
139
-
140
- # The values :model, :attribute and :value are always available for interpolation
141
- # The value :count is available when applicable. Can be used for pluralization.
142
- messages:
143
- inclusion: "не включено до переліку"
144
- exclusion: "зарезервовано"
145
- invalid: "недійсний"
146
- confirmation: "не збігається з підтвердженням"
147
- accepted: "має бути прийнятий"
148
- empty: "не може бути порожнім"
149
- blank: "не може бути пустим"
150
- too_long:
151
- one: "занадто довгий (максимум %{count} знак)"
152
- few: "занадто довгий (максимум %{count} знаки)"
153
- many: "занадто довгий (максимум %{count} знаків)"
154
- other: "занадто довгий (максимум %{count} знаку)"
155
- too_short:
156
- one: "занадто короткий (мінімум %{count} знак)"
157
- few: "занадто короткий (мінімум %{count} знаки)"
158
- many: "занадто короткий (мінімум %{count} знаків)"
159
- other: "занадто короткий (мінімум %{count} знаку)"
160
- wrong_length:
161
- one: "неправильна довжина (має бути %{count} знак)"
162
- few: "неправильна довжина (має бути %{count} знаки)"
163
- many: "неправильна довжина (має бути %{count} знаків)"
164
- other: "неправильна довжина (має бути %{count} знаку)"
165
- taken: "вже зайнятий"
166
- not_a_number: "не число"
167
- greater_than: "має бути більше ніж %{count}"
168
- greater_than_or_equal_to: "має бути більше ніж або дорівнювати %{count}"
169
- equal_to: "має дорівнювати %{count}"
170
- less_than: "має бути менше ніж %{count}"
171
- less_than_or_equal_to: "має бути менше ніж або дорівнювати %{count}"
172
- odd: "має бути непарним"
173
- even: "має бути парним"
174
- # Append your own errors here or at the model/attributes scope.
175
-
176
- # You can define own errors for models or model attributes.
177
- # The values :model, :attribute and :value are always available for interpolation.
178
- #
179
- # For example,
180
- # models:
181
- # user:
182
- # blank: "This is a custom blank message for %{model}: %{attribute}"
183
- # attributes:
184
- # login:
185
- # blank: "This is a custom blank message for User login"
186
- # Will define custom blank validation message for User model and
187
- # custom blank validation message for login attribute of User model.
188
- #models:
189
-
190
- # Translate model names. Used in Model.human_name().
191
- #models:
192
- # For example,
193
- # user: "Dude"
194
- # will translate User model name to "Dude"
195
-
196
- # Translate model attribute names. Used in Model.human_attribute_name(attribute).
197
- #attributes:
198
- # For example,
199
- # user:
200
- # login: "Handle"
201
- # will translate User attribute "login" as "Handle"
202
-
203
- date:
204
- formats:
205
- # Use the strftime parameters for formats.
206
- # When no format has been given, it uses default.
207
- # You can provide other formats here if you like!
208
- default: "%d.%m.%Y"
209
- short: "%d %b"
210
- long: "%d %B %Y"
211
-
212
- day_names: [неділя, понеділок, вівторок, середа, четвер, "п'ятниця", субота]
213
- abbr_day_names: [нд., пн., вт., ср., чт., пт., сб.]
214
-
215
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
216
- month_names: [~, Січень, Лютий, Березень, Квітень, Травень, Червень, Липень, Серпень, Вересень, Жовтень, Листопад, Грудень]
217
- abbr_month_names: [~, січ., лют., бер., квіт., трав., черв., лип., серп., вер., жовт., лист., груд.]
218
- # Used in date_select and datime_select.
219
- order:
220
- - :day
221
- - :month
222
- - :year
223
-
224
- time:
225
- formats:
226
- default: "%a, %d %b %Y, %H:%M:%S %z"
227
- short: "%d %b, %H:%M"
228
- long: "%d %B %Y, %H:%M"
229
- am: "до полудня"
230
- pm: "по полудні"
231
-
232
- # Used in array.to_sentence.
233
- support:
234
- array:
235
- sentence_connector: "і"
236
- skip_last_comma: true
237
- words_connector: ", "
238
- two_words_connector: " і "
239
- last_word_connector: " та "
240
-
@@ -1,201 +0,0 @@
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
- vi:
7
- 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
-
18
- # Used in number_to_currency()
19
- currency:
20
- format:
21
- # Where is the currency sign? %u is the currency unit, %n the number (default: $5.00)
22
- format: "%n %u"
23
- unit: "đồng"
24
- # These three are to override number.format and are optional
25
- separator: ","
26
- delimiter: "."
27
- precision: 2
28
-
29
- # Used in number_to_percentage()
30
- percentage:
31
- format:
32
- # These three are to override number.format and are optional
33
- # separator:
34
- delimiter: ""
35
- # precision:
36
-
37
- # Used in number_to_precision()
38
- precision:
39
- format:
40
- # These three are to override number.format and are optional
41
- # separator:
42
- delimiter: ""
43
- # precision:
44
-
45
- # Used in number_to_human_size()
46
- human:
47
- format:
48
- # These three are to override number.format and are optional
49
- # separator:
50
- delimiter: ""
51
- precision: 1
52
- storage_units:
53
- # Storage units output formatting.
54
- # %u is the storage unit, %n is the number (default: 2 MB)
55
- format: "%n %u"
56
- units:
57
- byte:
58
- one: "Byte"
59
- other: "Byte"
60
- kb: "KB"
61
- mb: "MB"
62
- gb: "GB"
63
- tb: "TB"
64
-
65
- # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
66
- datetime:
67
- distance_in_words:
68
- half_a_minute: "30 giây"
69
- less_than_x_seconds:
70
- one: "chưa tới 1 giây"
71
- other: "chưa tới %{count} giây"
72
- x_seconds:
73
- one: "1 giây"
74
- other: "%{count} giây"
75
- less_than_x_minutes:
76
- one: "chưa tới 1 phút"
77
- other: "chưa tới %{count} phút"
78
- x_minutes:
79
- one: "1 phút"
80
- other: "%{count} phút"
81
- about_x_hours:
82
- one: "khoảng 1 giờ"
83
- other: "khoảng %{count} giờ"
84
- x_days:
85
- one: "1 ngày"
86
- other: "%{count} ngày"
87
- about_x_months:
88
- one: "khoảng 1 tháng"
89
- other: "khoảng %{count} tháng"
90
- x_months:
91
- one: "1 tháng"
92
- other: "%{count} tháng"
93
- about_x_years:
94
- one: "khoảng 1 năm"
95
- other: "khoảng %{count} năm"
96
- over_x_years:
97
- one: "hơn 1 năm"
98
- other: "hơn %{count} năm"
99
- prompts:
100
- year: "Năm"
101
- month: "Tháng"
102
- day: "Ngày"
103
- hour: "Giờ"
104
- minute: "Phút"
105
- second: "Giây"
106
-
107
- activerecord:
108
- errors:
109
- template:
110
- header:
111
- one: "1 lỗi ngăn không cho lưu %{model} này"
112
- other: "%{count} lỗi ngăn không cho lưu %{model} này"
113
- # The variable :count is also available
114
- body: "Có lỗi với các mục sau:"
115
-
116
- # The values :model, :attribute and :value are always available for interpolation
117
- # The value :count is available when applicable. Can be used for pluralization.
118
- messages:
119
- inclusion: "không có trong danh sách"
120
- exclusion: "đã được giành trước"
121
- invalid: "không hợp lệ"
122
- confirmation: "không khớp với xác nhận"
123
- accepted: "phải được đồng ý"
124
- empty: "không thể rỗng"
125
- blank: "không thể để trắng"
126
- too_long: "quá dài (tối đa %{count} ký tự)"
127
- too_short: "quá ngắn (tối thiểu %{count} ký tự)"
128
- wrong_length: "độ dài không đúng (phải là %{count} ký tự)"
129
- taken: "đã có"
130
- not_a_number: "không phải là số"
131
- greater_than: "phải lớn hơn %{count}"
132
- greater_than_or_equal_to: "phải lớn hơn hoặc bằng %{count}"
133
- equal_to: "phải bằng %{count}"
134
- less_than: "phải nhỏ hơn %{count}"
135
- less_than_or_equal_to: "phải nhỏ hơn hoặc bằng %{count}"
136
- odd: "phải là số chẵn"
137
- even: "phải là số lẻ"
138
- # Append your own errors here or at the model/attributes scope.
139
-
140
- # You can define own errors for models or model attributes.
141
- # The values :model, :attribute and :value are always available for interpolation.
142
- #
143
- # For example,
144
- # models:
145
- # user:
146
- # blank: "This is a custom blank message for %{model}: %{attribute}"
147
- # attributes:
148
- # login:
149
- # blank: "This is a custom blank message for User login"
150
- # Will define custom blank validation message for User model and
151
- # custom blank validation message for login attribute of User model.
152
- # models:
153
-
154
- # Translate model names. Used in Model.human_name().
155
- #models:
156
- # For example,
157
- # user: "Dude"
158
- # will translate User model name to "Dude"
159
-
160
- # Translate model attribute names. Used in Model.human_attribute_name(attribute).
161
- #attributes:
162
- # For example,
163
- # user:
164
- # login: "Handle"
165
- # will translate User attribute "login" as "Handle"
166
-
167
- date:
168
- formats:
169
- # Use the strftime parameters for formats.
170
- # When no format has been given, it uses default.
171
- # You can provide other formats here if you like!
172
- default: "%d-%m-%Y"
173
- short: "%d %b"
174
- long: "%d %B, %Y"
175
-
176
- day_names: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"]
177
- abbr_day_names: ["Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"]
178
-
179
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
180
- month_names: [~, "Tháng một", "Tháng hai", "Tháng ba", "Tháng tư", "Tháng năm", "Tháng sáu", "Tháng bảy", "Tháng tám", "Tháng chín", "Tháng mười", "Tháng mười một", "Tháng mười hai"]
181
- abbr_month_names: [~, "Tháng một", "Tháng hai", "Tháng ba", "Tháng tư", "Tháng năm", "Tháng sáu", "Tháng bảy", "Tháng tám", "Tháng chín", "Tháng mười", "Tháng mười một", "Tháng mười hai"]
182
- # Used in date_select and datime_select.
183
- order:
184
- - :day
185
- - :month
186
- - :year
187
-
188
- time:
189
- formats:
190
- default: "%a, %d %b %Y %H:%M:%S %z"
191
- short: "%d %b %H:%M"
192
- long: "%d %B, %Y %H:%M"
193
- am: "sáng"
194
- pm: "chiều"
195
-
196
- # Used in array.to_sentence.
197
- support:
198
- array:
199
- words_connector: ", "
200
- two_words_connector: " và "
201
- last_word_connector: ", và "
@@ -1,210 +0,0 @@
1
- # Chinese (China) translations for Ruby on Rails
2
- # by tsechingho (http://github.com/tsechingho)
3
-
4
- zh-CN:
5
- date:
6
- formats:
7
- default: "%Y-%m-%d"
8
- short: "%b%d日"
9
- long: "%Y年%b%d日"
10
- day_names: [星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六]
11
- abbr_day_names: [日, 一, 二, 三, 四, 五, 六]
12
- month_names: [~, 一月, 二月, 三月, 四月, 五月, 六月, 七月, 八月, 九月, 十月, 十一月, 十二月]
13
- abbr_month_names: [~, 1月, 2月, 3月, 4月, 5月, 6月, 7月, 8月, 9月, 10月, 11月, 12月]
14
- order:
15
- - :year
16
- - :month
17
- - :day
18
-
19
- time:
20
- formats:
21
- default: "%Y年%b%d日 %A %H:%M:%S %Z"
22
- short: "%b%d日 %H:%M"
23
- long: "%Y年%b%d日 %H:%M"
24
- am: "上午"
25
- pm: "下午"
26
-
27
- datetime:
28
- distance_in_words:
29
- half_a_minute: "半分钟"
30
- less_than_x_seconds:
31
- one: "不到一秒"
32
- other: "不到 %{count} 秒"
33
- x_seconds:
34
- one: "一秒"
35
- other: "%{count} 秒"
36
- less_than_x_minutes:
37
- one: "不到一分钟"
38
- other: "不到 %{count} 分钟"
39
- x_minutes:
40
- one: "一分钟"
41
- other: "%{count} 分钟"
42
- about_x_hours:
43
- one: "大约一小时"
44
- other: "大约 %{count} 小时"
45
- x_days:
46
- one: "一天"
47
- other: "%{count} 天"
48
- about_x_months:
49
- one: "大约一个月"
50
- other: "大约 %{count} 个月"
51
- x_months:
52
- one: "一个月"
53
- other: "%{count} 个月"
54
- about_x_years:
55
- one: "大约一年"
56
- other: "大约 %{count} 年"
57
- over_x_years:
58
- one: "一年多"
59
- other: "%{count} 年多"
60
- almost_x_years:
61
- one: "接近一年"
62
- other: "接近 %{count} 年"
63
- prompts:
64
- year: "年"
65
- month: "月"
66
- day: "日"
67
- hour: "时"
68
- minute: "分"
69
- second: "秒"
70
-
71
- number:
72
- format:
73
- separator: "."
74
- delimiter: ","
75
- precision: 3
76
- significant: false
77
- strip_insignificant_zeros: false
78
- currency:
79
- format:
80
- format: "%u %n"
81
- unit: "CN¥"
82
- separator: "."
83
- delimiter: ","
84
- precision: 2
85
- significant: false
86
- strip_insignificant_zeros: false
87
- percentage:
88
- format:
89
- delimiter: ""
90
- precision:
91
- format:
92
- delimiter: ""
93
- human:
94
- format:
95
- delimiter: ""
96
- precision: 1
97
- significant: false
98
- strip_insignificant_zeros: false
99
- storage_units:
100
- format: "%n %u"
101
- units:
102
- byte:
103
- one: "Byte"
104
- other: "Bytes"
105
- kb: "KB"
106
- mb: "MB"
107
- gb: "GB"
108
- tb: "TB"
109
- decimal_units:
110
- format: "%n %u"
111
- units:
112
- # 10^-21 zepto, 10^-24 yocto
113
- atto: "渺" # 10^-18
114
- femto: "飞" # 10^-15 毫微微
115
- pico: "漠" # 10^-12 微微
116
- nano: "奈" # 10^-9 毫微
117
- micro: "微" # 10^-6
118
- mili: "毫" # 10^-3 milli
119
- centi: "厘" # 10^-2
120
- deci: "分" # 10^-1
121
- unit: ""
122
- ten:
123
- one: "十"
124
- other: "十" # 10^1
125
- hundred: "百" # 10^2
126
- thousand: "千" # 10^3 kilo
127
- million: "百万" # 10^6 mega
128
- billion: "十亿" # 10^9 giga
129
- trillion: "兆" # 10^12 tera
130
- quadrillion: "千兆" # 10^15 peta
131
- # 10^18 exa, 10^21 zetta, 10^24 yotta
132
-
133
- support:
134
- array:
135
- words_connector: ", "
136
- two_words_connector: " 和 "
137
- last_word_connector: ", 和 "
138
- select:
139
- prompt: "请选择"
140
-
141
- activerecord:
142
- errors:
143
- template: # ~ 2.3.5 backward compatible
144
- header:
145
- one: "有 1 个错误发生导致「%{model}」无法被保存。"
146
- other: "有 %{count} 个错误发生导致「%{model}」无法被保存。"
147
- body: "如下字段出现错误:"
148
- full_messages:
149
- format: "%{attribute} %{message}"
150
- messages:
151
- inclusion: "不包含于列表中"
152
- exclusion: "是保留关键字"
153
- invalid: "是无效的"
154
- confirmation: "与确认值不匹配"
155
- accepted: "必须是可被接受的"
156
- empty: "不能留空"
157
- blank: "不能为空字符"
158
- too_long: "过长(最长为 %{count} 个字符)"
159
- too_short: "过短(最短为 %{count} 个字符)"
160
- wrong_length: "长度非法(必须为 %{count} 个字符)"
161
- not_a_number: "不是数字"
162
- not_an_integer: "必须是整数"
163
- greater_than: "必须大于 %{count}"
164
- greater_than_or_equal_to: "必须大于或等于 %{count}"
165
- equal_to: "必须等于 %{count}"
166
- less_than: "必须小于 %{count}"
167
- less_than_or_equal_to: "必须小于或等于 %{count}"
168
- odd: "必须为单数"
169
- even: "必须为双数"
170
- taken: "已经被使用"
171
- record_invalid: "校验失败: %{errors}"
172
-
173
- activemodel:
174
- errors:
175
- template:
176
- header:
177
- one: "有 1 个错误发生导致「%{model}」无法被保存。"
178
- other: "有 %{count} 个错误发生导致「%{model}」无法被保存。"
179
- body: "如下字段出现错误:"
180
-
181
- errors:
182
- format: "%{attribute} %{message}"
183
- messages:
184
- inclusion: "不包含于列表中"
185
- exclusion: "是保留关键字"
186
- invalid: "是无效的"
187
- confirmation: "与确认值不匹配"
188
- accepted: "必须是可被接受的"
189
- empty: "不能留空"
190
- blank: "不能为空字符"
191
- too_long: "过长(最长为 %{count} 个字符)"
192
- too_short: "过短(最短为 %{count} 个字符)"
193
- wrong_length: "长度非法(必须为 %{count} 个字符)"
194
- not_a_number: "不是数字"
195
- not_an_integer: "必须是整数"
196
- greater_than: "必须大于 %{count}"
197
- greater_than_or_equal_to: "必须大于或等于 %{count}"
198
- equal_to: "必须等于 %{count}"
199
- less_than: "必须小于 %{count}"
200
- less_than_or_equal_to: "必须小于或等于 %{count}"
201
- odd: "必须为单数"
202
- even: "必须为双数"
203
-
204
- helpers:
205
- select:
206
- prompt: "请选择"
207
- submit:
208
- create: "新增%{model}"
209
- update: "更新%{model}"
210
- submit: "储存%{model}"