rails-i18n 5.1.2 → 7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +97 -3
- data/README.md +115 -46
- data/lib/rails_i18n/common_pluralizations/east_slavic.rb +1 -1
- data/lib/rails_i18n/railtie.rb +3 -0
- data/lib/rails_i18n.rb +0 -1
- data/rails/locale/af.yml +18 -18
- data/rails/locale/ar.yml +57 -57
- data/rails/locale/az.yml +19 -19
- data/rails/locale/be.yml +43 -43
- data/rails/locale/bg.yml +14 -14
- data/rails/locale/bn.yml +24 -24
- data/rails/locale/bs.yml +38 -38
- data/rails/locale/ca.yml +46 -22
- data/rails/locale/cs.yml +19 -19
- data/rails/locale/cy.yml +26 -26
- data/rails/locale/da.yml +27 -21
- data/rails/locale/de-AT.yml +17 -17
- data/rails/locale/de-CH.yml +17 -17
- data/rails/locale/de-DE.yml +17 -17
- data/rails/locale/de.yml +17 -17
- data/rails/locale/el-CY.yml +46 -33
- data/rails/locale/el.yml +48 -35
- data/rails/locale/en-AU.yml +25 -15
- data/rails/locale/en-CA.yml +23 -16
- data/rails/locale/en-CY.yml +24 -17
- data/rails/locale/en-GB.yml +24 -17
- data/rails/locale/en-IE.yml +25 -18
- data/rails/locale/en-IN.yml +24 -17
- data/rails/locale/en-NZ.yml +25 -18
- data/rails/locale/en-TT.yml +213 -0
- data/rails/locale/en-US.yml +22 -20
- data/rails/locale/en-ZA.yml +23 -19
- data/rails/locale/en.yml +22 -22
- data/rails/locale/eo.yml +16 -16
- data/rails/locale/es-419.yml +22 -19
- data/rails/locale/es-AR.yml +21 -19
- data/rails/locale/es-CL.yml +20 -18
- data/rails/locale/es-CO.yml +27 -25
- data/rails/locale/es-CR.yml +20 -18
- data/rails/locale/es-EC.yml +22 -19
- data/rails/locale/es-ES.yml +26 -24
- data/rails/locale/es-MX.yml +20 -18
- data/rails/locale/es-NI.yml +23 -21
- data/rails/locale/es-PA.yml +29 -25
- data/rails/locale/es-PE.yml +21 -19
- data/rails/locale/es-US.yml +20 -18
- data/rails/locale/es-VE.yml +20 -18
- data/rails/locale/es.yml +26 -26
- data/rails/locale/et.yml +19 -19
- data/rails/locale/eu.yml +23 -23
- data/rails/locale/fa.yml +22 -21
- data/rails/locale/fi.yml +23 -23
- data/rails/locale/fr-CA.yml +27 -25
- data/rails/locale/fr-CH.yml +25 -23
- data/rails/locale/fr-FR.yml +25 -23
- data/rails/locale/fr.yml +37 -35
- data/rails/locale/gl.yml +12 -12
- data/rails/locale/he.yml +17 -17
- data/rails/locale/hi-IN.yml +14 -14
- data/rails/locale/hi.yml +14 -14
- data/rails/locale/hr.yml +38 -29
- data/rails/locale/hu.yml +14 -14
- data/rails/locale/id.yml +22 -21
- data/rails/locale/is.yml +16 -16
- data/rails/locale/it-CH.yml +28 -15
- data/rails/locale/it.yml +21 -18
- data/rails/locale/ja.yml +23 -23
- data/rails/locale/ka.yml +19 -20
- data/rails/locale/km.yml +16 -16
- data/rails/locale/kn.yml +14 -14
- data/rails/locale/ko.yml +17 -17
- data/rails/locale/lb.yml +45 -42
- data/rails/locale/lo.yml +28 -28
- data/rails/locale/lt.yml +22 -22
- data/rails/locale/lv.yml +28 -28
- data/rails/locale/mg.yml +219 -0
- data/rails/locale/mk.yml +14 -14
- data/rails/locale/ml.yml +26 -26
- data/rails/locale/mn.yml +14 -14
- data/rails/locale/mr-IN.yml +16 -16
- data/rails/locale/ms.yml +14 -14
- data/rails/locale/nb.yml +27 -21
- data/rails/locale/ne.yml +17 -17
- data/rails/locale/nl.yml +17 -17
- data/rails/locale/nn.yml +16 -16
- data/rails/locale/oc.yml +24 -24
- data/rails/locale/or.yml +14 -14
- data/rails/locale/pa.yml +16 -16
- data/rails/locale/pap-AW.yml +215 -0
- data/rails/locale/pap-CW.yml +215 -0
- data/rails/locale/pl.yml +56 -56
- data/rails/locale/pt-BR.yml +57 -57
- data/rails/locale/pt.yml +58 -57
- data/rails/locale/rm.yml +24 -24
- data/rails/locale/ro.yml +69 -69
- data/rails/locale/ru.yml +45 -45
- data/rails/locale/sk.yml +17 -17
- data/rails/locale/sl.yml +39 -39
- data/rails/locale/sq.yml +87 -79
- data/rails/locale/sr.yml +48 -46
- data/rails/locale/st.yml +215 -0
- data/rails/locale/sv-SE.yml +19 -19
- data/rails/locale/sv.yml +21 -21
- data/rails/locale/sw.yml +14 -14
- data/rails/locale/ta.yml +16 -16
- data/rails/locale/te.yml +20 -22
- data/rails/locale/th.yml +8 -8
- data/rails/locale/tl.yml +132 -132
- data/rails/locale/tr.yml +19 -19
- data/rails/locale/tt.yml +16 -16
- data/rails/locale/ug.yml +16 -16
- data/rails/locale/uk.yml +42 -42
- data/rails/locale/ur.yml +24 -23
- data/rails/locale/uz.yml +37 -37
- data/rails/locale/vi.yml +18 -17
- data/rails/locale/wo.yml +18 -18
- data/rails/locale/zh-CN.yml +16 -16
- data/rails/locale/zh-HK.yml +34 -34
- data/rails/locale/zh-TW.yml +20 -20
- data/rails/locale/zh-YUE.yml +34 -34
- data/rails/pluralization/hu.rb +2 -2
- data/rails/pluralization/ka.rb +2 -2
- data/rails/pluralization/pap-AW.rb +3 -0
- data/rails/pluralization/pap-CW.rb +3 -0
- data/rails/pluralization/pt-BR.rb +3 -0
- data/rails/pluralization/sr.rb +29 -2
- data/rails/pluralization/st.rb +3 -0
- data/rails/pluralization/tr.rb +1 -1
- data/rails/transliteration/da.yml +10 -0
- data/rails/transliteration/fa.yml +47 -0
- data/rails/transliteration/ka.yml +37 -0
- data/rails/transliteration/uk.rb +5 -21
- metadata +23 -13
- data/lib/rails_i18n/unicode.rb +0 -1
data/rails/locale/wo.yml
CHANGED
@@ -3,10 +3,10 @@ wo:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: 'Validation failed: %{errors}'
|
7
7
|
restrict_dependent_destroy:
|
8
|
-
has_one:
|
9
|
-
has_many:
|
8
|
+
has_one: Cannot delete record because a dependent %{record} exists
|
9
|
+
has_many: Cannot delete record because dependent %{record} exist
|
10
10
|
date:
|
11
11
|
abbr_day_names:
|
12
12
|
- Dib
|
@@ -17,7 +17,7 @@ wo:
|
|
17
17
|
- Ajj
|
18
18
|
- Gaw
|
19
19
|
abbr_month_names:
|
20
|
-
-
|
20
|
+
-
|
21
21
|
- Jan
|
22
22
|
- Feb
|
23
23
|
- Mar
|
@@ -43,7 +43,7 @@ wo:
|
|
43
43
|
long: "%B %d, %Y"
|
44
44
|
short: "%b %d"
|
45
45
|
month_names:
|
46
|
-
-
|
46
|
+
-
|
47
47
|
- Tamkharit
|
48
48
|
- Digui Gamou
|
49
49
|
- Gamou
|
@@ -75,36 +75,36 @@ wo:
|
|
75
75
|
one: almost 1 year
|
76
76
|
other: almost %{count} years
|
77
77
|
half_a_minute: half a minute
|
78
|
-
less_than_x_minutes:
|
79
|
-
one: less than a minute
|
80
|
-
other: less than %{count} minutes
|
81
78
|
less_than_x_seconds:
|
82
79
|
one: less than 1 second
|
83
80
|
other: less than %{count} seconds
|
81
|
+
less_than_x_minutes:
|
82
|
+
one: less than a minute
|
83
|
+
other: less than %{count} minutes
|
84
84
|
over_x_years:
|
85
85
|
one: over 1 year
|
86
86
|
other: over %{count} years
|
87
|
-
|
88
|
-
one: 1
|
89
|
-
other: "%{count}
|
87
|
+
x_seconds:
|
88
|
+
one: 1 second
|
89
|
+
other: "%{count} seconds"
|
90
90
|
x_minutes:
|
91
91
|
one: 1 minute
|
92
92
|
other: "%{count} minutes"
|
93
|
+
x_days:
|
94
|
+
one: 1 day
|
95
|
+
other: "%{count} days"
|
93
96
|
x_months:
|
94
97
|
one: 1 month
|
95
98
|
other: "%{count} months"
|
96
99
|
x_years:
|
97
100
|
one: 1 year
|
98
|
-
other: "%{count} years"
|
99
|
-
x_seconds:
|
100
|
-
one: 1 second
|
101
|
-
other: "%{count} seconds"
|
101
|
+
other: "%{count} years"
|
102
102
|
prompts:
|
103
|
-
|
104
|
-
hour: Hour
|
103
|
+
second: Second
|
105
104
|
minute: Minute
|
105
|
+
hour: Hour
|
106
|
+
day: Day
|
106
107
|
month: Month
|
107
|
-
second: Seconds
|
108
108
|
year: Year
|
109
109
|
errors:
|
110
110
|
format: "%{attribute} %{message}"
|
data/rails/locale/zh-CN.yml
CHANGED
@@ -3,7 +3,7 @@ zh-CN:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: '验证失败: %{errors}'
|
7
7
|
restrict_dependent_destroy:
|
8
8
|
has_one: 由于 %{record} 需要此记录,所以无法移除记录
|
9
9
|
has_many: 由于 %{record} 需要此记录,所以无法移除记录
|
@@ -17,7 +17,7 @@ zh-CN:
|
|
17
17
|
- 周五
|
18
18
|
- 周六
|
19
19
|
abbr_month_names:
|
20
|
-
-
|
20
|
+
-
|
21
21
|
- 1月
|
22
22
|
- 2月
|
23
23
|
- 3月
|
@@ -43,7 +43,7 @@ zh-CN:
|
|
43
43
|
long: "%Y年%m月%d日"
|
44
44
|
short: "%m月%d日"
|
45
45
|
month_names:
|
46
|
-
-
|
46
|
+
-
|
47
47
|
- 一月
|
48
48
|
- 二月
|
49
49
|
- 三月
|
@@ -67,28 +67,27 @@ zh-CN:
|
|
67
67
|
about_x_years: 大约 %{count} 年
|
68
68
|
almost_x_years: 接近 %{count} 年
|
69
69
|
half_a_minute: 半分钟
|
70
|
-
less_than_x_minutes: 不到 %{count} 分钟
|
71
70
|
less_than_x_seconds: 不到 %{count} 秒
|
71
|
+
less_than_x_minutes: 不到 %{count} 分钟
|
72
72
|
over_x_years: "%{count} 年多"
|
73
|
-
|
73
|
+
x_seconds: "%{count} 秒"
|
74
74
|
x_minutes: "%{count} 分钟"
|
75
|
+
x_days: "%{count} 天"
|
75
76
|
x_months: "%{count} 个月"
|
76
77
|
x_years: "%{count} 年"
|
77
|
-
x_seconds: "%{count} 秒"
|
78
78
|
prompts:
|
79
|
-
|
80
|
-
hour: 时
|
79
|
+
second: 秒
|
81
80
|
minute: 分
|
81
|
+
hour: 时
|
82
|
+
day: 日
|
82
83
|
month: 月
|
83
|
-
second: 秒
|
84
84
|
year: 年
|
85
85
|
errors:
|
86
|
-
format: "%{attribute}%{message}"
|
86
|
+
format: "%{attribute} %{message}"
|
87
87
|
messages:
|
88
88
|
accepted: 必须是可被接受的
|
89
89
|
blank: 不能为空字符
|
90
|
-
|
91
|
-
confirmation: 与确认值不匹配
|
90
|
+
confirmation: 与 %{attribute} 不匹配
|
92
91
|
empty: 不能留空
|
93
92
|
equal_to: 必须等于 %{count}
|
94
93
|
even: 必须为双数
|
@@ -99,16 +98,17 @@ zh-CN:
|
|
99
98
|
invalid: 是无效的
|
100
99
|
less_than: 必须小于 %{count}
|
101
100
|
less_than_or_equal_to: 必须小于或等于 %{count}
|
102
|
-
model_invalid:
|
101
|
+
model_invalid: '验证失败: %{errors}'
|
103
102
|
not_a_number: 不是数字
|
104
103
|
not_an_integer: 必须是整数
|
105
104
|
odd: 必须为单数
|
105
|
+
other_than: 长度非法(不可为 %{count} 个字符
|
106
|
+
present: 必须是空白
|
106
107
|
required: 必须存在
|
107
108
|
taken: 已经被使用
|
108
109
|
too_long: 过长(最长为 %{count} 个字符)
|
109
110
|
too_short: 过短(最短为 %{count} 个字符)
|
110
111
|
wrong_length: 长度非法(必须为 %{count} 个字符)
|
111
|
-
other_than: 长度非法(不可为 %{count} 个字符
|
112
112
|
template:
|
113
113
|
body: 如下字段出现错误:
|
114
114
|
header: 有 %{count} 个错误发生导致“%{model}”无法被保存。
|
@@ -154,12 +154,12 @@ zh-CN:
|
|
154
154
|
format: "%n %u"
|
155
155
|
units:
|
156
156
|
byte: 字节
|
157
|
+
eb: EB
|
157
158
|
gb: GB
|
158
159
|
kb: KB
|
159
160
|
mb: MB
|
160
|
-
tb: TB
|
161
161
|
pb: PB
|
162
|
-
|
162
|
+
tb: TB
|
163
163
|
percentage:
|
164
164
|
format:
|
165
165
|
delimiter: ''
|
data/rails/locale/zh-HK.yml
CHANGED
@@ -3,7 +3,7 @@ zh-HK:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: 驗證失敗︰%{errors}
|
7
7
|
restrict_dependent_destroy:
|
8
8
|
has_one: 由於%{record}依賴此記錄,無法移除
|
9
9
|
has_many: 由於%{record}依賴此記錄,無法移除
|
@@ -17,7 +17,7 @@ zh-HK:
|
|
17
17
|
- 周五
|
18
18
|
- 周六
|
19
19
|
abbr_month_names:
|
20
|
-
-
|
20
|
+
-
|
21
21
|
- 1月
|
22
22
|
- 2月
|
23
23
|
- 3月
|
@@ -43,7 +43,7 @@ zh-HK:
|
|
43
43
|
long: "%Y年%m月%d日"
|
44
44
|
short: "%m月%d日"
|
45
45
|
month_names:
|
46
|
-
-
|
46
|
+
-
|
47
47
|
- 一月
|
48
48
|
- 二月
|
49
49
|
- 三月
|
@@ -75,60 +75,61 @@ zh-HK:
|
|
75
75
|
one: 接近一年
|
76
76
|
other: 接近%{count}年
|
77
77
|
half_a_minute: 半分鐘
|
78
|
-
less_than_x_minutes:
|
79
|
-
one: 不到一分鐘
|
80
|
-
other: 不到%{count}分鐘
|
81
78
|
less_than_x_seconds:
|
82
79
|
one: 不到一秒
|
83
80
|
other: 不到%{count}秒
|
81
|
+
less_than_x_minutes:
|
82
|
+
one: 不到一分鐘
|
83
|
+
other: 不到%{count}分鐘
|
84
84
|
over_x_years:
|
85
85
|
one: 超過一年
|
86
86
|
other: 超過%{count}年
|
87
|
-
|
88
|
-
one:
|
89
|
-
other: "%{count}
|
87
|
+
x_seconds:
|
88
|
+
one: 一秒
|
89
|
+
other: "%{count}秒"
|
90
90
|
x_minutes:
|
91
91
|
one: 一分鐘
|
92
92
|
other: "%{count}分鐘"
|
93
|
+
x_days:
|
94
|
+
one: 一天
|
95
|
+
other: "%{count}天"
|
93
96
|
x_months:
|
94
97
|
one: 一個月
|
95
98
|
other: "%{count}個月"
|
96
99
|
x_years:
|
97
100
|
one: 一年
|
98
101
|
other: "%{count} 年"
|
99
|
-
x_seconds:
|
100
|
-
one: 一秒
|
101
|
-
other: "%{count}秒"
|
102
102
|
prompts:
|
103
|
-
|
104
|
-
hour: 時
|
103
|
+
second: 秒
|
105
104
|
minute: 分
|
105
|
+
hour: 時
|
106
|
+
day: 日
|
106
107
|
month: 月
|
107
|
-
second: 秒
|
108
108
|
year: 年
|
109
109
|
errors:
|
110
110
|
format: "%{attribute} %{message}"
|
111
111
|
messages:
|
112
112
|
accepted: 必定要被接受
|
113
|
-
blank:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
113
|
+
blank: 不可以是空白
|
114
|
+
confirmation: 與 %{attribute} 不一致
|
115
|
+
empty: 不可以留空
|
116
|
+
equal_to: 必須等於 %{count}
|
117
|
+
even: 必須要是雙數
|
118
|
+
exclusion: 是被保留的關鍵字
|
119
|
+
greater_than: 必須大於 %{count}
|
120
|
+
greater_than_or_equal_to: 必須大於或等於 %{count}
|
121
|
+
inclusion: 並非可被接受的內容
|
122
|
+
invalid: 是無效的
|
123
|
+
less_than: 必須小於 %{count}
|
124
|
+
less_than_or_equal_to: 必須小於或等於 %{count}
|
125
|
+
model_invalid: 驗證失敗︰%{errors}
|
126
|
+
not_a_number: 必須是數字
|
127
|
+
not_an_integer: 必須是整數
|
128
|
+
odd: 必須是單數
|
129
|
+
other_than: 不可以是 %{count} 個字
|
130
|
+
present: 必定要是空白
|
130
131
|
required: 必須存在
|
131
|
-
taken:
|
132
|
+
taken: 已被使用
|
132
133
|
too_long:
|
133
134
|
one: 太長(最長為一個字元)
|
134
135
|
other: 太長(最長為 %{count} 個字元)
|
@@ -138,7 +139,6 @@ zh-HK:
|
|
138
139
|
wrong_length:
|
139
140
|
one: 字數錯誤 (應為一個字元)
|
140
141
|
other: 字數錯誤 (應為 %{count} 個字元)
|
141
|
-
other_than: "不可以是 %{count} 個字"
|
142
142
|
template:
|
143
143
|
body: 以下欄位發生問題︰
|
144
144
|
header:
|
data/rails/locale/zh-TW.yml
CHANGED
@@ -3,7 +3,7 @@ zh-TW:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: '校驗失敗: %{errors}'
|
7
7
|
restrict_dependent_destroy:
|
8
8
|
has_one: 由於 %{record} 需要此記錄,所以無法移除記錄
|
9
9
|
has_many: 由於 %{record} 需要此記錄,所以無法移除記錄
|
@@ -17,7 +17,7 @@ zh-TW:
|
|
17
17
|
- 周五
|
18
18
|
- 周六
|
19
19
|
abbr_month_names:
|
20
|
-
-
|
20
|
+
-
|
21
21
|
- 1月
|
22
22
|
- 2月
|
23
23
|
- 3月
|
@@ -43,7 +43,7 @@ zh-TW:
|
|
43
43
|
long: "%Y年%m月%d日"
|
44
44
|
short: "%m月%d日"
|
45
45
|
month_names:
|
46
|
-
-
|
46
|
+
-
|
47
47
|
- 一月
|
48
48
|
- 二月
|
49
49
|
- 三月
|
@@ -75,44 +75,43 @@ zh-TW:
|
|
75
75
|
one: 接近一年
|
76
76
|
other: 接近 %{count} 年
|
77
77
|
half_a_minute: 半分鐘
|
78
|
-
less_than_x_minutes:
|
79
|
-
one: 不到一分鐘
|
80
|
-
other: 不到 %{count} 分鐘
|
81
78
|
less_than_x_seconds:
|
82
79
|
one: 不到一秒
|
83
80
|
other: 不到 %{count} 秒
|
81
|
+
less_than_x_minutes:
|
82
|
+
one: 不到一分鐘
|
83
|
+
other: 不到 %{count} 分鐘
|
84
84
|
over_x_years:
|
85
85
|
one: 一年多
|
86
86
|
other: "%{count} 年多"
|
87
|
-
|
88
|
-
one:
|
89
|
-
other: "%{count}
|
87
|
+
x_seconds:
|
88
|
+
one: 一秒
|
89
|
+
other: "%{count} 秒"
|
90
90
|
x_minutes:
|
91
91
|
one: 一分鐘
|
92
92
|
other: "%{count} 分鐘"
|
93
|
+
x_days:
|
94
|
+
one: 一天
|
95
|
+
other: "%{count} 天"
|
93
96
|
x_months:
|
94
97
|
one: 一個月
|
95
98
|
other: "%{count} 個月"
|
96
99
|
x_years:
|
97
100
|
one: 一年
|
98
101
|
other: "%{count} 年"
|
99
|
-
x_seconds:
|
100
|
-
one: 一秒
|
101
|
-
other: "%{count} 秒"
|
102
102
|
prompts:
|
103
|
-
|
104
|
-
hour: 時
|
103
|
+
second: 秒
|
105
104
|
minute: 分
|
105
|
+
hour: 時
|
106
|
+
day: 日
|
106
107
|
month: 月
|
107
|
-
second: 秒
|
108
108
|
year: 年
|
109
109
|
errors:
|
110
110
|
format: "%{attribute} %{message}"
|
111
111
|
messages:
|
112
112
|
accepted: 必須是可被接受的
|
113
113
|
blank: 不能為空白
|
114
|
-
|
115
|
-
confirmation: 兩次輸入須一致
|
114
|
+
confirmation: 與 %{attribute} 須一致
|
116
115
|
empty: 不能留空
|
117
116
|
equal_to: 必須等於 %{count}
|
118
117
|
even: 必須是偶數
|
@@ -123,10 +122,12 @@ zh-TW:
|
|
123
122
|
invalid: 是無效的
|
124
123
|
less_than: 必須小於 %{count}
|
125
124
|
less_than_or_equal_to: 必須小於或等於 %{count}
|
126
|
-
model_invalid:
|
125
|
+
model_invalid: '校驗失敗: %{errors}'
|
127
126
|
not_a_number: 不是數字
|
128
127
|
not_an_integer: 必須是整數
|
129
128
|
odd: 必須是奇數
|
129
|
+
other_than: 不可以是 %{count} 個字
|
130
|
+
present: 必須是空白
|
130
131
|
required: 必須存在
|
131
132
|
taken: 已經被使用
|
132
133
|
too_long:
|
@@ -138,7 +139,6 @@ zh-TW:
|
|
138
139
|
wrong_length:
|
139
140
|
one: 字數錯誤 (必須是一個字)
|
140
141
|
other: 字數錯誤 (必須是 %{count} 個字)
|
141
|
-
other_than: 不可以是 %{count} 個字
|
142
142
|
template:
|
143
143
|
body: 以下欄位發生問題:
|
144
144
|
header:
|
@@ -155,7 +155,7 @@ zh-TW:
|
|
155
155
|
currency:
|
156
156
|
format:
|
157
157
|
delimiter: ","
|
158
|
-
format: "%u
|
158
|
+
format: "%u%n"
|
159
159
|
precision: 2
|
160
160
|
separator: "."
|
161
161
|
significant: false
|
data/rails/locale/zh-YUE.yml
CHANGED
@@ -3,7 +3,7 @@ zh-YUE:
|
|
3
3
|
activerecord:
|
4
4
|
errors:
|
5
5
|
messages:
|
6
|
-
record_invalid:
|
6
|
+
record_invalid: 驗證失敗︰%{errors}
|
7
7
|
restrict_dependent_destroy:
|
8
8
|
has_one: 唔可以刪除,因為%{record}要用佢
|
9
9
|
has_many: 唔可以刪除,因為%{record}要用佢
|
@@ -17,7 +17,7 @@ zh-YUE:
|
|
17
17
|
- 周五
|
18
18
|
- 周六
|
19
19
|
abbr_month_names:
|
20
|
-
-
|
20
|
+
-
|
21
21
|
- 1月
|
22
22
|
- 2月
|
23
23
|
- 3月
|
@@ -43,7 +43,7 @@ zh-YUE:
|
|
43
43
|
long: "%Y年%b%d日"
|
44
44
|
short: "%b%d日"
|
45
45
|
month_names:
|
46
|
-
-
|
46
|
+
-
|
47
47
|
- 一月
|
48
48
|
- 二月
|
49
49
|
- 三月
|
@@ -75,60 +75,61 @@ zh-YUE:
|
|
75
75
|
one: 差唔多一年
|
76
76
|
other: 差唔多%{count}年
|
77
77
|
half_a_minute: 半分鐘
|
78
|
-
less_than_x_minutes:
|
79
|
-
one: 唔夠一分鐘
|
80
|
-
other: 唔夠%{count}分鐘
|
81
78
|
less_than_x_seconds:
|
82
79
|
one: 唔夠一秒
|
83
80
|
other: 唔夠%{count}秒
|
81
|
+
less_than_x_minutes:
|
82
|
+
one: 唔夠一分鐘
|
83
|
+
other: 唔夠%{count}分鐘
|
84
84
|
over_x_years:
|
85
85
|
one: 超過一年
|
86
86
|
other: 超過%{count}年
|
87
|
-
|
88
|
-
one:
|
89
|
-
other: "%{count}
|
87
|
+
x_seconds:
|
88
|
+
one: 一秒
|
89
|
+
other: "%{count}秒"
|
90
90
|
x_minutes:
|
91
91
|
one: 一分鐘
|
92
92
|
other: "%{count}分鐘"
|
93
|
+
x_days:
|
94
|
+
one: 一日
|
95
|
+
other: "%{count}日"
|
93
96
|
x_months:
|
94
97
|
one: 一個月
|
95
98
|
other: "%{count}個月"
|
96
99
|
x_years:
|
97
100
|
one: 一年
|
98
101
|
other: "%{count} 年"
|
99
|
-
x_seconds:
|
100
|
-
one: 一秒
|
101
|
-
other: "%{count}秒"
|
102
102
|
prompts:
|
103
|
-
|
104
|
-
hour: 點
|
103
|
+
second: 秒
|
105
104
|
minute: 分
|
105
|
+
hour: 點
|
106
|
+
day: 日
|
106
107
|
month: 月
|
107
|
-
second: 秒
|
108
108
|
year: 年
|
109
109
|
errors:
|
110
110
|
format: "%{attribute} %{message}"
|
111
111
|
messages:
|
112
112
|
accepted: 一定要被接受
|
113
|
-
blank:
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
113
|
+
blank: 唔可以空白
|
114
|
+
confirmation: 與 %{attribute} 唔夾
|
115
|
+
empty: 唔可以漏空
|
116
|
+
equal_to: 要等於 %{count}
|
117
|
+
even: 要係雙數
|
118
|
+
exclusion: 唔用得
|
119
|
+
greater_than: 要大過%{count}
|
120
|
+
greater_than_or_equal_to: 要大過或者等於%{count}
|
121
|
+
inclusion: 唔係可被接受嘅內容
|
122
|
+
invalid: 無效
|
123
|
+
less_than: 要細過%{count}
|
124
|
+
less_than_or_equal_to: 要細過或者等於%{count}
|
125
|
+
model_invalid: 驗證失敗︰%{errors}
|
126
|
+
not_a_number: 唔係一個數字
|
127
|
+
not_an_integer: 要係整數
|
128
|
+
odd: 要係單數
|
129
|
+
other_than: 唔可以係%{count} 個字
|
130
|
+
present: 一定要空白
|
130
131
|
required: 必須存在
|
131
|
-
taken:
|
132
|
+
taken: 已經用緊
|
132
133
|
too_long:
|
133
134
|
one: 太長(最多 1 個字)
|
134
135
|
other: 太長(最多 %{count} 個字)
|
@@ -138,7 +139,6 @@ zh-YUE:
|
|
138
139
|
wrong_length:
|
139
140
|
one: 唔啱字數 (要係 1 個字)
|
140
141
|
other: 唔啱字數 (要係 %{count} 個字)
|
141
|
-
other_than: "唔可以係%{count} 個字"
|
142
142
|
template:
|
143
143
|
body: 呢啲有問題︰
|
144
144
|
header:
|
data/rails/pluralization/hu.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
require 'rails_i18n/common_pluralizations/
|
1
|
+
require 'rails_i18n/common_pluralizations/one_other'
|
2
2
|
|
3
|
-
::RailsI18n::Pluralization::
|
3
|
+
::RailsI18n::Pluralization::OneOther.with_locale(:hu)
|
data/rails/pluralization/ka.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
require 'rails_i18n/common_pluralizations/
|
1
|
+
require 'rails_i18n/common_pluralizations/one_other'
|
2
2
|
|
3
|
-
::RailsI18n::Pluralization::
|
3
|
+
::RailsI18n::Pluralization::OneOther.with_locale(:ka)
|
data/rails/pluralization/sr.rb
CHANGED
@@ -1,3 +1,30 @@
|
|
1
|
-
|
1
|
+
module RailsI18n
|
2
|
+
module Pluralization
|
3
|
+
module Serbian
|
4
|
+
FROM_2_TO_4 = (2..4).to_a.freeze
|
5
|
+
FROM_12_TO_14 = (12..14).to_a.freeze
|
2
6
|
|
3
|
-
|
7
|
+
def self.rule
|
8
|
+
lambda do |n|
|
9
|
+
n ||= 0
|
10
|
+
mod10 = n % 10
|
11
|
+
mod100 = n % 100
|
12
|
+
|
13
|
+
if mod10 == 1 && mod100 != 11
|
14
|
+
:one
|
15
|
+
elsif FROM_2_TO_4.include?(mod10) && !FROM_12_TO_14.include?(mod100)
|
16
|
+
:few
|
17
|
+
else
|
18
|
+
:other
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
{ :sr => {
|
27
|
+
:i18n => {
|
28
|
+
:plural => {
|
29
|
+
:keys => [:one, :few, :other],
|
30
|
+
:rule => RailsI18n::Pluralization::Serbian.rule }}}}
|
data/rails/pluralization/tr.rb
CHANGED
@@ -0,0 +1,47 @@
|
|
1
|
+
fa:
|
2
|
+
i18n:
|
3
|
+
transliterate:
|
4
|
+
rule:
|
5
|
+
'آ': 'a'
|
6
|
+
'ا': 'a'
|
7
|
+
'ب': 'b'
|
8
|
+
'پ': 'p'
|
9
|
+
'ت': 't'
|
10
|
+
'ث': 's'
|
11
|
+
'ج': 'g'
|
12
|
+
'چ': 'ch'
|
13
|
+
'ح': 'h'
|
14
|
+
'خ': 'kh'
|
15
|
+
'د': 'd'
|
16
|
+
'ذ': 'z'
|
17
|
+
'ر': 'r'
|
18
|
+
'ز': 'z'
|
19
|
+
'ژ': 'j'
|
20
|
+
'س': 's'
|
21
|
+
'ش': 'sh'
|
22
|
+
'ص': 's'
|
23
|
+
'ض': 'z'
|
24
|
+
'ط': 't'
|
25
|
+
'ظ': 'z'
|
26
|
+
'ع': 'a'
|
27
|
+
'غ': 'q'
|
28
|
+
'ف': 'f'
|
29
|
+
'ق': 'q'
|
30
|
+
'ک': 'k'
|
31
|
+
'گ': 'gh'
|
32
|
+
'ل': 'l'
|
33
|
+
'م': 'm'
|
34
|
+
'ن': 'n'
|
35
|
+
'و': 'v'
|
36
|
+
'ه': 'h'
|
37
|
+
'ی': 'i'
|
38
|
+
'۰': '0'
|
39
|
+
'۱': '1'
|
40
|
+
'۲': '2'
|
41
|
+
'۳': '3'
|
42
|
+
'۴': '4'
|
43
|
+
'۵': '5'
|
44
|
+
'۶': '6'
|
45
|
+
'۷': '7'
|
46
|
+
'۸': '8'
|
47
|
+
'۹': '9'
|