amber 0.2.6 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (129) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +14 -1
  3. data/README.md +88 -19
  4. data/bin/amber +26 -13
  5. data/lib/amber.rb +25 -39
  6. data/lib/amber/cli.rb +25 -1
  7. data/lib/amber/i18n.rb +43 -0
  8. data/lib/amber/render/apache.rb +44 -0
  9. data/lib/amber/render/asset.rb +28 -2
  10. data/lib/amber/render/helpers/blog_helper.rb +35 -0
  11. data/lib/amber/render/helpers/date_helper.rb +14 -0
  12. data/lib/amber/render/helpers/haml_helper.rb +9 -0
  13. data/lib/amber/render/helpers/html_helper.rb +30 -8
  14. data/lib/amber/render/helpers/navigation_helper.rb +31 -32
  15. data/lib/amber/render/layout.rb +2 -1
  16. data/lib/amber/render/template.rb +24 -11
  17. data/lib/amber/render/view.rb +31 -12
  18. data/lib/amber/server.rb +122 -56
  19. data/lib/amber/site.rb +171 -29
  20. data/lib/amber/site_configuration.rb +26 -11
  21. data/lib/amber/static_page.rb +34 -20
  22. data/lib/amber/static_page/filesystem.rb +3 -7
  23. data/lib/amber/static_page/page_properties.rb +7 -0
  24. data/lib/amber/static_page/render.rb +47 -31
  25. data/lib/amber/templates/apache_config.erb +12 -0
  26. data/lib/amber/templates/apache_config_with_prefix.erb +14 -0
  27. data/lib/amber/templates/htaccess.erb +176 -0
  28. data/lib/amber/version.rb +5 -0
  29. data/locales/rails-i18n/af.yml +201 -0
  30. data/locales/rails-i18n/ar.yml +274 -0
  31. data/locales/rails-i18n/az.yml +192 -0
  32. data/locales/rails-i18n/bg.yml +192 -0
  33. data/locales/rails-i18n/bn.yml +175 -0
  34. data/locales/rails-i18n/bs.yml +243 -0
  35. data/locales/rails-i18n/ca.yml +192 -0
  36. data/locales/rails-i18n/cs.yml +210 -0
  37. data/locales/rails-i18n/cy.yml +242 -0
  38. data/locales/rails-i18n/da.yml +198 -0
  39. data/locales/rails-i18n/de-AT.yml +202 -0
  40. data/locales/rails-i18n/de-CH.yml +206 -0
  41. data/locales/rails-i18n/de.yml +202 -0
  42. data/locales/rails-i18n/el.yml +198 -0
  43. data/locales/rails-i18n/en-AU.yml +198 -0
  44. data/locales/rails-i18n/en-CA.yml +207 -0
  45. data/locales/rails-i18n/en-GB.yml +198 -0
  46. data/locales/rails-i18n/en-IE.yml +198 -0
  47. data/locales/rails-i18n/en-IN.yml +198 -0
  48. data/locales/rails-i18n/en-NZ.yml +198 -0
  49. data/locales/rails-i18n/en-US.yml +204 -0
  50. data/locales/rails-i18n/en-ZA.yml +204 -0
  51. data/locales/rails-i18n/en.yml +204 -0
  52. data/locales/rails-i18n/eo.yml +194 -0
  53. data/locales/rails-i18n/es-419.yml +207 -0
  54. data/locales/rails-i18n/es-AR.yml +198 -0
  55. data/locales/rails-i18n/es-CL.yml +192 -0
  56. data/locales/rails-i18n/es-CO.yml +198 -0
  57. data/locales/rails-i18n/es-CR.yml +198 -0
  58. data/locales/rails-i18n/es-EC.yml +204 -0
  59. data/locales/rails-i18n/es-MX.yml +204 -0
  60. data/locales/rails-i18n/es-PA.yml +204 -0
  61. data/locales/rails-i18n/es-PE.yml +177 -0
  62. data/locales/rails-i18n/es-US.yml +198 -0
  63. data/locales/rails-i18n/es-VE.yml +198 -0
  64. data/locales/rails-i18n/es.yml +192 -0
  65. data/locales/rails-i18n/et.yml +192 -0
  66. data/locales/rails-i18n/eu.yml +192 -0
  67. data/locales/rails-i18n/fa.yml +192 -0
  68. data/locales/rails-i18n/fi.yml +192 -0
  69. data/locales/rails-i18n/fr-CA.yml +200 -0
  70. data/locales/rails-i18n/fr-CH.yml +200 -0
  71. data/locales/rails-i18n/fr.yml +214 -0
  72. data/locales/rails-i18n/gl.yml +171 -0
  73. data/locales/rails-i18n/he.yml +194 -0
  74. data/locales/rails-i18n/hi-IN.yml +192 -0
  75. data/locales/rails-i18n/hi.yml +192 -0
  76. data/locales/rails-i18n/hr.yml +236 -0
  77. data/locales/rails-i18n/hu.yml +192 -0
  78. data/locales/rails-i18n/id.yml +193 -0
  79. data/locales/rails-i18n/is.yml +212 -0
  80. data/locales/rails-i18n/iso-639-2/csb.yml +203 -0
  81. data/locales/rails-i18n/iso-639-2/dsb.yml +208 -0
  82. data/locales/rails-i18n/iso-639-2/fur.yml +192 -0
  83. data/locales/rails-i18n/iso-639-2/gsw-CH.yml +196 -0
  84. data/locales/rails-i18n/iso-639-2/hsb.yml +207 -0
  85. data/locales/rails-i18n/iso-639-2/pap-AW.yml +205 -0
  86. data/locales/rails-i18n/iso-639-2/pap-CW.yml +205 -0
  87. data/locales/rails-i18n/iso-639-2/scr.yml +236 -0
  88. data/locales/rails-i18n/it-CH.yml +198 -0
  89. data/locales/rails-i18n/it.yml +204 -0
  90. data/locales/rails-i18n/ja.yml +194 -0
  91. data/locales/rails-i18n/km.yml +54 -0
  92. data/locales/rails-i18n/kn.yml +192 -0
  93. data/locales/rails-i18n/ko.yml +190 -0
  94. data/locales/rails-i18n/lo.yml +227 -0
  95. data/locales/rails-i18n/lt.yml +217 -0
  96. data/locales/rails-i18n/lv.yml +229 -0
  97. data/locales/rails-i18n/mk.yml +198 -0
  98. data/locales/rails-i18n/mn.yml +198 -0
  99. data/locales/rails-i18n/ms.yml +200 -0
  100. data/locales/rails-i18n/nb.yml +205 -0
  101. data/locales/rails-i18n/ne.yml +198 -0
  102. data/locales/rails-i18n/nl.yml +204 -0
  103. data/locales/rails-i18n/nn.yml +201 -0
  104. data/locales/rails-i18n/or.yml +192 -0
  105. data/locales/rails-i18n/pl.yml +236 -0
  106. data/locales/rails-i18n/pt-BR.yml +206 -0
  107. data/locales/rails-i18n/pt.yml +200 -0
  108. data/locales/rails-i18n/rm.yml +223 -0
  109. data/locales/rails-i18n/ro.yml +205 -0
  110. data/locales/rails-i18n/ru.yml +256 -0
  111. data/locales/rails-i18n/sk.yml +206 -0
  112. data/locales/rails-i18n/sl.yml +205 -0
  113. data/locales/rails-i18n/sr.yml +236 -0
  114. data/locales/rails-i18n/sv.yml +192 -0
  115. data/locales/rails-i18n/sw.yml +190 -0
  116. data/locales/rails-i18n/ta.yml +204 -0
  117. data/locales/rails-i18n/th.yml +166 -0
  118. data/locales/rails-i18n/tl.yml +224 -0
  119. data/locales/rails-i18n/tr.yml +204 -0
  120. data/locales/rails-i18n/uk.yml +250 -0
  121. data/locales/rails-i18n/ur.yml +204 -0
  122. data/locales/rails-i18n/uz.yml +250 -0
  123. data/locales/rails-i18n/vi.yml +198 -0
  124. data/locales/rails-i18n/wo.yml +198 -0
  125. data/locales/rails-i18n/zh-CN.yml +203 -0
  126. data/locales/rails-i18n/zh-HK.yml +204 -0
  127. data/locales/rails-i18n/zh-TW.yml +203 -0
  128. data/locales/rails-i18n/zh-YUE.yml +204 -0
  129. metadata +164 -74
