rails-i18n 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,68 @@
1
+ ## 0.6.3 (2012-04-15)
2
+
3
+ - fixed English (India) translations
4
+ - fixed Hebrew pluralization
5
+
6
+ ## 0.6.2 (2012-03-28)
7
+
8
+ - added a patch for Ruby 1.8.7 support
9
+
10
+ ## 0.6.1 (2012-03-25)
11
+
12
+ - uses I18n.available_locales to load selected locales
13
+ - added transliteration rule for Ukrainian
14
+ - completed translations for Mongolian (mn)
15
+
16
+ ## 0.5.2 (2012-03-17)
17
+
18
+ - fixed Polish pluralization
19
+ - fixed Hungarian pluralization
20
+ - fixed Belarus pluralization
21
+ - completed Croatian translations
22
+
23
+ ## 0.5.1 (2012-03-01)
24
+
25
+ - pluralization and transliteration work out of the box
26
+ - added pluralization rules for non-English-like locales
27
+ - added transliteration rule for Russian
28
+ - removed translations for will_paginate gem
29
+ - brought activemodel and activerecord namespaces back which was removed in 21c8006
30
+
31
+ ## 0.4.0 (2012-02-10)
32
+
33
+ - removed `activerecord` namespace
34
+ - removed `support.select namespace` and updated `helpers.select` when present
35
+ - removed the `fun` directory
36
+ - added a pluralization rule for French (fr) locale
37
+ - replaced pluralization instances of `1` with `%{count}` in French (fr) locale
38
+ - modified `datetime.distance_in_words.almost_x_years` for Russion (ru) locale
39
+ - changed `number.currency.format.precision` from 3 to 0 for Japanese (ja) locale
40
+
41
+ ## 0.3.0 (2012-01-10)
42
+
43
+ - loads will_paginate/*.yml if the constant WillPaginate is defined
44
+ - filled in missing will_paginate translations for en-US/en-GB/ja/sk
45
+ - Friulian(fur) is ready for Rails 2 and 3
46
+ - corrected translation for 'too_short' (ro)
47
+ - added will_paginate translation (ro)
48
+
49
+ ## 0.2.1 (2011-12-27)
50
+
51
+ - filled in missing formatting/punctuation translations with their en-US versions
52
+ - added en-IN locale
53
+ - changed `time.formats.long` for Japanese (ja)
54
+
55
+ ## 0.2.0 (2011-12-04)
56
+
57
+ - moved :'activerecord.errors.messages.taken' to :'errors.messages.taken'
58
+ - moved :'activerecord.errors.messages.record_invalid' to :'errors.messages.record_invalid'
59
+ - moved Bulgarian (bg) transliterations into a new 'transliterations' folder
60
+ - aliased :'activerecord.errors.template' to :'errors.template'
61
+ - aliased :'activerecord.errors.messages' to :'errors.messages'
62
+ - updated interpolation syntax for Basque (eu)
63
+ - updated interpolation syntax for Peruvian Spanish (es-PE)
64
+ - deleted translations that are absent from en-US (with the exception of translations for pluralization)
65
+ - converted the Czech (cs) localization file to yml
66
+ - converted the Thai (th) localization file to yml
67
+ - removed the hard coded Buddhist era from the Thai (th) localization file
68
+ - fixed obvious indentation/scoping errors
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008-2011 Sven Fuchs and contributors (see https://github.com/svenfuchs/rails-i18n/contributors)
1
+ Copyright (c) 2008-2012 Sven Fuchs and contributors (see https://github.com/svenfuchs/rails-i18n/contributors)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -119,6 +119,7 @@ We will do the formality check and publish it as quick as we can.
119
119
 
120
120
  * [devise-i18n](https://github.com/tigrish/devise-i18n)
121
121
  * [will-paginate-i18n](https://github.com/tigrish/will-paginate-i18n)
122
+ * [i18n-country-translation](https://github.com/onomojo/i18n-country-translations) for translations of country names
122
123
 
123
124
  ## License
124
125
 
@@ -19,7 +19,7 @@ en-IN:
19
19
  - Jul
20
20
  - Aug
21
21
  - Sep
22
- - Okt
22
+ - Oct
23
23
  - Nov
24
24
  - Dec
25
25
  day_names:
@@ -31,9 +31,9 @@ en-IN:
31
31
  - Friday
32
32
  - Saturday
33
33
  formats:
34
- default: ! '%d %B %Y'
35
- long: ! '%A, %d %B %Y'
36
- short: ! '%d.%m.%Y'
34
+ default: ! '%Y-%m-%d'
35
+ long: ! '%B %d, %Y'
36
+ short: ! '%b %d'
37
37
  month_names:
38
38
  -
39
39
  - January
@@ -49,115 +49,119 @@ en-IN:
49
49
  - November
50
50
  - December
51
51
  order:
52
- - :day
53
- - :month
54
52
  - :year
53
+ - :month
54
+ - :day
55
55
  datetime:
56
56
  distance_in_words:
57
57
  about_x_hours:
58
- one: sekitar satu jam
59
- other: sekitar %{count} jam
58
+ one: about 1 hour
59
+ other: about %{count} hours
60
60
  about_x_months:
61
- one: sekitar sebulan
62
- other: sekitar %{count} bulan
61
+ one: about 1 month
62
+ other: about %{count} months
63
63
  about_x_years:
64
- one: setahun
65
- other: noin %{count} tahun
64
+ one: about 1 year
65
+ other: about %{count} years
66
66
  almost_x_years:
67
- one: hampir setahun
68
- other: hampir %{count} tahun
69
- half_a_minute: setengah menit
67
+ one: almost 1 year
68
+ other: almost %{count} years
69
+ half_a_minute: half a minute
70
70
  less_than_x_minutes:
71
- one: kurang dari 1 menit
72
- other: kurang dari %{count} menit
73
- zero: kurang dari 1 menit
71
+ one: less than a minute
72
+ other: less than %{count} minutes
74
73
  less_than_x_seconds:
75
- one: kurang dari 1 detik
76
- other: kurang dari %{count} detik
77
- zero: kurang dari 1 detik
74
+ one: less than 1 second
75
+ other: less than %{count} seconds
78
76
  over_x_years:
79
- one: lebih dari setahun
80
- other: lebih dari %{count} tahun
77
+ one: over 1 year
78
+ other: over %{count} years
81
79
  x_days:
82
- one: sehari
83
- other: ! '%{count} hari'
80
+ one: 1 day
81
+ other: ! '%{count} days'
84
82
  x_minutes:
85
- one: satu menit
86
- other: ! '%{count} menit'
83
+ one: 1 minute
84
+ other: ! '%{count} minutes'
87
85
  x_months:
88
- one: sebulan
89
- other: ! '%{count} bulan'
86
+ one: 1 month
87
+ other: ! '%{count} months'
90
88
  x_seconds:
91
- one: satu detik
92
- other: ! '%{count} detik'
89
+ one: 1 second
90
+ other: ! '%{count} seconds'
93
91
  prompts:
94
- day: Hari
95
- hour: Jam
96
- minute: Menit
97
- month: Bulan
98
- second: Detik
99
- year: Tahun
92
+ day: Day
93
+ hour: Hour
94
+ minute: Minute
95
+ month: Month
96
+ second: Seconds
97
+ year: Year
100
98
  errors: &errors
101
99
  format: ! '%{attribute} %{message}'
102
100
  messages:
103
- accepted: harus diterima
104
- blank: tidak bisa kosong
105
- confirmation: tidak sesuai dengan konfirmasi
106
- empty: tidak bisa kosong
107
- equal_to: harus sama dengan %{count}
108
- even: harus genap
109
- exclusion: sudah digunakan
110
- greater_than: harus lebih besar dari %{count}
111
- greater_than_or_equal_to: harus sama atau lebih besar dari %{count}
112
- inclusion: tidak termasuk
113
- invalid: tidak valid
114
- less_than: harus lebih kecil dari %{count}
115
- less_than_or_equal_to: harus sama atau lebih kecil dari %{count}
116
- not_a_number: bukan angka
101
+ accepted: must be accepted
102
+ blank: can't be blank
103
+ confirmation: doesn't match confirmation
104
+ empty: can't be empty
105
+ equal_to: must be equal to %{count}
106
+ even: must be even
107
+ exclusion: is reserved
108
+ greater_than: must be greater than %{count}
109
+ greater_than_or_equal_to: must be greater than or equal to %{count}
110
+ inclusion: is not included in the list
111
+ invalid: is invalid
112
+ less_than: must be less than %{count}
113
+ less_than_or_equal_to: must be less than or equal to %{count}
114
+ not_a_number: is not a number
117
115
  not_an_integer: must be an integer
118
- odd: harus ganjil
119
- record_invalid: ! 'Verifikasi gagal: %{errors}'
120
- taken: sudah digunakan
121
- too_long: terlalu panjang (maksimum %{count} karakter)
122
- too_short: terlalu pendek (minimum %{count} karakter)
123
- wrong_length: jumlah karakter salah (seharusnya %{count} karakter)
116
+ odd: must be odd
117
+ record_invalid: ! 'Validation failed: %{errors}'
118
+ taken: has already been taken
119
+ too_long:
120
+ one: is too long (maximum is 1 character)
121
+ other: is too long (maximum is %{count} characters)
122
+ too_short:
123
+ one: is too short (minimum is 1 character)
124
+ other: is too short (minimum is %{count} characters)
125
+ wrong_length:
126
+ one: is the wrong length (should be 1 character)
127
+ other: is the wrong length (should be %{count} characters)
124
128
  template:
125
- body: ! 'Ada masalah dengan field berikut:'
129
+ body: ! 'There were problems with the following fields:'
126
130
  header:
127
- one: 1 kesalahan mengakibatkan %{model} ini tidak bisa disimpan
128
- other: ! '%{count} kesalahan mengakibatkan %{model} ini tidak bisa disimpan'
131
+ one: 1 error prohibited this %{model} from being saved
132
+ other: ! '%{count} errors prohibited this %{model} from being saved'
129
133
  helpers:
130
134
  select:
131
- prompt: Silahkan pilih
135
+ prompt: Please select
132
136
  submit:
133
- create: Buat %{model}
134
- submit: Simpan %{model}
137
+ create: Create %{model}
138
+ submit: Save %{model}
135
139
  update: Update %{model}
136
140
  number:
137
141
  currency:
138
142
  format:
139
- delimiter: .
143
+ delimiter: ! ','
140
144
  format: ! '%u%n'
141
145
  precision: 2
142
- separator: ! ','
146
+ separator: .
143
147
  significant: false
144
148
  strip_insignificant_zeros: false
145
- unit: Rp
149
+ unit:
146
150
  format:
147
- delimiter: .
151
+ delimiter: ! ','
148
152
  precision: 3
149
- separator: ! ','
153
+ separator: .
150
154
  significant: false
151
155
  strip_insignificant_zeros: false
152
156
  human:
153
157
  decimal_units:
154
158
  format: ! '%n %u'
155
159
  units:
156
- billion: Miliar
157
- million: Juta
158
- quadrillion: Quadriliun
159
- thousand: Ribu
160
- trillion: Triliun
160
+ billion: Billion
161
+ million: Million
162
+ quadrillion: Quadrillion
163
+ thousand: Thousand
164
+ trillion: Trillion
161
165
  unit: ''
162
166
  format:
163
167
  delimiter: ''
@@ -169,7 +173,7 @@ en-IN:
169
173
  units:
170
174
  byte:
171
175
  one: Byte
172
- other: Byte
176
+ other: Bytes
173
177
  gb: GB
174
178
  kb: KB
175
179
  mb: MB
@@ -182,15 +186,15 @@ en-IN:
182
186
  delimiter: ''
183
187
  support:
184
188
  array:
185
- last_word_connector: ! ', and'
189
+ last_word_connector: ! ', and '
186
190
  two_words_connector: ! ' and '
187
- words_connector: ! ','
191
+ words_connector: ! ', '
188
192
  time:
189
193
  am: am
190
194
  formats:
191
- default: ! '%a, %d %b %Y %H.%M.%S %z'
192
- long: ! '%d %B %Y %H.%M'
193
- short: ! '%d %b %H.%M'
195
+ default: ! '%a, %d %b %Y %H:%M:%S %z'
196
+ long: ! '%B %d, %Y %H:%M'
197
+ short: ! '%d %b %H:%M'
194
198
  pm: pm
195
199
  # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
196
200
  activemodel:
@@ -0,0 +1,25 @@
1
+ module RailsI18n
2
+ module Pluralization
3
+ module Hebrew
4
+ def self.rule
5
+ lambda do |n|
6
+ if n == 1
7
+ :one
8
+ elsif n == 2
9
+ :two
10
+ elsif n != 0 && n % 10 == 0
11
+ :many
12
+ else
13
+ :other
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
20
+
21
+ { :he => {
22
+ :i18n => {
23
+ :plural => {
24
+ :keys => [:one, :two, :many, :other],
25
+ :rule => RailsI18n::Pluralization::Hebrew.rule }}}}
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.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-28 00:00:00.000000000 Z
12
+ date: 2012-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &7186520 !ruby/object:Gem::Requirement
16
+ requirement: &8485580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7186520
24
+ version_requirements: *8485580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &7186000 !ruby/object:Gem::Requirement
27
+ requirement: &8428000 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *7186000
35
+ version_requirements: *8428000
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec-rails
38
- requirement: &7185460 !ruby/object:Gem::Requirement
38
+ requirement: &8426000 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,21 +43,21 @@ dependencies:
43
43
  version: 2.7.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *7185460
46
+ version_requirements: *8426000
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: i18n-spec
49
- requirement: &7184920 !ruby/object:Gem::Requirement
49
+ requirement: &8425520 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.1.1
54
+ version: '0.2'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *7184920
57
+ version_requirements: *8425520
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: spork
60
- requirement: &7184380 !ruby/object:Gem::Requirement
60
+ requirement: &8424860 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.0rc
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *7184380
68
+ version_requirements: *8424860
69
69
  description: A set of common locale data and translations to internationalize and/or
70
70
  localize your Rails applications.
71
71
  email: rails-i18n@googlegroups.com
@@ -227,6 +227,7 @@ files:
227
227
  - rails/pluralization/by.rb
228
228
  - rails/pluralization/naq.rb
229
229
  - rails/pluralization/ses.rb
230
+ - rails/pluralization/he.rb
230
231
  - rails/pluralization/th.rb
231
232
  - rails/pluralization/tzm.rb
232
233
  - rails/pluralization/fa.rb
@@ -247,6 +248,7 @@ files:
247
248
  - rails/transliteration/uk.rb
248
249
  - rails/transliteration/hu.yml
249
250
  - README.md
251
+ - CHANGELOG.md
250
252
  - MIT-LICENSE.txt
251
253
  homepage: http://github.com/svenfuchs/rails-i18n
252
254
  licenses: []