rails-i18n 0.6.6 → 0.7.0

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.
@@ -56,37 +56,48 @@ ro:
56
56
  distance_in_words:
57
57
  about_x_hours:
58
58
  one: aproximativ o oră
59
+ few: aproximativ %{count} ore
59
60
  other: aproximativ %{count} ore
60
61
  about_x_months:
61
62
  one: aproximativ o lună
63
+ few: aproximativ %{count} luni
62
64
  other: aproximativ %{count} luni
63
65
  about_x_years:
64
66
  one: aproximativ un an
67
+ few: aproximativ %{count} ani
65
68
  other: aproximativ %{count} ani
66
69
  almost_x_years:
67
70
  one: aproape 1 an
71
+ few: aproape %{count} ani
68
72
  other: aproape %{count} ani
69
73
  half_a_minute: jumătate de minut
70
74
  less_than_x_minutes:
71
75
  one: mai puțin de un minut
76
+ few: mai puțin de %{count} minute
72
77
  other: mai puțin de %{count} minute
73
78
  less_than_x_seconds:
74
79
  one: mai puțin de o secundă
80
+ few: mai puțin de %{count} secunde
75
81
  other: mai puțin de %{count} secunde
76
82
  over_x_years:
77
83
  one: mai mult de un an
84
+ few: mai mult de %{count} ani
78
85
  other: mai mult de %{count} ani
79
86
  x_days:
80
87
  one: 1 zi
88
+ few: ! '%{count} zile'
81
89
  other: ! '%{count} zile'
82
90
  x_minutes:
83
91
  one: 1 minut
92
+ few: ! '%{count} minute'
84
93
  other: ! '%{count} minute'
85
94
  x_months:
86
95
  one: 1 lună
96
+ few: ! '%{count} luni'
87
97
  other: ! '%{count} luni'
88
98
  x_seconds:
89
99
  one: 1 secundă
100
+ few: ! '%{count} secunde'
90
101
  other: ! '%{count} secunde'
91
102
  prompts:
92
103
  day: Ziua
@@ -123,6 +134,7 @@ ro:
123
134
  body: ! 'Încearcă să corectezi urmatoarele câmpuri:'
124
135
  header:
125
136
  one: ! 'Nu am putut salva acest %{model}: o eroare'
137
+ few: ! 'Nu am putut salva acest %{model}: %{count} erori.'
126
138
  other: ! 'Nu am putut salva acest %{model}: %{count} erori.'
127
139
  helpers:
128
140
  select:
@@ -167,6 +179,7 @@ ro:
167
179
  units:
168
180
  byte:
169
181
  one: Byte
182
+ few: Bytes
170
183
  other: Bytes
171
184
  gb: GB
172
185
  kb: KB
@@ -178,6 +178,8 @@ sl:
178
178
  units:
179
179
  byte:
180
180
  one: Byte
181
+ two: Bytes
182
+ few: Bytes
181
183
  other: Bytes
182
184
  gb: GB
183
185
  kb: KB
@@ -55,42 +55,57 @@ sr:
55
55
  datetime:
56
56
  distance_in_words:
57
57
  about_x_hours:
58
+ one: око %{count} сат
58
59
  few: око %{count} сата
59
- one: око 1 сат
60
+ many: око %{count} сати
60
61
  other: око %{count} сати
61
62
  about_x_months:
63
+ one: око %{count} месец
62
64
  few: око %{count} месеца
63
- one: око 1 месец
65
+ many: око %{count} месеци
64
66
  other: око %{count} месеци
65
67
  about_x_years:
66
- one: око 1 године
68
+ one: око %{count} године
69
+ few: око %{count} године
70
+ many: око %{count} године
67
71
  other: око %{count} године
68
72
  half_a_minute: пола минуте
69
73
  less_than_x_minutes:
70
- one: мање од 1 минут
74
+ one: мање од %{count} минут
75
+ few: мање од %{count} минута
76
+ many: мање од %{count} минута
71
77
  other: мање од %{count} минута
72
78
  zero: мање од минута
73
79
  less_than_x_seconds:
74
80
  few: мање од %{count} секунде
75
- one: мање од 1 секунд
81
+ one: мање од %{count} секунд
82
+ many: мање од %{count} секунди
76
83
  other: мање од %{count} секунди
77
- zero: мање од 1 секунде
84
+ zero: мање од %{count} секунде
78
85
  over_x_years:
79
- one: преко 1 године
86
+ one: преко %{count} године
87
+ few: преко %{count} године
88
+ many: преко %{count} године
80
89
  other: преко %{count} године
81
90
  x_days:
82
- one: 1 дан
91
+ one: ! '%{count} дан'
92
+ few: ! '%{count} дана'
93
+ many: ! '%{count} дана'
83
94
  other: ! '%{count} дана'
84
95
  x_minutes:
