rails-i18n 0.7.0 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,12 @@
1
+ ## 0.7.1 (2012-11-24)
2
+ - Update Peruvian Spanish (es-PE) translation
3
+ - Fix pluralization rules for OneTwoOther
4
+ - Fix pluralization rules for Hungarian (hu)
5
+ - Update Japanese (ja) translation
6
+ - Fix and complete translations of Macedonian (mk), Cyrillic Serbian (sr) and Serbo-Croatian (scr)
7
+
1
8
  ## 0.7.0 (2012-10-23)
2
- - Remove Swiss Gemarn (gsw-CH) as a duplicate of de-CH
9
+ - Remove Swiss German (gsw-CH) as a duplicate of de-CH
3
10
  - Remove en-US
4
11
  - Remove region code from bn-IN, gl-ES, pt-PT and sv-SE
5
12
  - Move iso-639-2 locales into their own directory
data/README.md CHANGED
@@ -55,12 +55,12 @@ Available locales are:
55
55
  Following locales are complete:
56
56
 
57
57
  > az, bg, bs, ca, csb, da, de, de-AT, de-CH, el, en-AU, en-CA, en-GB, en-IN, en-US, eo, es, es-AR, es-CL, es-CO, es-419, es-MX, es-VE, et,
58
- > eu, fa, fi, fr, fr-CA, fr-CH, fur, gsw-CH, he, hi, hi-IN, hr, hu, is, it, ja, kn, ko, lv, mn, nb, ne
59
- > nl, pt-BR, pt-PT, ru, sk, sv-SE, sw, th, tl, uk, vi, wo, zh-CN, zh-TW
58
+ > eu, fa, fi, fr, fr-CA, fr-CH, fur, gsw-CH, he, hi, hi-IN, hr, hu, is, it, ja, kn, ko, lv, mk, mn, nb, ne
59
+ > nl, pt-BR, pt-PT, ru, sk, sr, scr, sv-SE, sw, th, tl, uk, vi, wo, zh-CN, zh-TW
60
60
 
61
61
  Following locales have some missing translations or pluralizations:
62
62
 
63
- > ar, bn-IN, cs, cy, dsb, es-PE, gl-ES, hsb, id, lo, lt, mk, nn, pl, rm, ro, sl, sr, scr
63
+ > ar, bn-IN, cs, cy, dsb, es-PE, gl-ES, hsb, id, lo, lt, nn, pl, rm, ro, sl
64
64
 
65
65
  We always welcome your contributions!
66
66
 
@@ -95,7 +95,7 @@ Before committing and pushing your changes, test the integrity of your locale fi
95
95
 
96
96
  Make sure you have included all translations with:
97
97
 
98
- rake i18n-spec:completeness rails/locale/en-US.yml rails/locale/YOUR_NEW_LOCALE.yml
98
+ rake i18n-spec:completeness rails/locale/en.yml rails/locale/YOUR_NEW_LOCALE.yml
99
99
 
100
100
  You can list all complete locales:
101
101
 
