rails-i18n 4.0.3 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +2 -1
  4. data/lib/rails_i18n/common_pluralizations/east_slavic.rb +5 -4
  5. data/lib/rails_i18n/common_pluralizations/one_upto_two_other.rb +1 -1
  6. data/lib/rails_i18n/common_pluralizations/romanian.rb +1 -0
  7. data/rails/locale/af.yml +27 -29
  8. data/rails/locale/ar.yml +92 -91
  9. data/rails/locale/az.yml +37 -36
  10. data/rails/locale/be.yml +205 -0
  11. data/rails/locale/bg.yml +28 -27
  12. data/rails/locale/bn.yml +36 -35
  13. data/rails/locale/bs.yml +42 -41
  14. data/rails/locale/ca.yml +27 -26
  15. data/rails/locale/cs.yml +33 -32
  16. data/rails/locale/cy.yml +43 -42
  17. data/rails/locale/da.yml +30 -29
  18. data/rails/locale/de-AT.yml +40 -32
  19. data/rails/locale/de-CH.yml +38 -33
  20. data/rails/locale/de.yml +40 -35
  21. data/rails/locale/el.yml +28 -27
  22. data/rails/locale/en-AU.yml +29 -28
  23. data/rails/locale/en-CA.yml +29 -37
  24. data/rails/locale/en-GB.yml +29 -28
  25. data/rails/locale/en-IE.yml +29 -28
  26. data/rails/locale/en-IN.yml +29 -28
  27. data/rails/locale/en-NZ.yml +29 -28
  28. data/rails/locale/en-US.yml +32 -31
  29. data/rails/locale/en-ZA.yml +31 -30
  30. data/rails/locale/en.yml +32 -31
  31. data/rails/locale/eo.yml +29 -28
  32. data/rails/locale/es-419.yml +33 -41
  33. data/rails/locale/es-AR.yml +33 -32
  34. data/rails/locale/es-CL.yml +28 -27
  35. data/rails/locale/es-CO.yml +33 -32
  36. data/rails/locale/es-CR.yml +33 -32
  37. data/rails/locale/es-EC.yml +31 -30
  38. data/rails/locale/es-MX.yml +36 -35
  39. data/rails/locale/es-PA.yml +30 -29
  40. data/rails/locale/es-PE.yml +29 -28
  41. data/rails/locale/es-US.yml +33 -32
  42. data/rails/locale/es-VE.yml +33 -32
  43. data/rails/locale/es.yml +28 -27
  44. data/rails/locale/et.yml +32 -31
  45. data/rails/locale/eu.yml +42 -41
  46. data/rails/locale/fa.yml +30 -29
  47. data/rails/locale/fi.yml +28 -27
  48. data/rails/locale/fr-CA.yml +29 -28
  49. data/rails/locale/fr-CH.yml +28 -27
  50. data/rails/locale/fr.yml +128 -135
  51. data/rails/locale/gl.yml +33 -32
  52. data/rails/locale/he.yml +35 -34
  53. data/rails/locale/hi-IN.yml +36 -35
  54. data/rails/locale/hi.yml +38 -37
  55. data/rails/locale/hr.yml +45 -44
  56. data/rails/locale/hu.yml +28 -27
  57. data/rails/locale/id.yml +28 -27
  58. data/rails/locale/is.yml +29 -28
  59. data/rails/locale/it-CH.yml +28 -27
  60. data/rails/locale/it.yml +40 -39
  61. data/rails/locale/ja.yml +29 -28
  62. data/rails/locale/km.yml +46 -5
  63. data/rails/locale/kn.yml +39 -38
  64. data/rails/locale/ko.yml +30 -29
  65. data/rails/locale/lo.yml +70 -69
  66. data/rails/locale/lt.yml +44 -43
  67. data/rails/locale/lv.yml +35 -34
  68. data/rails/locale/mk.yml +33 -32
  69. data/rails/locale/mn.yml +51 -50
  70. data/rails/locale/ms.yml +25 -26
  71. data/rails/locale/nb.yml +30 -29
  72. data/rails/locale/ne.yml +39 -38
  73. data/rails/locale/nl.yml +39 -38
  74. data/rails/locale/nn.yml +29 -28
  75. data/rails/locale/or.yml +40 -39
  76. data/rails/locale/pl.yml +69 -50
  77. data/rails/locale/pt-BR.yml +37 -34
  78. data/rails/locale/pt.yml +29 -28
  79. data/rails/locale/rm.yml +47 -46
  80. data/rails/locale/ro.yml +34 -33
  81. data/rails/locale/ru.yml +47 -46
  82. data/rails/locale/sk.yml +36 -34
  83. data/rails/locale/sl.yml +32 -31
  84. data/rails/locale/sr.yml +45 -44
  85. data/rails/locale/sv.yml +28 -27
  86. data/rails/locale/sw.yml +25 -24
  87. data/rails/locale/ta.yml +43 -42
  88. data/rails/locale/th.yml +26 -25
  89. data/rails/locale/tl.yml +90 -115
  90. data/rails/locale/tr.yml +44 -43
  91. data/rails/locale/tt.yml +215 -0
  92. data/rails/locale/uk.yml +43 -42
  93. data/rails/locale/ur.yml +48 -46
  94. data/rails/locale/uz.yml +60 -59
  95. data/rails/locale/vi.yml +30 -29
  96. data/rails/locale/wo.yml +29 -28
  97. data/rails/locale/zh-CN.yml +37 -36
  98. data/rails/locale/zh-HK.yml +51 -50
  99. data/rails/locale/zh-TW.yml +39 -38
  100. data/rails/locale/zh-YUE.yml +49 -48
  101. data/rails/pluralization/ar.rb +1 -0
  102. data/rails/pluralization/br.rb +1 -0
  103. data/rails/pluralization/gv.rb +1 -0
  104. data/rails/pluralization/hsb.rb +1 -0
  105. data/rails/pluralization/lag.rb +1 -0
  106. data/rails/pluralization/lt.rb +1 -0
  107. data/rails/pluralization/lv.rb +1 -0
  108. data/rails/pluralization/mk.rb +1 -0
  109. data/rails/pluralization/mt.rb +1 -0
  110. data/rails/pluralization/pl.rb +1 -0
  111. data/rails/pluralization/sl.rb +1 -0
  112. data/rails/transliteration/ru.rb +2 -0
  113. data/rails/transliteration/uk.rb +3 -1
  114. metadata +5 -9