85
- one: 1 минут
96
+ one: ! '%{count} минут'
97
+ few: ! '%{count} минута'
98
+ many: ! '%{count} минута'
86
99
  other: ! '%{count} минута'
87
100
  x_months:
101
+ one: ! '%{count} месец'
88
102
  few: ! '%{count} месеца'
89
- one: 1 месец
103
+ many: ! '%{count} месеци'
90
104
  other: ! '%{count} месеци'
91
105
  x_seconds:
106
+ one: ! '%{count} секунда'
92
107
  few: ! '%{count} секунде'
93
- one: 1 секунда
108
+ many: ! '%{count} секунди'
94
109
  other: ! '%{count} секунди'
95
110
  errors: &errors
96
111
  format: ! '%{attribute} %{message}'
@@ -117,8 +132,9 @@ sr:
117
132
  template:
118
133
  body: ! 'Молим Вас да проверите следећа поља:'
119
134
  header:
135
+ one: ! 'Нисам успео сачувати %{model}: %{count} грешка.'
120
136
  few: ! 'Нисам успео сачувати %{model}: %{count} грешке.'
121
- one: ! 'Нисам успео сачувати %{model}: 1 грешка.'
137
+ many: ! 'Нисам успео сачувати %{model}: %{count} грешки.'
122
138
  other: ! 'Нисам успео сачувати %{model}: %{count} грешки.'
123
139
  number:
124
140
  currency:
@@ -1,4 +1,4 @@
1
- sv-SE:
1
+ sv:
2
2
  date:
3
3
  abbr_day_names:
4
4
  - sön
@@ -197,13 +197,13 @@
197
197
  blank: ito ay hindi maaaring maging katutubo
198
198
  too_long:
199
199
  one: "ito ay masyadong mahaba (maximum ay %{count} character)"
200
- other:
200
+ other: "ito ay masyadong mahaba (maximum ay %{count} character)"
201
201
  too_short:
202
202
  one: "ito ay masyadong maikli (minimum ay %{count} character)"
203
- other:
203
+ other: "ito ay masyadong maikli (minimum ay %{count} character)"
204
204
  wrong_length:
205
205
  one: ito ay ang maling haba (ito ay dapat %{count} character eksaktong)
206
- other:
206
+ other: ito ay ang maling haba (ito ay dapat %{count} character eksaktong)
207
207
  not_a_number: ito ay hindi isang numero
208
208
  not_an_integer: dapat na isang integer
209
209
  greater_than: dapat na mas higit sa %{count}
