rails-i18n 5.1.0 → 5.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: caf7ca85a58443cc7b215c0f9be710496bfae822
4
- data.tar.gz: 6af15fca368eebee2c5a64b4f1efb02ae6f8d9a3
3
+ metadata.gz: b61e760abe85cc4279efbaa6439a3d2281c1b646
4
+ data.tar.gz: 18971bd69e304770bb238cd1d7964c7bd789884a
5
5
  SHA512:
6
- metadata.gz: 8233c1b84fbe1bd2a9edcc21880a5f633decf36e1c5a654a91d3072357ff051d82dd662d4020030514bc2ca623416c574c24746d5dd63bda9a11905a24a79cc8
7
- data.tar.gz: 00ae026a2c6e6e58e94cfcb474a917920f46a873b61cd3e3be75a38cc0e5c2b738dada783c42773f75b4ad70064606c5a30815dc0376642a9bdf3879aae9dca9
6
+ metadata.gz: 9dec3ac307def0bbc29ca70b0a3fd659dcd6edcded26a38d9c1cf632c20f80d8b4f47ac9edb82e60ae16f0c3cfcdda307682c5f65b6df32f05283f630a8ea60b
7
+ data.tar.gz: 25257c2508e5aeead543584096ce8f562db9e5c340f51cd87660e4c819b0f8435a9c0d25544419035853b41ee21c95f89d7452d715656cafa86e188c01248fae
@@ -1,3 +1,6 @@
1
+ ## 5.1.1 (2018-02-26)
2
+ - Fix #767 (New Chinese pluralization rules break stuff)
3
+
1
4
  ## 5.1.0 (2018-02-14)
2
5
  - Add following locales:
3
6
  - Spanish (Nicaragua) (es-NI)
data/README.md CHANGED
@@ -10,18 +10,18 @@ Central point to collect locale data for use in Ruby on Rails.
10
10
 
11
11
  Add to your Gemfile:
12
12
 
13
- gem 'rails-i18n', '~> 5.0.0' # For 5.0.x and 5.1.x
14
- gem 'rails-i18n', '~> 4.0.0' # For 4.0.x
15
- gem 'rails-i18n', '~> 3.0.0' # For 3.x
13
+ gem 'rails-i18n', '~> 5.1' # For 5.0.x, 5.1.x and 5.2.x
14
+ gem 'rails-i18n', '~> 4.0' # For 4.0.x
15
+ gem 'rails-i18n', '~> 3.0' # For 3.x
16
16
  gem 'rails-i18n', github: 'svenfuchs/rails-i18n', branch: 'master' # For 5.x
17
17
  gem 'rails-i18n', github: 'svenfuchs/rails-i18n', branch: 'rails-4-x' # For 4.x
18
18
  gem 'rails-i18n', github: 'svenfuchs/rails-i18n', branch: 'rails-3-x' # For 3.x
19
19
 
20
20
  or run this command:
21
21
 
22
- gem install rails-i18n -v '~> 5.0.0' # For 5.0.x and 5.1.x
23
- gem install rails-i18n -v '~> 4.0.0' # For 4.0.x
24
- gem install rails-i18n -v '~> 3.0.0' # For 3.x
22
+ gem install rails-i18n -v '~> 5.1' # For For 5.0.x, 5.1.x and 5.2.x
23
+ gem install rails-i18n -v '~> 4.0' # For 4.0.x
24
+ gem install rails-i18n -v '~> 3.0' # For 3.x
25
25
 
26
26
  Note that your rails version must be 3.0 or higher if you want to install `rails-i18n` as a gem. For rails 2.x, install it manually as described below.
27
27
 
@@ -157,6 +157,7 @@ We will do the formality check and publish it as quick as we can.
157
157
 
