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.
- checksums.yaml +7 -0
- data/.travis.yml +27 -9
- data/Gemfile +17 -7
- data/Rakefile +2 -0
- data/app/assets/images/refinery/icons/flags/ko.png +0 -0
- data/app/assets/images/refinery/icons/flags/{ua.png → uk.png} +0 -0
- data/lib/generators/refinery/i18n_generator.rb +2 -1
- data/lib/generators/refinery/templates/config/initializers/refinery/i18n.rb.erb +0 -2
- data/lib/refinery/i18n-filter.rb +4 -4
- data/lib/refinery/i18n.rb +10 -6
- data/lib/refinery/i18n/configuration.rb +10 -2
- data/lib/refinery/i18n/engine.rb +20 -18
- data/refinerycms-i18n.gemspec +8 -6
- data/script/rails +5 -0
- data/spec/{requests → features}/dashboard_locale_picker_spec.rb +2 -2
- data/spec/spec_helper.rb +20 -46
- data/spec/support/refinery/i18n/set_defaults.rb +17 -0
- metadata +25 -97
- data/config/locales/ar.yml +0 -124
- data/config/locales/bg.yml +0 -280
- data/config/locales/bn-IN.yml +0 -183
- data/config/locales/bs.yml +0 -117
- data/config/locales/ca.yml +0 -170
- data/config/locales/cs.rb +0 -168
- data/config/locales/cy.yml +0 -181
- data/config/locales/da.yml +0 -195
- data/config/locales/de-AT.yml +0 -154
- data/config/locales/de-CH.yml +0 -154
- data/config/locales/de.yml +0 -193
- data/config/locales/dsb.yml +0 -185
- data/config/locales/el.yml +0 -133
- data/config/locales/en-AU.yml +0 -180
- data/config/locales/en-GB.yml +0 -210
- data/config/locales/en-US.yml +0 -182
- data/config/locales/eo.yml +0 -182
- data/config/locales/es-AR.yml +0 -177
- data/config/locales/es-CO.yml +0 -179
- data/config/locales/es-MX.yml +0 -186
- data/config/locales/es-PE.yml +0 -124
- data/config/locales/es.yml +0 -285
- data/config/locales/et.yml +0 -187
- data/config/locales/eu.yml +0 -264
- data/config/locales/fa.yml +0 -143
- data/config/locales/fi.yml +0 -155
- data/config/locales/fr-CA.yml +0 -187
- data/config/locales/fr-CH.yml +0 -184
- data/config/locales/fr.yml +0 -182
- data/config/locales/fun/en-AU.rb +0 -105
- data/config/locales/fun/gibberish.rb +0 -109
- data/config/locales/fur.yml +0 -144
- data/config/locales/gl-ES.yml +0 -196
- data/config/locales/gsw-CH.yml +0 -182
- data/config/locales/he.yml +0 -106
- data/config/locales/hi-IN.yml +0 -181
- data/config/locales/hi.yml +0 -181
- data/config/locales/hr.yml +0 -119
- data/config/locales/hsb.yml +0 -193
- data/config/locales/hu.yml +0 -147
- data/config/locales/id.yml +0 -142
- data/config/locales/is.yml +0 -145
- data/config/locales/it.yml +0 -198
- data/config/locales/ja.yml +0 -191
- data/config/locales/ko.yml +0 -186
- data/config/locales/lo.yml +0 -204
- data/config/locales/lt.yml +0 -144
- data/config/locales/lv.yml +0 -181
- data/config/locales/mk.yml +0 -118
- data/config/locales/mn.yml +0 -159
- data/config/locales/nb.yml +0 -140
- data/config/locales/nl.yml +0 -186
- data/config/locales/nn.yml +0 -99
- data/config/locales/pl.yml +0 -193
- data/config/locales/pt-BR.yml +0 -208
- data/config/locales/pt-PT.yml +0 -190
- data/config/locales/rm.yml +0 -137
- data/config/locales/ro.yml +0 -155
- data/config/locales/ru.yml +0 -213
- data/config/locales/sk.yml +0 -195
- data/config/locales/sl.yml +0 -193
- data/config/locales/sr-Latn.yml +0 -119
- data/config/locales/sr.yml +0 -119
- data/config/locales/sv.yml +0 -244
- data/config/locales/sw.yml +0 -182
- data/config/locales/th.rb +0 -200
- data/config/locales/tr.yml +0 -142
- data/config/locales/uk.yml +0 -240
- data/config/locales/vi.yml +0 -201
- data/config/locales/zh-CN.yml +0 -210
- data/config/locales/zh-TW.yml +0 -210
- data/lib/gemspec.rb +0 -29
data/config/locales/zh-TW.yml
DELETED
@@ -1,210 +0,0 @@
|
|
1
|
-
# Chinese (Taiwan) translations for Ruby on Rails
|
2
|
-
# by tsechingho (http://github.com/tsechingho)
|
3
|
-
|
4
|
-
zh-TW:
|
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: "NT$"
|
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}"
|
data/lib/gemspec.rb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
version = '2.0.0'
|
3
|
-
raise "Could not get version so gemspec can not be built" if version.nil?
|
4
|
-
files = Dir.glob("**/*").flatten.reject do |file|
|
5
|
-
file =~ /\.gem(spec)?$/
|
6
|
-
end
|
7
|
-
|
8
|
-
gemspec = <<EOF
|
9
|
-
Gem::Specification.new do |s|
|
10
|
-
s.name = %q{refinerycms-i18n}
|
11
|
-
s.version = %q{#{version}}
|
12
|
-
s.description = %q{i18n logic extracted from RefineryCMS, for Refinery CMS.}
|
13
|
-
s.date = %q{#{Time.now.strftime('%Y-%m-%d')}}
|
14
|
-
s.summary = %q{i18n logic for Refinery CMS.}
|
15
|
-
s.email = %q{info@refinerycms.com}
|
16
|
-
s.homepage = %q{http://refinerycms.com}
|
17
|
-
s.authors = ['Philip Arndt']
|
18
|
-
s.require_paths = %w(lib)
|
19
|
-
|
20
|
-
s.add_dependency 'refinerycms-core', '~> 2.0.0'
|
21
|
-
s.add_dependency 'routing-filter', '>= 0.2.3'
|
22
|
-
|
23
|
-
s.files = [
|
24
|
-
'#{files.sort.join("',\n '")}'
|
25
|
-
]
|
26
|
-
end
|
27
|
-
EOF
|
28
|
-
|
29
|
-
File.open(File.expand_path("../../refinerycms-i18n.gemspec", __FILE__), 'w').puts(gemspec)
|