@@ -1,15 +1,16 @@
1
+ ---
1
2
  zh-YUE:
2
3
  date:
3
4
  abbr_day_names:
4
- -
5
- -
6
- -
7
- -
8
- -
9
- -
10
- -
5
+ - 周日
6
+ - 周一
7
+ - 周二
8
+ - 周三
9
+ - 周四
10
+ - 周五
11
+ - 周六
11
12
  abbr_month_names:
12
- -
13
+ -
13
14
  - 1月
14
15
  - 2月
15
16
  - 3月
@@ -31,11 +32,11 @@ zh-YUE:
31
32
  - 星期五
32
33
  - 星期六
33
34
  formats:
34
- default: ! '%Y-%m-%d'
35
- long: ! '%Y年%b%d日'
36
- short: ! '%b%d日'
35
+ default: "%Y-%m-%d"
36
+ long: "%Y年%b%d日"
37
+ short: "%b%d日"
37
38
  month_names:
38
- -
39
+ -
39
40
  - 一月
40
41
  - 二月
41
42
  - 三月
@@ -78,16 +79,16 @@ zh-YUE:
78
79
  other: 超過%{count}年
79
80
  x_days:
80
81
  one: 一日
81
- other: ! '%{count}日'
82
+ other: "%{count}日"
82
83
  x_minutes:
83
84
  one: 一分鐘
84
- other: ! '%{count}分鐘'
85
+ other: "%{count}分鐘"
85
86
  x_months:
86
87
  one: 一個月
87
- other: ! '%{count}個月'
88
+ other: "%{count}個月"
88
89
  x_seconds:
89
90
  one: 一秒
90
- other: ! '%{count}秒'
91
+ other: "%{count}秒"
91
92
  prompts:
92
93
  day: 日
93
94
  hour: 點
@@ -96,30 +97,30 @@ zh-YUE:
96
97
  second: 秒
97
98
  year: 年
98
99
  errors:
99
- format: ! '%{message}'
100
+ format: "%{message}"
100
101
  messages:
101
102
  accepted: 一定要接受%{attribute}