158
158
  * [devise-i18n](https://github.com/tigrish/devise-i18n)
159
159
  * [will-paginate-i18n](https://github.com/tigrish/will-paginate-i18n)
160
+ * [kaminari-i18n](https://github.com/tigrish/kaminari-i18n)
160
161
  * [i18n-country-translation](https://github.com/onomojo/i18n-country-translations) for translations of country names
161
162
  * [i18n-spec](https://github.com/tigrish/i18n-spec) for RSpec matchers to test your locale files
162
163
  * [iso](https://github.com/tigrish/iso) for the list of valid language/region codes and their translations
@@ -62,43 +62,19 @@ zh-CN:
62
62
  - :day
63
63
  datetime:
64
64
  distance_in_words:
65
- about_x_hours:
66
- one: 大约一小时
67
- other: 大约 %{count} 小时
68
- about_x_months:
69
- one: 大约一个月
70
- other: 大约 %{count} 个月
71
- about_x_years:
72
- one: 大约一年
73
- other: 大约 %{count} 年
74
- almost_x_years:
75
- one: 接近一年
76
- other: 接近 %{count} 年
65
+ about_x_hours: 大约 %{count} 小时
66
+ about_x_months: 大约 %{count} 个月
67
+ about_x_years: 大约 %{count}
68
+ almost_x_years: 接近 %{count} 年
77
69
  half_a_minute: 半分钟
78
- less_than_x_minutes:
79
- one: 不到一分钟
80
- other: 不到 %{count} 分钟
81
- less_than_x_seconds:
82
- one: 不到一秒
83
- other: 不到 %{count}
84
- over_x_years:
85
- one: 一年多
86
- other: "%{count} 年多"
87
- x_days:
88
- one: 一天
89
- other: "%{count} 天"
90
- x_minutes:
91
- one: 一分钟
92
- other: "%{count} 分钟"
93
- x_months:
94
- one: 一个月
95
- other: "%{count} 个月"
96
- x_years:
97
- one: 一年
98
- other: "%{count} 年"
99
- x_seconds:
100
- one: 一秒
101
- other: "%{count} 秒"
70
+ less_than_x_minutes: 不到 %{count} 分钟
71
+ less_than_x_seconds: 不到 %{count} 秒
72
+ over_x_years: "%{count} 年多"
73
+ x_days: "%{count} 天"
74
+ x_minutes: "%{count} 分钟"
75
+ x_months: "%{count} 个月"
76
+ x_years: "%{count} 年"
77
+ x_seconds: "%{count} 秒"
102
78
  prompts:
103
79
  day: 日
104
80
  hour: 时
@@ -129,21 +105,13 @@ zh-CN:
129
105
  odd: 必须为单数
130
106
  required: 必须存在
131
107
  taken: 已经被使用
132
- too_long:
133
- one: 过长(最长为一个字符)
134
- other: 过长(最长为 %{count} 个字符)
135
- too_short:
136
- one: 过短(最短为一个字符)
137
- other: 过短(最短为 %{count} 个字符)
138
- wrong_length:
139
- one: 长度非法(必须为一个字符)
140
- other: 长度非法(必须为 %{count} 个字符)
108
+ too_long: 过长(最长为 %{count} 个字符)
109
+ too_short: 过短(最短为 %{count} 个字符)
110
+ wrong_length: 长度非法(必须为 %{count} 个字符)
141
111
  other_than: 长度非法(不可为 %{count} 个字符
142
112
  template:
143
113
  body: 如下字段出现错误:
144
- header:
145
- one: 有 1 个错误发生导致“%{model}”无法被保存。
146
- other: 有 %{count} 个错误发生导致“%{model}”无法被保存。
114
+ header: 有 %{count} 个错误发生导致“%{model}”无法被保存。
147
115
  helpers:
148
116
  select:
149
117
  prompt: 请选择
@@ -185,9 +153,7 @@ zh-CN:
185
153
  storage_units:
186
154
  format: "%n %u"
187
155
  units:
188
- byte:
189
- one: Byte
190
- other: Bytes
156
+ byte: 字节
191
157
  gb: GB
192
158
  kb: KB
193
159
  mb: MB
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/one_other'
1
+ require 'rails_i18n/common_pluralizations/other'
2
2
 
3
- ::RailsI18n::Pluralization::OneOther.with_locale(:'zh-CN')
3
+ ::RailsI18n::Pluralization::Other.with_locale(:'zh-CN')
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/one_other'
1
+ require 'rails_i18n/common_pluralizations/other'
2
2
 
3
- ::RailsI18n::Pluralization::OneOther.with_locale(:'zh-HK')
3
+ ::RailsI18n::Pluralization::Other.with_locale(:'zh-HK')
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/one_other'
1
+ require 'rails_i18n/common_pluralizations/other'
2
2
 
3
- ::RailsI18n::Pluralization::OneOther.with_locale(:'zh-TW')
3
+ ::RailsI18n::Pluralization::Other.with_locale(:'zh-TW')
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/one_other'
1
+ require 'rails_i18n/common_pluralizations/other'
2
2
 
3
- ::RailsI18n::Pluralization::OneOther.with_locale(:'zh-YUE')
3
+ ::RailsI18n::Pluralization::Other.with_locale(:'zh-YUE')
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/one_other'
1
+ require 'rails_i18n/common_pluralizations/other'
2
2
 
3
- ::RailsI18n::Pluralization::OneOther.with_locale(:zh)
3
+ ::RailsI18n::Pluralization::Other.with_locale(:zh)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rails I18n Group
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n