@@ -120,6 +120,8 @@ We will do the formality check and publish it as quick as we can.
120
120
  * [devise-i18n](https://github.com/tigrish/devise-i18n)
121
121
  * [will-paginate-i18n](https://github.com/tigrish/will-paginate-i18n)
122
122
  * [i18n-country-translation](https://github.com/onomojo/i18n-country-translations) for translations of country names
123
+ * [i18n-spec](https://github.com/tigrish/i18n-spec) for RSpec matchers to test your locale files
124
+ * [iso](https://github.com/tigrish/iso) for the list of valid language/region codes and their translations
123
125
 
124
126
  ## License
125
127
 
@@ -5,15 +5,13 @@ module RailsI18n
5
5
  module Pluralization
6
6
  module OneTwoOther
7
7
  def self.rule
8
- def self.rule
9
- lambda do |n|
10
- if n == 1
11
- :one
12
- elsif n == 2
13
- :two
14
- else
15
- :other
16
- end
8
+ lambda do |n|
9
+ if n == 1
10
+ :one
11
+ elsif n == 2
12
+ :two
13
+ else
14
+ :other
17
15
  end
18
16
  end
19
17
  end
@@ -86,9 +86,12 @@ es-PE:
86
86
  one: 1 segundo
87
87
  other: ! '%{count} segundos'
88
88
  prompts:
89
+ day: Día
89
90
  hour: Hora
90
91
  minute: Minuto
91
- second: Segundo
92
+ month: Mes
93
+ second: Segundos
94
+ year: Año
92
95
  errors: &errors
93
96
  format: ! '%{attribute} %{message}'
94
97
  messages:
@@ -123,7 +123,7 @@ ja:
123
123
  body: 次の項目を確認してください。
124
124
  header:
125
125
  one: ! '%{model}にエラーが発生しました。'
126
- other: ! '%{model}に%{count}つのエラーが発生しました。'
126
+ other: ! '%{model}に%{count}個のエラーが発生しました。'
127
127
  helpers:
128
128
  select:
129
129
  prompt: 選択してください。
@@ -55,43 +55,46 @@ mk:
55
55
  datetime:
56
56
  distance_in_words:
57
57
  about_x_hours:
58
- few: околу %{count} часа
59
- one: околу 1 час
58
+ one: околу %{count} час
60
59
  other: околу %{count} часа
61
60
  about_x_months:
62
- few: околу %{count} месеци
63
- one: околу 1 месец
61
+ one: околу %{count} месец
64
62
  other: околу %{count} месеци
65
63
  about_x_years:
66
- one: околу 1 година
64
+ one: околу %{count} година
67
65
  other: околу %{count} години
66
+ almost_x_years:
67
+ one: скоро %{count} година
68
+ other: скоро %{count} години
68
69
  half_a_minute: пола минута
69
70
  less_than_x_minutes:
70
- one: помалку од 1 минута
71
+ one: помалку од %{count} минута
71
72
  other: помалку од %{count} минути
72
- zero: помалку од минута
73
73
  less_than_x_seconds:
74
- few: помалку од %{count} секунди
75
- one: помалку од 1 секунда
74
+ one: помалку од %{count} секунда
76
75
  other: помалку од %{count} секунди
77
- zero: помалку од секунда
78
76
  over_x_years:
79
- one: над 1 година
77
+ one: над %{count} година
80
78
  other: над %{count} години
81
79
  x_days:
82
- one: 1 ден
80
+ one: ! '%{count} ден'
83
81
  other: ! '%{count} денови'
84
82
  x_minutes:
85
- one: 1 минута
83
+ one: ! '%{count} минута'
86
84
  other: ! '%{count} минути'
87
85
  x_months:
88
- few: ! '%{count} месеци'
89
- one: 1 месец
86
+ one: ! '%{count} месец'
90
87
  other: ! '%{count} месеци'
91
88
  x_seconds:
92
- few: ! '%{count} секунди'
93
- one: 1 секунда
89
+ one: ! '%{count} секунда'
94
90
  other: ! '%{count} секунди'
91
+ prompts:
92
+ day: Ден
93
+ hour: Час
94
+ minute: Минута
95
+ month: Месец
96
+ second: Секунди
97
+ year: Година
95
98
  errors: &errors
96
99
  format: ! '%{attribute} %{message}'
97
100
  messages:
@@ -109,17 +112,31 @@ mk:
109
112
  less_than: мора да биде помало од %{count}
110
113
  less_than_or_equal_to: мора да биде помало или еднакво на %{count}
111
114
  not_a_number: ! 'не е број '
115
+ not_an_integer: не е цел број
112
116
  odd: мора да биде непарно
117
+ record_invalid: ! 'неуспешна валидација: %{errors}'
113
118
  taken: е зафатено
114
- too_long: е предолг (не повеќе од %{count} карактери)
115
- too_short: е прекраток (не помалку од %{count} карактери)
116
- wrong_length: несоодветна должина (мора да имате %{count} карактери)
119
+ too_long:
120
+ one: е предолг (не повеќе од %{count} карактер)
121
+ other: е предолг (не повеќе од %{count} карактери)
122
+ too_short:
123
+ one: е прекраток (не помалку од %{count} карактер)
124
+ other: е прекраток (не помалку од %{count} карактери)
125
+ wrong_length:
126
+ one: несоодветна должина (мора да имате %{count} карактер)
127
+ other: несоодветна должина (мора да имате %{count} карактери)
117
128
  template:
118
129
  body: ! 'Ве молиме проверете ги следните полиња:'
119
130
  header:
120
- few: ! 'Не успеав да го зачувам %{model}: %{count} грешки.'
121
- one: ! 'Не успеав да го зачувам %{model}: 1 грешка.'
131
+ one: ! 'Не успеав да го зачувам %{model}: %{count} грешка.'
122
132
  other: ! 'Не успеав да го зачувам %{model}: %{count} грешки.'
133
+ helpers:
134
+ select:
135
+ prompt: Одберете
136
+ submit:
137
+ create: Креира %{model}
138
+ submit: Зачувај %{model}
139
+ update: Измени %{model}
123
140
  number:
124
141
  currency:
125
142
  format:
@@ -140,6 +157,11 @@ mk:
140
157
  decimal_units:
141
158
  format: ! '%n %u'
142
159
  units:
160
+ billion: илјади
161
+ million: милјони
162
+ quadrillion: милјарди
163
+ thousand: трилјони
164
+ trillion: квадрилјони
143
165
  unit: ''
144
166
  format:
145
167
  delimiter: ''
@@ -148,12 +170,25 @@ mk:
148
170
  strip_insignificant_zeros: true
149
171
  storage_units:
150
172
  format: ! '%n %u'
173
+ units:
174
+ byte:
175
+ one: бајт
176
+ other: бајти
177
+ gb: GB
178
+ kb: KB
179
+ mb: MB
180
+ tb: TB
151
181
  percentage:
152
182
  format:
153
183
  delimiter: ''
154
184
  precision:
155
185
  format:
156
186
  delimiter: ''
187
+ support:
188
+ array:
189
+ last_word_connector: ! ', и '
190
+ two_words_connector: ! ' и '
191
+ words_connector: ! ', '
157
192
  time:
158
193
  am: АМ
159
194
  formats:
@@ -67,26 +67,29 @@ sr:
67
67
  about_x_years:
68
68
  one: око %{count} године
69
69
  few: око %{count} године
70
- many: око %{count} године
71
- other: око %{count} године
70
+ many: око %{count} година
71
+ other: око %{count} година
72
+ almost_x_years:
73
+ one: скоро %{count} година
74
+ few: скоро %{count} године
75
+ many: скоро %{count} година
76
+ other: скоро %{count} година
72
77
  half_a_minute: пола минуте
73
78
  less_than_x_minutes:
74
79
  one: мање од %{count} минут
75
80
  few: мање од %{count} минута
76
81
  many: мање од %{count} минута
77
82
  other: мање од %{count} минута
78
- zero: мање од минута
79
83
  less_than_x_seconds:
80
84
  few: мање од %{count} секунде
81
85
  one: мање од %{count} секунд
82
86
  many: мање од %{count} секунди
83
87
  other: мање од %{count} секунди
84
- zero: мање од %{count} секунде
85
88
  over_x_years:
86
89
  one: преко %{count} године
87
90
  few: преко %{count} године
88
- many: преко %{count} године
89
- other: преко %{count} године
91
+ many: преко %{count} година
92
+ other: преко %{count} година
90
93
  x_days:
91
94
  one: ! '%{count} дан'
92
95
  few: ! '%{count} дана'
@@ -107,28 +110,49 @@ sr:
107
110
  few: ! '%{count} секунде'
108
111
  many: ! '%{count} секунди'
109
112
  other: ! '%{count} секунди'
113
+ prompts:
114
+ day: Дан
115
+ hour: Сат
116
+ minute: Минут
117
+ month: Месец
118
+ second: Секунд
119
+ year: Година
110
120
  errors: &errors
111
121
  format: ! '%{attribute} %{message}'
112
122
  messages:
113
123
  accepted: мора бити прихваћено
114
- blank: мора бити дат
115
- confirmation: се не слаже са својом потврдом
116
- empty: мора бити дат
117
- equal_to: мора бити једнако %{count}
118
- even: мора бити парно
119
- exclusion: није доступно
120
- greater_than: мора бити веће од %{count}
121
- greater_than_or_equal_to: мора бити веће или једнако %{count}
124
+ blank: не сме бити празан
125
+ confirmation: се не слаже са потврдом
126
+ empty: не сме бити празан
127
+ equal_to: мора бити једнак %{count}
128
+ even: мора бити паран
129
+ exclusion: је резервисан
130
+ greater_than: мора бити већи од %{count}
131
+ greater_than_or_equal_to: мора бити већи или једнак %{count}
122
132
  inclusion: није у листи
123
133
  invalid: није исправан
124
- less_than: мора бити мање од %{count}
125
- less_than_or_equal_to: мора бити мање или једнако %{count}
134
+ less_than: мора бити мањи од %{count}
135
+ less_than_or_equal_to: мора бити мањи или једнак %{count}
126
136
  not_a_number: није број
127
- odd: мора бити непарно
128
- taken: је заузето
129
- too_long: је предугачак (не више од %{count} карактера)
130
- too_short: је прекратак (не мање од %{count} карактера)
131
- wrong_length: није одговарајуће дужине (мора имати %{count} карактера)
137
+ not_an_integer: није цео број
138
+ odd: мора бити непаран
139
+ record_invalid: ! 'Валидација није успела: %{errors}'
140
+ taken: је већ заузет
141
+ too_long:
142
+ one: је предугачак (максимум је %{count} знак)
143
+ few: је предугачак (максимум је %{count} знака)
144
+ many: је предугачак (максимум је %{count} знакова)
145
+ other: је предугачак (максимум је %{count} знакова)
146
+ too_short:
147
+ one: је прекратак (минимум је %{count} знак)
148
+ few: је прекратак (минимум је %{count} знака)
149
+ many: је прекратак (минимум је %{count} знакова)
150
+ other: је прекратак (минимум је %{count} знакова)
151
+ wrong_length:
152
+ one: није одговарајуће дужине (треба бити %{count} знак)
153
+ few: није одговарајуће дужине (треба бити %{count} знака)
154
+ many: није одговарајуће дужине (треба бити %{count} знакова)
155
+ other: није одговарајуће дужине (треба бити %{count} знакова)
132
156
  template:
133
157
  body: ! 'Молим Вас да проверите следећа поља:'
134
158
  header:
@@ -136,6 +160,13 @@ sr:
136
160
  few: ! 'Нисам успео сачувати %{model}: %{count} грешке.'
137
161
  many: ! 'Нисам успео сачувати %{model}: %{count} грешки.'
138
162
  other: ! 'Нисам успео сачувати %{model}: %{count} грешки.'
163
+ helpers:
164
+ select:
165
+ prompt: Изаберите
166
+ submit:
167
+ create: Направи %{model}
168
+ submit: Сачувај %{model}
169
+ update: Измени %{model}
139
170
  number:
140
171
  currency:
141
172
  format:
@@ -156,6 +187,11 @@ sr:
156
187
  decimal_units:
157
188
  format: ! '%n %u'
158
189
  units:
190
+ thousand: Хиљаду
191
+ million: Милион
192
+ billion: Милијарда
193
+ trillion: Трилион
194
+ quadrillion: Квадрилион
159
195
  unit: ''
160
196
  format:
161
197
  delimiter: ''
@@ -164,12 +200,27 @@ sr:
164
200
  strip_insignificant_zeros: true
165
201
  storage_units:
166
202
  format: ! '%n %u'
203
+ units:
204
+ byte:
205
+ one: бајт
206
+ few: бајта
207
+ many: бајтова
208
+ other: бајтова
209
+ gb: ГБ
210
+ kb: КБ
211
+ mb: МБ
212
+ tb: ТБ
167
213
  percentage:
168
214
  format:
169
215
  delimiter: ''
170
216
  precision:
171
217
  format:
172
218
  delimiter: ''
219
+ support:
220
+ array:
221
+ last_word_connector: ! ', и '
222
+ two_words_connector: ! ' и '
223
+ words_connector: ! ', '
173
224
  time:
174
225
  am: АМ
175
226
  formats:
@@ -1,3 +1,3 @@
1
- require 'rails_i18n/common_pluralizations/only_one'
1
+ require 'rails_i18n/common_pluralizations/other'
2
2
 
3
- ::RailsI18n::Pluralization::OnlyOne.with_locale(:hu)
3
+ ::RailsI18n::Pluralization::Other.with_locale(:hu)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-23 00:00:00.000000000 Z
12
+ date: 2012-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 3.2.8
37
+ version: 3.2.9
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 3.2.8
45
+ version: 3.2.9
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rspec-rails
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: 2.11.0
53
+ version: 2.12.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.11.0
61
+ version: 2.12.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: i18n-spec
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +82,7 @@ dependencies:
82
82
  requirements:
83
83
  - - '='
84
84
  - !ruby/object:Gem::Version
85
- version: 1.0.0rc2
85
+ version: 1.0.0rc3
86
86
  type: :development
87
87
  prerelease: false
88
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -90,7 +90,7 @@ dependencies:
90
90
  requirements:
91
91
  - - '='
92
92
  - !ruby/object:Gem::Version
93
- version: 1.0.0rc2
93
+ version: 1.0.0rc3
94
94
  description: A set of common locale data and translations to internationalize and/or
95
95
  localize your Rails applications.
96
96
  email: rails-i18n@googlegroups.com
@@ -100,7 +100,6 @@ extra_rdoc_files: []
100
100
  files:
101
101
  - lib/rails_i18n/railtie.rb
102
102
  - lib/rails_i18n/unicode.rb
103
- - lib/rails_i18n/common_pluralizations/only_one.rb
104
103
  - lib/rails_i18n/common_pluralizations/east_slavic.rb
105
104
  - lib/rails_i18n/common_pluralizations/west_slavic.rb
106
105
  - lib/rails_i18n/common_pluralizations/one_two_other.rb
@@ -300,7 +299,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
300
299
  version: 1.3.5
301
300
  requirements: []
302
301
  rubyforge_project: ! '[none]'
303
- rubygems_version: 1.8.23
302
+ rubygems_version: 1.8.24
304
303
  signing_key:
305
304
  specification_version: 3
306
305
  summary: Common locale data and translations for Rails i18n.
@@ -1,18 +0,0 @@
1
- # Used in Hungarian
2
- module RailsI18n
3
- module Pluralization
4
- module OnlyOne
5
- def self.rule
6
- Proc.new { :one }
7
- end
8
-
9
- def self.with_locale(locale)
10
- { locale => {
11
- :'i18n' => {
12
- :plural => {
13
- :keys => [:one],
14
- :rule => rule }}}}
15
- end
16
- end
17
- end
18
- end