@@ -0,0 +1,27 @@
1
+ module RailsI18n
2
+ module Pluralization
3
+ module UpperSorbian
4
+ def self.rule
5
+ lambda do |n|
6
+ mod100 = n % 100
7
+
8
+ if mod100 == 1
9
+ :one
10
+ elsif mod100 == 2
11
+ :two
12
+ elsif mod100 == 3 || mod100 == 4
13
+ :few
14
+ else
15
+ :other
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
21
+ end
22
+
23
+ { :hsb => {
24
+ :'i18n' => {
25
+ :plural => {
26
+ :keys => [:one, :two, :few, :other],
27
+ :rule => RailsI18n::Pluralization::UpperSorbian.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.6
4
+ version: 0.7.0
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-09-06 00:00:00.000000000 Z
12
+ date: 2012-10-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
@@ -32,49 +32,49 @@ dependencies:
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
- - - ! '>='
35
+ - - '='
36
36
  - !ruby/object:Gem::Version
37
- version: 3.0.0
37
+ version: 3.2.8
38
38
  type: :development
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
- - - ! '>='
43
+ - - '='
44
44
  - !ruby/object:Gem::Version
45
- version: 3.0.0
45
+ version: 3.2.8
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rspec-rails
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
- - - ! '>='
51
+ - - '='
52
52
  - !ruby/object:Gem::Version
53
- version: 2.7.0
53
+ version: 2.11.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  none: false
58
58
  requirements:
59
- - - ! '>='
59
+ - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.7.0
61
+ version: 2.11.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: i18n-spec
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
- - - ! '>='
67
+ - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.2.2
69
+ version: 0.3.0
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
- - - ! '>='
75
+ - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.2.2
77
+ version: 0.3.0
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: spork
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -125,8 +125,8 @@ files:
125
125
  - rails/locale/en-IN.yml
126
126
  - rails/locale/en-CA.yml
127
127
  - rails/locale/uk.yml
128
+ - rails/locale/bn.yml
128
129
  - rails/locale/fr-CA.yml
129
- - rails/locale/en-US.yml
130
130
  - rails/locale/ne.yml
131
131
  - rails/locale/sw.yml
132
132
  - rails/locale/id.yml
@@ -136,20 +136,18 @@ files:
136
136
  - rails/locale/lo.yml
137
137
  - rails/locale/en-GB.yml
138
138
  - rails/locale/fr-CH.yml
139
+ - rails/locale/pt.yml
139
140
  - rails/locale/de-AT.yml
140
141
  - rails/locale/da.yml
141
142
  - rails/locale/vi.yml
142
- - rails/locale/hsb.yml
143
143
  - rails/locale/fa.yml
144
144
  - rails/locale/kn.yml
145
145
  - rails/locale/tl.yml
146
- - rails/locale/gl-ES.yml
147
146
  - rails/locale/eu.yml
148
147
  - rails/locale/rm.yml
149
148
  - rails/locale/lv.yml
150
149
  - rails/locale/mk.yml
151
150
  - rails/locale/es-PE.yml
152
- - rails/locale/sv-SE.yml
153
151
  - rails/locale/ja.yml
154
152
  - rails/locale/es.yml
155
153
  - rails/locale/bg.yml
@@ -159,8 +157,8 @@ files:
159
157
  - rails/locale/de-CH.yml
160
158
  - rails/locale/he.yml
161
159
  - rails/locale/eo.yml
160
+ - rails/locale/sv.yml
162
161
  - rails/locale/sk.yml
163
- - rails/locale/pt-PT.yml
164
162
  - rails/locale/et.yml
165
163
  - rails/locale/fr.yml
166
164
  - rails/locale/de.yml
@@ -171,27 +169,24 @@ files:
171
169
  - rails/locale/es-VE.yml
172
170
  - rails/locale/is.yml
173
171
  - rails/locale/zh-TW.yml
174
- - rails/locale/sr-Latn.yml
175
172
  - rails/locale/hi-IN.yml
176
173
  - rails/locale/tr.yml
177
- - rails/locale/bn-IN.yml
178
- - rails/locale/fur.yml
179
174
  - rails/locale/ar.yml
180
175
  - rails/locale/fi.yml
181
176
  - rails/locale/es-CO.yml
182
- - rails/locale/gsw-CH.yml
183
177
  - rails/locale/zh-CN.yml
184
178
  - rails/locale/nb.yml
185
179
  - rails/locale/hu.yml
186
180
  - rails/locale/ca.yml
187
- - rails/locale/dsb.yml
188
181
  - rails/locale/cy.yml
189
182
  - rails/locale/hi.yml
190
183
  - rails/locale/uz.yml
191
184
  - rails/locale/es-MX.yml
192
185
  - rails/locale/az.yml
193
186
  - rails/locale/ko.yml
194
- - rails/locale/csb.yml
187
+ - rails/locale/gl.yml
188
+ - rails/locale/es-419.yml
189
+ - rails/pluralization/hsb.rb
195
190
  - rails/pluralization/nso.rb
196
191
  - rails/pluralization/smn.rb
197
192
  - rails/pluralization/ff.rb
@@ -1,210 +0,0 @@
1
- csb:
2
- date:
3
- abbr_day_names:
4
- - nie
5
- - pòn
6
- - wtó
7
- - str
8
- - czw
9
- - pią
10
- - sob
11
- abbr_month_names:
12
- -
13
- - stë
14
- - gro
15
- - str
16
- - łżë
17
- - môj
18
- - cze
19
- - lëp
20
- - zél
21
- - séw
22
- - ruj
23
- - lës
24
- - gòd
25
- day_names:
26
- - niedzela
27
- - pòniedzôłk
28
- - wtórk
29
- - strzoda
30
- - czwiôrtk
31
- - piątk
32
- - sobòta
33
- formats:
34
- default: ! '%d-%m-%Y'
35
- long: ! '%B %d, %Y'
36
- short: ! '%d %b'
37
- month_names:
38
- -
39
- - stëcznik
40
- - gromicznik
41
- - strëmiannik
42
- - łżëkwiôt
43
- - môj
44
- - czerwińc
45
- - lëpińc
46
- - zélnik
47
- - séwnik
48
- - rujan
49
- - lëstopadnik
50
- - gòdnik
51
- order:
52
- - :day
53
- - :month
54
- - :year
55
- datetime:
56
- distance_in_words:
57
- about_x_hours:
58
- few: kòle %{count} gòdzën
59
- one: kòle gòdzënë
60
- other: kòle %{count} gòdzën
61
- about_x_months:
62
- few: kòle %{count} miesąców
63
- one: kòle miesąca
64
- other: kòle %{count} miesąców
65
- about_x_years:
66
- few: kòle %{count} lat
67
- one: kòle rokù
68
- other: kòle %{count} lat
69
- almost_x_years:
70
- few: wnet %{count} lata
71
- one: wnet rok
72
- other: wnet %{count} lat
73
- half_a_minute: pół minutë
74
- less_than_x_minutes:
75
- few: mni jak %{count} minutë
76
- one: mni jak minuta
77
- other: mni jak %{count} minutów
78
- less_than_x_seconds:
79
- few: mni jak %{count} sekùndë
80
- one: mni jak sekùnda
81
- other: mni jak %{count} sekùndów
82
- over_x_years:
83
- few: wicy jak %{count} lata
84
- one: wicy jak rok
85
- other: wicy jak %{count} lat
86
- x_days:
87
- few: ! '%{count} dni'
88
- one: 1 dzéń
89
- other: ! '%{count} dniów'
90
- x_minutes:
91
- few: ! '%{count} minutë'
92
- one: 1 minuta
93
- other: ! '%{count} minutów'
94
- x_months:
95
- few: ! '%{count} miesiące'
96
- one: 1 miesąc
97
- other: ! '%{count} miesięców'
98
- x_seconds:
99
- few: ! '%{count} sekùndë'
100
- one: 1 sekùnda
101
- other: ! '%{count} sekùndów'
102
- prompts:
103
- day: Dzéń
104
- hour: Gòdzëna
105
- minute: Minuta
106
- month: Miesiąc
107
- second: Sekunda
108
- year: Rok
109
- errors: &errors
110
- format: ! '%{attribute} %{message}'
111
- messages:
112
- accepted: mùszi bëc zaakceptowóné
113
- blank: ni mòże bëc pùsté
114
- confirmation: nie zgòdzô sã z pòcwierdzenim
115
- empty: ni mòżé bëc pùsté
116
- equal_to: mùszi bëc równe %{count}
117
- even: mùszé bëc parzësté
118
- exclusion: je zarezerwowóné
119
- greater_than: mùszi bëc wikszé òd %{count}
120
- greater_than_or_equal_to: mùszi bëc wikszé abò równé %{count}
121
- inclusion: ni ma na lësce dopùszczalnëch wôrtnotów
122
- invalid: je zmiłkòwé
123
- less_than: mùszi bëc mniszé òd %{count}
124
- less_than_or_equal_to: mùszi bëc mniszé abò równé %{count}
125
- not_a_number: nie je lëczbą
126
- not_an_integer: muszi bëc całowną lëczbą
127
- odd: mùszi bëc nieparzësté
128
- record_invalid: ! 'Negatiwné sprôwdzenié pòprawnoscë: %{errors}'
129
- taken: je ju zajãté
130
- too_long: je za dłëdżé (maksymalno %{count} znaków)
131
- too_short: je za krótczé (przënômni %{count} znaków)
132
- wrong_length: mô lëchą długòtã (bë mùsza miec %{count} znaków)
133
- template:
134
- body: ! 'Fele tikają sã nëch pól:'
135
- header:
136
- one: ! '%{model} nie òstôł zachòwóny przez jedną felã'
137
- other: ! '%{model} nie òstôł zachòwóny przez %{count} felów'
138
- helpers:
139
- select:
140
- prompt: Proszã wëbrac
141
- submit:
142
- create: Ùsôdzë %{model}
143
- submit: Zapiszë %{model}
144
- update: Aktualizëjë %{model}
145
- number:
146
- currency:
147
- format:
148
- delimiter: ! ' '
149
- format: ! '%u %n'
150
- precision: 2
151
- separator: ! ','
152
- significant: false
153
- strip_insignificant_zeros: true
154
- unit: PLN
155
- format:
156
- delimiter: ! ' '
157
- precision: 3
158
- separator: ! ','
159
- significant: false
160
- strip_insignificant_zeros: false
161
- human:
162
- decimal_units:
163
- format: ! '%n %u'
164
- units:
165
- billion: Miliard
166
- million: Milión
167
- quadrillion: Biliard
168
- thousand: Tësąc
169
- trillion: Bilión
170
- unit: ''
171
- format:
172
- delimiter: ''
173
- precision: 3
174
- significant: true
175
- strip_insignificant_zeros: true
176
- storage_units:
177
- format: ! '%n %u'
178
- units:
179
- byte:
180
- one: bajt
181
- other: bajtë
182
- gb: GB
183
- kb: KB
184
- mb: MB
185
- tb: TB
186
- percentage:
187
- format:
188
- delimiter: ''
189
- precision:
190
- format:
191
- delimiter: ''
192
- support:
193
- array:
194
- last_word_connector: ! ' a téż '
195
- two_words_connector: ! ' ë '
196
- words_connector: ! ', '
197
- time:
198
- am: przed pôłnim
199
- formats:
200
- default: ! '%a, %d %b %Y %H:%M:%S %z'
201
- long: ! '%B %d, %Y %H:%M'
202
- short: ! '%d %b %H:%M'
203
- pm: pò pôłnim
204
- # remove these aliases after 'activemodel' and 'activerecord' namespaces are removed from Rails repository
205
- activemodel:
206
- errors:
207
- <<: *errors
208
- activerecord:
209
- errors:
210
- <<: *errors