102
- blank: ! '%{attribute}唔可以空白'
103
- present: ! '%{attribute}要空白'
104
- confirmation: ! '%{attribute}唔夾'
105
- empty: ! '%{attribute}唔可以漏空'
106
- equal_to: ! '%{attribute}要係%{count}'
107
- even: ! '%{attribute}要係雙數'
108
- exclusion: ! '%{attribute}唔用得'
109
- greater_than: ! '%{attribute}要大過%{count}'
110
- greater_than_or_equal_to: ! '%{attribute}要大過或者等於%{count}'
111
- inclusion: ! '%{attribute}唔喺表入面'
112
- invalid: ! '%{attribute}無效'
113
- less_than: ! '%{attribute}要細過%{count}'
114
- less_than_or_equal_to: ! '%{attribute}要細過或者等於%{count}'
115
- not_a_number: ! '%{attribute}唔係一個數'
116
- not_an_integer: ! '%{attribute}要係整數'
117
- odd: ! '%{attribute}要係單數'
118
- record_invalid: ! '%{attribute}有問題︰%{errors}'
103
+ blank: "%{attribute}唔可以空白"
104
+ present: "%{attribute}要空白"
105
+ confirmation: "%{attribute}唔夾"
106
+ empty: "%{attribute}唔可以漏空"
107
+ equal_to: "%{attribute}要係%{count}"
108
+ even: "%{attribute}要係雙數"
109
+ exclusion: "%{attribute}唔用得"
110
+ greater_than: "%{attribute}要大過%{count}"
111
+ greater_than_or_equal_to: "%{attribute}要大過或者等於%{count}"
112
+ inclusion: "%{attribute}唔喺表入面"
113
+ invalid: "%{attribute}無效"
114
+ less_than: "%{attribute}要細過%{count}"
115
+ less_than_or_equal_to: "%{attribute}要細過或者等於%{count}"
116
+ not_a_number: "%{attribute}唔係一個數"
117
+ not_an_integer: "%{attribute}要係整數"
118
+ odd: "%{attribute}要係單數"
119
+ record_invalid: "%{attribute}有問題︰%{errors}"
119
120
  restrict_dependent_destroy:
120
121
  one: 唔可以刪除,因為%{record}要用佢
121
122
  many: 唔可以刪除,因為%{record}要用佢
122
- taken: ! '%{attribute}已經用過'
123
+ taken: "%{attribute}已經用過"
123
124
  too_long:
124
125
  one: 太長(最多1個字)
125
126
  other: 太長(最多%{count}個字)
@@ -129,7 +130,7 @@ zh-YUE:
129
130
  wrong_length:
130
131
  one: 唔啱字數 (要係1個字)
131
132
  other: 唔啱字數 (要係%{count}個字)
132
- other_than: ! '%{attribute}唔可以係%{count}'
133
+ other_than: "%{attribute}唔可以係%{count}"
133
134
  template:
134
135
  body: 呢啲有問題︰
135
136
  header:
@@ -145,22 +146,22 @@ zh-YUE:
145
146
  number:
146
147
  currency:
147
148
  format:
148
- delimiter: ! ','
149
- format: ! '%u %n'
149
+ delimiter: ","
150
+ format: "%u %n"
150
151
  precision: 2
151
- separator: .
152
+ separator: "."
152
153
  significant: false
153
154
  strip_insignificant_zeros: false
154
155
  unit: HK$
155
156
  format:
156
- delimiter: ! ','
157
+ delimiter: ","
157
158
  precision: 3
158
- separator: .
159
+ separator: "."
159
160
  significant: false
160
161
  strip_insignificant_zeros: false
161
162
  human:
162
163
  decimal_units:
163
- format: ! '%n %u'
164
+ format: "%n %u"
164
165
  units:
165
166
  billion: 十億
166
167
  million: 百萬
@@ -174,7 +175,7 @@ zh-YUE:
174
175
  significant: false
175
176
  strip_insignificant_zeros: false
176
177
  storage_units:
177
- format: ! '%n %u'
178
+ format: "%n %u"
178
179
  units:
179
180
  byte:
180
181
  one: Byte
@@ -186,7 +187,7 @@ zh-YUE:
186
187
  percentage:
187
188
  format:
188
189
  delimiter: ''
189
- format: '%n%'
190
+ format: "%n%"
190
191
  precision:
191
192
  format:
192
193
  delimiter: ''
@@ -194,11 +195,11 @@ zh-YUE:
194
195
  array:
195
196
  last_word_connector: 同
196
197
  two_words_connector: 同
197
- words_connector: 、
198
+ words_connector: ""
198
199
  time:
199
200
  am: 上晝
200
201
  formats:
201
- default: ! '%Y年%b%d號 %A %H:%M:%S %Z'
202
- long: ! '%Y年%b%d號 %H:%M'
203
- short: ! '%b%d號 %H:%M'
202
+ default: "%Y年%b%d號 %A %H:%M:%S %Z"
203
+ long: "%Y年%b%d號 %H:%M"
204
+ short: "%b%d號 %H:%M"
204
205
  pm: 下晝
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Arabic
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  mod100 = n % 100
7
8
 
8
9
  if n == 0
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Breton
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  mod10 = n % 10
7
8
  mod100 = n % 100
8
9
 
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Manx
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  if [1, 2].include?(n % 10) || n % 20 == 0
7
8
  :one
8
9
  else
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module UpperSorbian
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  mod100 = n % 100
7
8
 
8
9
  if mod100 == 1
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Langi
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  if n == 0
7
8
  :zero
8
9
  elsif n > 0 && n < 2
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Lithuanian
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  mod10 = n % 10
7
8
  mod100 = n % 100
8
9
 
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Latvian
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  if n % 10 == 1 && n % 100 != 11
7
8
  :one
8
9
  else
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Macedonian
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  if n % 10 == 1 && n != 11
7
8
  :one
8
9
  else
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Maltese
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  mod100 = n % 100
7
8
 
8
9
  if n == 1
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Polish
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  mod10 = n % 10
7
8
  mod100 = n % 100
8
9
 
@@ -3,6 +3,7 @@ module RailsI18n
3
3
  module Slovenian
4
4
  def self.rule
5
5
  lambda do |n|
6
+ n ||= 0
6
7
  mod100 = n % 100
7
8
 
8
9
  if mod100 == 1
@@ -9,6 +9,8 @@ module RailsI18n
9
9
  class << self
10
10
  def rule
11
11
  lambda do |string|
12
+ next '' unless string
13
+
12
14
  chars = string.scan(%r{#{multi_keys.join '|'}|\w|.})
13
15
 
14
16
  result = ""
@@ -6,6 +6,8 @@ module RailsI18n
6
6
  class << self
7
7
  def rule
8
8
  lambda do |string|
9
+ next '' unless string
10
+
9
11
  string.gsub(/./) do |char|
10
12
  # Regexp.last_match is local to the thread and method scope
11
13
  # of the method that did the pattern match.
@@ -91,7 +93,7 @@ module RailsI18n
91
93
  def downcased_regexp
92
94
  @downcased_regexp ||= /[а-яґєії]/
93
95
  end
94
-
96
+
95
97
  # apostrophe can be inside a word
96
98
  def letter?(symbol)
97
99
  symbol =~ letter_regexp
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: 4.0.3
4
+ version: 4.0.4
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: 2014-09-03 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -84,9 +84,6 @@ dependencies:
84
84
  name: i18n-tasks
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.3'
90
87
  - - "~>"
91
88
  - !ruby/object:Gem::Version
92
89
  version: 0.3.6
@@ -94,9 +91,6 @@ dependencies:
94
91
  prerelease: false
95
92
  version_requirements: !ruby/object:Gem::Requirement
96
93
  requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: '0.3'
100
94
  - - "~>"
101
95
  - !ruby/object:Gem::Version
102
96
  version: 0.3.6
@@ -125,6 +119,7 @@ files:
125
119
  - rails/locale/af.yml
126
120
  - rails/locale/ar.yml
127
121
  - rails/locale/az.yml
122
+ - rails/locale/be.yml
128
123
  - rails/locale/bg.yml
129
124
  - rails/locale/bn.yml
130
125
  - rails/locale/bs.yml
@@ -205,6 +200,7 @@ files:
205
200
  - rails/locale/th.yml
206
201
  - rails/locale/tl.yml
207
202
  - rails/locale/tr.yml
203
+ - rails/locale/tt.yml
208
204
  - rails/locale/uk.yml
209
205
  - rails/locale/ur.yml
210
206
  - rails/locale/uz.yml
@@ -375,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
371
  version: 1.3.5
376
372
  requirements: []
377
373
  rubyforge_project: "[none]"
378
- rubygems_version: 2.2.2
374
+ rubygems_version: 2.4.1
379
375
  signing_key:
380
376
  specification_version: 4
381
377
  summary: Common locale data and translations for Rails i18n.