@@ -0,0 +1,198 @@
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
+ almost_x_years:
67
+ one: gần 1 năm
68
+ other: gần %{count} năm
69
+ half_a_minute: 30 giây
70
+ less_than_x_minutes:
71
+ one: chưa tới 1 phút
72
+ other: chưa tới %{count} phút
73
+ less_than_x_seconds:
74
+ one: chưa tới 1 giây
75
+ other: chưa tới %{count} giây
76
+ over_x_years:
77
+ one: hơn 1 năm
78
+ other: hơn %{count} năm
79
+ x_days:
80
+ one: 1 ngày
81
+ other: ! '%{count} ngày'
82
+ x_minutes:
83
+ one: 1 phút
84
+ other: ! '%{count} phút'
85
+ x_months:
86
+ one: 1 tháng
87
+ other: ! '%{count} tháng'
88
+ x_seconds:
89
+ one: 1 giây
90
+ other: ! '%{count} giây'
91
+ prompts:
92
+ day: Ngày
93
+ hour: Giờ
94
+ minute: Phút
95
+ month: Tháng
96
+ second: Giây
97
+ year: Năm
98
+ errors:
99
+ format: ! '%{attribute} %{message}'
100
+ messages:
101
+ accepted: phải được đồng ý
102
+ blank: không thể để trắng
103
+ present: cần phải để trắng
104
+ confirmation: không khớp với xác nhận
105
+ empty: không thể rỗng
106
+ equal_to: phải bằng %{count}
107
+ even: phải là số chẵn
108
+ exclusion: đã được giành trước
109
+ greater_than: phải lớn hơn %{count}
110
+ greater_than_or_equal_to: phải lớn hơn hoặc bằng %{count}
111
+ inclusion: không có trong danh sách
112
+ invalid: không hợp lệ
113
+ less_than: phải nhỏ hơn %{count}
114
+ less_than_or_equal_to: phải nhỏ hơn hoặc bằng %{count}
115
+ not_a_number: không phải là số
116
+ not_an_integer: phải là một số nguyên
117
+ odd: phải là số lẻ
118
+ record_invalid: ! 'Có các lỗi sau: %{errors}'
119
+ restrict_dependent_destroy:
120
+ one: "Không thể xóa do tồn tại đối tượng phụ thuộc %{record}"
121
+ many: "Không thể xóa do tồn tại một số đối tượng phụ thuộc %{record}"
122
+ taken: đã có
123
+ too_long: quá dài (tối đa %{count} ký tự)
124
+ too_short: quá ngắn (tối thiểu %{count} ký tự)
125
+ wrong_length: độ dài không đúng (phải là %{count} ký tự)
126
+ other_than: "cần phải khác %{count}"
127
+ template:
128
+ body: ! 'Có lỗi với các mục sau:'
129
+ header:
130
+ one: 1 lỗi ngăn không cho lưu %{model} này
131
+ other: ! '%{count} lỗi ngăn không cho lưu %{model} này'
132
+ helpers:
133
+ select:
134
+ prompt: Vui lòng chọn
135
+ submit:
136
+ create: Tạo %{model}
137
+ submit: Lưu %{model}
138
+ update: Cập nhật %{model}
139
+ number:
140
+ currency:
141
+ format:
142
+ delimiter: .
143
+ format: ! '%n %u'
144
+ precision: 2
145
+ separator: ! ','
146
+ significant: false
147
+ strip_insignificant_zeros: false
148
+ unit: đồng
149
+ format:
150
+ delimiter: .
151
+ precision: 3
152
+ separator: ! ','
153
+ significant: false
154
+ strip_insignificant_zeros: false
155
+ human:
156
+ decimal_units:
157
+ format: ! '%n %u'
158
+ units:
159
+ unit: ''
160
+ billion: Tỷ
161
+ million: Triệu
162
+ quadrillion: Triệu tỷ
163
+ thousand: Nghìn
164
+ trillion: Nghìn tỷ
165
+ format:
166
+ delimiter: ''
167
+ precision: 1
168
+ significant: true
169
+ strip_insignificant_zeros: true
170
+ storage_units:
171
+ format: ! '%n %u'
172
+ units:
173
+ byte:
174
+ one: Byte
175
+ other: Byte
176
+ gb: GB
177
+ kb: KB
178
+ mb: MB
179
+ tb: TB
180
+ percentage:
181
+ format:
182
+ delimiter: ''
183
+ format: "%n%"
184
+ precision:
185
+ format:
186
+ delimiter: ''
187
+ support:
188
+ array:
189
+ last_word_connector: ! ', và '
190
+ two_words_connector: ! ' và '
191
+ words_connector: ! ', '
192
+ time:
193
+ am: sáng
194
+ formats:
195
+ default: ! '%a, %d %b %Y %H:%M:%S %z'
196
+ long: ! '%d %B, %Y %H:%M'
197
+ short: ! '%d %b %H:%M'
198
+ pm: chiều
@@ -0,0 +1,198 @@
1
+ wo:
2
+ date:
3
+ abbr_day_names:
4
+ - Dib
5
+ - Alt
6
+ - Tal
7
+ - All
8
+ - Alx
9
+ - Ajj
10
+ - Gaw
11
+ abbr_month_names:
12
+ -
13
+ - Jan
14
+ - Feb
15
+ - Mar
16
+ - Apr
17
+ - May
18
+ - Jun
19
+ - Jul
20
+ - Aug
21
+ - Sep
22
+ - Oct
23
+ - Nov
24
+ - Dec
25
+ day_names:
26
+ - Dibèer
27
+ - Altine
28
+ - Talaata
29
+ - Allarba
30
+ - Alxamess
31
+ - Ajjouma
32
+ - Gaawu
33
+ formats:
34
+ default: ! '%Y-%m-%d'
35
+ long: ! '%B %d, %Y'
36
+ short: ! '%b %d'
37
+ month_names:
38
+ -
39
+ - Tamkharit
40
+ - Digui Gamou
41
+ - Gamou
42
+ - Raki Gamou
43
+ - Rakati Gamou
44
+ - Mamou Kor
45
+ - Ndeyou Kor
46
+ - Baraxlou
47
+ - Kor
48
+ - Kori
49
+ - Digui Tabaski
50
+ - Tabaski
51
+ order:
52
+ - :year
53
+ - :month
54
+ - :day
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: about 1 hour
59
+ other: about %{count} hours
60
+ about_x_months:
61
+ one: about 1 month
62
+ other: about %{count} months
63
+ about_x_years:
64
+ one: about 1 year
65
+ other: about %{count} years
66
+ almost_x_years:
67
+ one: almost 1 year
68
+ other: almost %{count} years
69
+ half_a_minute: half a minute
70
+ less_than_x_minutes:
71
+ one: less than a minute
72
+ other: less than %{count} minutes
73
+ less_than_x_seconds:
74
+ one: less than 1 second
75
+ other: less than %{count} seconds
76
+ over_x_years:
77
+ one: over 1 year
78
+ other: over %{count} years
79
+ x_days:
80
+ one: 1 day
81
+ other: ! '%{count} days'
82
+ x_minutes:
83
+ one: 1 minute
84
+ other: ! '%{count} minutes'
85
+ x_months:
86
+ one: 1 month
87
+ other: ! '%{count} months'
88
+ x_seconds:
89
+ one: 1 second
90
+ other: ! '%{count} seconds'
91
+ prompts:
92
+ day: Day
93
+ hour: Hour
94
+ minute: Minute
95
+ month: Month
96
+ second: Seconds
97
+ year: Year
98
+ errors:
99
+ format: ! '%{attribute} %{message}'
100
+ messages:
101
+ accepted: must be accepted
102
+ blank: can't be blank
103
+ confirmation: ! "doesn't match %{attribute}"
104
+ empty: can't be empty
105
+ equal_to: must be equal to %{count}
106
+ even: must be even
107
+ exclusion: is reserved
108
+ greater_than: must be greater than %{count}
109
+ greater_than_or_equal_to: must be greater than or equal to %{count}
110
+ inclusion: is not included in the list
111
+ invalid: is invalid
112
+ less_than: must be less than %{count}
113
+ less_than_or_equal_to: must be less than or equal to %{count}
114
+ not_a_number: is not a number
115
+ not_an_integer: must be an integer
116
+ odd: must be odd
117
+ record_invalid: ! 'Validation failed: %{errors}'
118
+ taken: has already been taken
119
+ too_long:
120
+ one: is too long (maximum is 1 character)
121
+ other: is too long (maximum is %{count} characters)
122
+ too_short:
123
+ one: is too short (minimum is 1 character)
124
+ other: is too short (minimum is %{count} characters)
125
+ wrong_length:
126
+ one: is the wrong length (should be 1 character)
127
+ other: is the wrong length (should be %{count} characters)
128
+ template:
129
+ body: ! 'There were problems with the following fields:'
130
+ header:
131
+ one: 1 error prohibited this %{model} from being saved
132
+ other: ! '%{count} errors prohibited this %{model} from being saved'
133
+ helpers:
134
+ select:
135
+ prompt: Please select
136
+ submit:
137
+ create: Create %{model}
138
+ submit: Save %{model}
139
+ update: Update %{model}
140
+ number:
141
+ currency:
142
+ format:
143
+ delimiter: ! ','
144
+ format: ! '%u%n'
145
+ precision: 2
146
+ separator: .
147
+ significant: false
148
+ strip_insignificant_zeros: false
149
+ unit: $
150
+ format:
151
+ delimiter: ! ','
152
+ precision: 3
153
+ separator: .
154
+ significant: false
155
+ strip_insignificant_zeros: false
156
+ human:
157
+ decimal_units:
158
+ format: ! '%n %u'
159
+ units:
160
+ billion: Billion
161
+ million: Million
162
+ quadrillion: Quadrillion
163
+ thousand: Thousand
164
+ trillion: Trillion
165
+ unit: ''
166
+ format:
167
+ delimiter: ''
168
+ precision: 3
169
+ significant: true
170
+ strip_insignificant_zeros: true
171
+ storage_units:
172
+ format: ! '%n %u'
173
+ units:
174
+ byte:
175
+ one: Byte
176
+ other: Bytes
177
+ gb: GB
178
+ kb: KB
179
+ mb: MB
180
+ tb: TB
181
+ percentage:
182
+ format:
183
+ delimiter: ''
184
+ precision:
185
+ format:
186
+ delimiter: ''
187
+ support:
188
+ array:
189
+ last_word_connector: ! ', and '
190
+ two_words_connector: ! ' and '
191
+ words_connector: ! ', '
192
+ time:
193
+ am: am
194
+ formats:
195
+ default: ! '%a, %d %b %Y %H:%M:%S %z'
196
+ long: ! '%B %d, %Y %H:%M'
197
+ short: ! '%d %b %H:%M'
198
+ pm: pm
@@ -0,0 +1,203 @@
1
+ zh-CN:
2
+ date:
3
+ abbr_day_names:
4
+ - 周日
5
+ - 周一
6
+ - 周二
7
+ - 周三
8
+ - 周四
9
+ - 周五
10
+ - 周六
11
+ abbr_month_names:
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
+ - 星期六
33
+ formats:
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
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one: 大约一小时
59
+ other: 大约 %{count} 小时
60
+ about_x_months:
61
+ one: 大约一个月
62
+ other: 大约 %{count} 个月
63
+ about_x_years:
64
+ one: 大约一年
65
+ other: 大约 %{count} 年
66
+ almost_x_years:
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} 秒'
91
+ prompts:
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
+ present: 必须是空白
104
+ confirmation: 与确认值不匹配
105
+ empty: 不能留空
106
+ equal_to: 必须等于 %{count}
107
+ even: 必须为双数
108
+ exclusion: 是保留关键字
109
+ greater_than: 必须大于 %{count}
110
+ greater_than_or_equal_to: 必须大于或等于 %{count}
111
+ inclusion: 不包含于列表中
112
+ invalid: 是无效的
113
+ less_than: 必须小于 %{count}
114
+ less_than_or_equal_to: 必须小于或等于 %{count}
115
+ not_a_number: 不是数字
116
+ not_an_integer: 必须是整数
117
+ odd: 必须为单数
118
+ record_invalid: ! '验证失败: %{errors}'
119
+ restrict_dependent_destroy:
120
+ one: 由于 %{record} 需要此记录,所以无法移除记录
121
+ many: 由于 %{record} 需要此记录,所以无法移除记录
122
+ taken: 已经被使用
123
+ too_long:
124
+ one: 过长(最长为一个字符)
125
+ other: 过长(最长为 %{count} 个字符)
126
+ too_short:
127
+ one: 过短(最短为一个字符)
128
+ other: 过短(最短为 %{count} 个字符)
129
+ wrong_length:
130
+ one: 长度非法(必须为一个字符)
131
+ other: 长度非法(必须为 %{count} 个字符)
132
+ other_than: 长度非法(不可为 %{count} 个字符
133
+ template:
134
+ body: 如下字段出现错误:
135
+ header:
136
+ one: 有 1 个错误发生导致「%{model}」无法被保存。
137
+ other: 有 %{count} 个错误发生导致「%{model}」无法被保存。
138
+ helpers:
139
+ select:
140
+ prompt: 请选择
141
+ submit:
142
+ create: 新增%{model}
143
+ submit: 储存%{model}
144
+ update: 更新%{model}
145
+ number:
146
+ currency:
147
+ format:
148
+ delimiter: ! ','
149
+ format: ! '%u %n'
150
+ precision: 2
151
+ separator: .
152
+ significant: false
153
+ strip_insignificant_zeros: false
154
+ unit: CN¥
155
+ format:
156
+ delimiter: ! ','
157
+ precision: 3
158
+ separator: .
159
+ significant: false
160
+ strip_insignificant_zeros: false
161
+ human:
162
+ decimal_units:
163
+ format: ! '%n %u'
164
+ units:
165
+ billion: 十亿
166
+ million: 百万
167
+ quadrillion: 千兆
168
+ thousand: 千
169
+ trillion: 兆
170
+ unit: ''
171
+ format:
172
+ delimiter: ''
173
+ precision: 1
174
+ significant: false
175
+ strip_insignificant_zeros: false
176
+ storage_units:
177
+ format: ! '%n %u'
178
+ units:
179
+ byte:
180
+ one: Byte
181
+ other: Bytes
182
+ gb: GB
183
+ kb: KB
184
+ mb: MB
185
+ tb: TB
186
+ percentage:
187
+ format:
188
+ delimiter: ''
189
+ precision:
190
+ format:
191
+ delimiter: ''
192
+ support:
193
+ array:
194
+ last_word_connector: ! ', 和 '
195
+ two_words_connector: ! ' 和 '
196
+ words_connector: ! ', '
197
+ time:
198
+ am: 上午
199
+ formats:
200
+ default: ! '%Y年%b%d日 %A %H:%M:%S %Z'
201
+ long: ! '%Y年%b%d日 %H:%M'
202
+ short: ! '%b%d日 %H:%M'
203
+ pm: 下午