rails-i18n 0.1.6 → 0.1.7
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.
- data/README.md +2 -2
- data/rails/locale/bs.yml +5 -5
- data/rails/locale/cs.rb +1 -0
- data/rails/locale/de-AT.yml +55 -18
- data/rails/locale/de-CH.yml +55 -18
- data/rails/locale/el.yml +4 -3
- data/rails/locale/mn.yml +1 -1
- metadata +5 -6
- data/rails/locale/bs.pluralization.rb +0 -7
data/README.md
CHANGED
@@ -35,13 +35,13 @@ Available locales are:
|
|
35
35
|
|
36
36
|
Note that all locale files are not yet ready for Rails 3. Currently, following locales are ready for Rails 2 and 3:
|
37
37
|
|
38
|
-
> ar, bg, bs, ca, cs, cy, da, de, el, en-AU, en-GB, en-US, eo, es, es-AR, es-CL, es-CO, es-MX, et,
|
38
|
+
> ar, bg, bs, ca, cs, cy, da, de, de-AT, de-CH, el, en-AU, en-GB, en-US, eo, es, es-AR, es-CL, es-CO, es-MX, et,
|
39
39
|
> eu, fa, fi, fr, fr-CA, fr-CH, gsw-CH, he, hi, hi-IN, hu, is, it, ja, kn, ko, lv, nb,
|
40
40
|
> nl, pl, pt-BR, pt-PT, ro, ru, sk, sv-SE, sw, th, uk, zh-CN, zh-TW
|
41
41
|
|
42
42
|
Not-yet-ready locales are:
|
43
43
|
|
44
|
-
> bn-IN,
|
44
|
+
> bn-IN, dsb, es-PE, fur, gl-ES, hr, hsb, id, lo, lt, mk, mn, nn, rm, sl, sr, sr-Latn, tr, vi
|
45
45
|
|
46
46
|
We always welcome your contributions!
|
47
47
|
|
data/rails/locale/bs.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Bosnia and Herzegovina (Bosnian) translations for rails
|
2
2
|
# by Armin Pašalić (armin [at] pasalic [dot] com [dot] ba, http://pasalic.com.ba)
|
3
3
|
|
4
|
-
# Please take a look at bs.
|
4
|
+
# Please take a look at /rails/pluralization/bs.rb for pluralization instructions.
|
5
5
|
|
6
6
|
bs:
|
7
7
|
date:
|
@@ -74,7 +74,7 @@ bs:
|
|
74
74
|
delimiter: "."
|
75
75
|
precision: 3
|
76
76
|
significant: false
|
77
|
-
strip_insignificant_zeros: true
|
77
|
+
strip_insignificant_zeros: true
|
78
78
|
currency:
|
79
79
|
format:
|
80
80
|
format: "%n%u"
|
@@ -95,7 +95,7 @@ bs:
|
|
95
95
|
delimiter: ","
|
96
96
|
precision: 0
|
97
97
|
significant: true
|
98
|
-
strip_insignificant_zeros: true
|
98
|
+
strip_insignificant_zeros: true
|
99
99
|
storage_units:
|
100
100
|
format: "%n %u"
|
101
101
|
units:
|
@@ -261,10 +261,10 @@ bs:
|
|
261
261
|
format: "%{attribute} %{message}"
|
262
262
|
|
263
263
|
# Custom common model tranlations
|
264
|
-
|
264
|
+
|
265
265
|
models:
|
266
266
|
user: "korisnik"
|
267
267
|
|
268
268
|
attributes:
|
269
269
|
user:
|
270
|
-
login: "prijava"
|
270
|
+
login: "prijava"
|
data/rails/locale/cs.rb
CHANGED
data/rails/locale/de-AT.yml
CHANGED
@@ -117,6 +117,8 @@ de-AT:
|
|
117
117
|
precision: 2
|
118
118
|
separator: ','
|
119
119
|
delimiter: '.'
|
120
|
+
significant: false
|
121
|
+
strip_insignificant_zeros: false
|
120
122
|
currency:
|
121
123
|
format:
|
122
124
|
unit: '€'
|
@@ -124,6 +126,8 @@ de-AT:
|
|
124
126
|
separator: '.'
|
125
127
|
delimiter: ','
|
126
128
|
precision: 2
|
129
|
+
significant: false
|
130
|
+
strip_insignificant_zeros: false
|
127
131
|
percentage:
|
128
132
|
format:
|
129
133
|
delimiter: ""
|
@@ -134,6 +138,8 @@ de-AT:
|
|
134
138
|
format:
|
135
139
|
delimiter: ""
|
136
140
|
precision: 1
|
141
|
+
significant: true
|
142
|
+
strip_insignificant_zeros: true
|
137
143
|
storage_units:
|
138
144
|
# Storage units output formatting.
|
139
145
|
# %u is the storage unit, %n is the number (default: 2 MB)
|
@@ -146,6 +152,19 @@ de-AT:
|
|
146
152
|
mb: "MB"
|
147
153
|
gb: "GB"
|
148
154
|
tb: "TB"
|
155
|
+
decimal_units:
|
156
|
+
format: "%n %u"
|
157
|
+
units:
|
158
|
+
unit: ""
|
159
|
+
thousand: Tausend
|
160
|
+
million: Millionen
|
161
|
+
billion:
|
162
|
+
one: Milliarde
|
163
|
+
others: Milliarden
|
164
|
+
trillion: Billionen
|
165
|
+
quadrillion:
|
166
|
+
one: Billiarde
|
167
|
+
others: Billiarden
|
149
168
|
|
150
169
|
support:
|
151
170
|
array:
|
@@ -162,6 +181,38 @@ de-AT:
|
|
162
181
|
one: "Konnte %{model} nicht speichern: ein Fehler."
|
163
182
|
other: "Konnte %{model} nicht speichern: %{count} Fehler."
|
164
183
|
body: "Bitte überprüfen Sie die folgenden Felder:"
|
184
|
+
helpers:
|
185
|
+
select:
|
186
|
+
prompt: "Bitte wählen"
|
187
|
+
|
188
|
+
submit:
|
189
|
+
create: '%{model} erstellen'
|
190
|
+
update: '%{model} aktualisieren'
|
191
|
+
submit: '%{model} speichern'
|
192
|
+
|
193
|
+
errors:
|
194
|
+
format: "%{attribute} %{message}"
|
195
|
+
|
196
|
+
messages: &errors_messages
|
197
|
+
inclusion: "ist kein gültiger Wert"
|
198
|
+
exclusion: "ist nicht verfügbar"
|
199
|
+
invalid: "ist nicht gültig"
|
200
|
+
confirmation: "stimmt nicht mit der Bestätigung überein"
|
201
|
+
accepted: "muss akzeptiert werden"
|
202
|
+
empty: "muss ausgefüllt werden"
|
203
|
+
blank: "muss ausgefüllt werden"
|
204
|
+
too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
|
205
|
+
too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
|
206
|
+
wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
|
207
|
+
not_a_number: "ist keine Zahl"
|
208
|
+
greater_than: "muss größer als %{count} sein"
|
209
|
+
greater_than_or_equal_to: "muss größer oder gleich %{count} sein"
|
210
|
+
equal_to: "muss genau %{count} sein"
|
211
|
+
less_than: "muss kleiner als %{count} sein"
|
212
|
+
less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
|
213
|
+
odd: "muss ungerade sein"
|
214
|
+
even: "muss gerade sein"
|
215
|
+
not_an_integer: "muss ganzzahlig sein"
|
165
216
|
|
166
217
|
activerecord:
|
167
218
|
errors:
|
@@ -172,23 +223,9 @@ de-AT:
|
|
172
223
|
body: "Bitte überprüfen Sie die folgenden Felder:"
|
173
224
|
|
174
225
|
messages:
|
175
|
-
inclusion: "ist kein gültiger Wert"
|
176
|
-
exclusion: "ist nicht verfügbar"
|
177
|
-
invalid: "ist nicht gültig"
|
178
|
-
confirmation: "stimmt nicht mit der Bestätigung überein"
|
179
|
-
accepted: "muss akzeptiert werden"
|
180
|
-
empty: "muss ausgefüllt werden"
|
181
|
-
blank: "muss ausgefüllt werden"
|
182
|
-
too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
|
183
|
-
too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
|
184
|
-
wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
|
185
226
|
taken: "ist bereits vergeben"
|
186
|
-
not_a_number: "ist keine Zahl"
|
187
|
-
greater_than: "muss größer als %{count} sein"
|
188
|
-
greater_than_or_equal_to: "muss größer oder gleich %{count} sein"
|
189
|
-
equal_to: "muss genau %{count} sein"
|
190
|
-
less_than: "muss kleiner als %{count} sein"
|
191
|
-
less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
|
192
|
-
odd: "muss ungerade sein"
|
193
|
-
even: "muss gerade sein"
|
194
227
|
record_invalid: "Gültigkeitsprüfung ist fehlgeschlagen: %{errors}"
|
228
|
+
<<: *errors_messages
|
229
|
+
|
230
|
+
full_messages:
|
231
|
+
format: "%{attribute} %{message}"
|
data/rails/locale/de-CH.yml
CHANGED
@@ -117,6 +117,8 @@ de-CH:
|
|
117
117
|
precision: 2
|
118
118
|
separator: '.'
|
119
119
|
delimiter: "'"
|
120
|
+
significant: false
|
121
|
+
strip_insignificant_zeros: false
|
120
122
|
currency:
|
121
123
|
format:
|
122
124
|
unit: 'SFr.'
|
@@ -124,6 +126,8 @@ de-CH:
|
|
124
126
|
separator: '.'
|
125
127
|
delimiter: "'"
|
126
128
|
precision: 2
|
129
|
+
significant: false
|
130
|
+
strip_insignificant_zeros: false
|
127
131
|
percentage:
|
128
132
|
format:
|
129
133
|
delimiter: ""
|
@@ -134,6 +138,8 @@ de-CH:
|
|
134
138
|
format:
|
135
139
|
delimiter: ""
|
136
140
|
precision: 1
|
141
|
+
significant: true
|
142
|
+
strip_insignificant_zeros: true
|
137
143
|
storage_units:
|
138
144
|
# Storage units output formatting.
|
139
145
|
# %u is the storage unit, %n is the number (default: 2 MB)
|
@@ -146,6 +152,19 @@ de-CH:
|
|
146
152
|
mb: "MB"
|
147
153
|
gb: "GB"
|
148
154
|
tb: "TB"
|
155
|
+
decimal_units:
|
156
|
+
format: "%n %u"
|
157
|
+
units:
|
158
|
+
unit: ""
|
159
|
+
thousand: Tausend
|
160
|
+
million: Millionen
|
161
|
+
billion:
|
162
|
+
one: Milliarde
|
163
|
+
others: Milliarden
|
164
|
+
trillion: Billionen
|
165
|
+
quadrillion:
|
166
|
+
one: Billiarde
|
167
|
+
others: Billiarden
|
149
168
|
|
150
169
|
support:
|
151
170
|
array:
|
@@ -162,6 +181,38 @@ de-CH:
|
|
162
181
|
one: "Konnte %{model} nicht speichern: ein Fehler."
|
163
182
|
other: "Konnte %{model} nicht speichern: %{count} Fehler."
|
164
183
|
body: "Bitte überprüfen Sie die folgenden Felder:"
|
184
|
+
helpers:
|
185
|
+
select:
|
186
|
+
prompt: "Bitte wählen"
|
187
|
+
|
188
|
+
submit:
|
189
|
+
create: '%{model} erstellen'
|
190
|
+
update: '%{model} aktualisieren'
|
191
|
+
submit: '%{model} speichern'
|
192
|
+
|
193
|
+
errors:
|
194
|
+
format: "%{attribute} %{message}"
|
195
|
+
|
196
|
+
messages: &errors_messages
|
197
|
+
inclusion: "ist kein gültiger Wert"
|
198
|
+
exclusion: "ist nicht verfügbar"
|
199
|
+
invalid: "ist nicht gültig"
|
200
|
+
confirmation: "stimmt nicht mit der Bestätigung überein"
|
201
|
+
accepted: "muss akzeptiert werden"
|
202
|
+
empty: "muss ausgefüllt werden"
|
203
|
+
blank: "muss ausgefüllt werden"
|
204
|
+
too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
|
205
|
+
too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
|
206
|
+
wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
|
207
|
+
not_a_number: "ist keine Zahl"
|
208
|
+
greater_than: "muss grösser als %{count} sein"
|
209
|
+
greater_than_or_equal_to: "muss grösser oder gleich %{count} sein"
|
210
|
+
equal_to: "muss genau %{count} sein"
|
211
|
+
less_than: "muss kleiner als %{count} sein"
|
212
|
+
less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
|
213
|
+
odd: "muss ungerade sein"
|
214
|
+
even: "muss gerade sein"
|
215
|
+
not_an_integer: "muss ganzzahlig sein"
|
165
216
|
|
166
217
|
activerecord:
|
167
218
|
errors:
|
@@ -172,23 +223,9 @@ de-CH:
|
|
172
223
|
body: "Bitte überprüfen Sie die folgenden Felder:"
|
173
224
|
|
174
225
|
messages:
|
175
|
-
inclusion: "ist kein gültiger Wert"
|
176
|
-
exclusion: "ist nicht verfügbar"
|
177
|
-
invalid: "ist nicht gültig"
|
178
|
-
confirmation: "stimmt nicht mit der Bestätigung überein"
|
179
|
-
accepted: "muss akzeptiert werden"
|
180
|
-
empty: "muss ausgefüllt werden"
|
181
|
-
blank: "muss ausgefüllt werden"
|
182
|
-
too_long: "ist zu lang (nicht mehr als %{count} Zeichen)"
|
183
|
-
too_short: "ist zu kurz (nicht weniger als %{count} Zeichen)"
|
184
|
-
wrong_length: "hat die falsche Länge (muss genau %{count} Zeichen haben)"
|
185
226
|
taken: "ist bereits vergeben"
|
186
|
-
not_a_number: "ist keine Zahl"
|
187
|
-
greater_than: "muss grösser als %{count} sein"
|
188
|
-
greater_than_or_equal_to: "muss grösser oder gleich %{count} sein"
|
189
|
-
equal_to: "muss genau %{count} sein"
|
190
|
-
less_than: "muss kleiner als %{count} sein"
|
191
|
-
less_than_or_equal_to: "muss kleiner oder gleich %{count} sein"
|
192
|
-
odd: "muss ungerade sein"
|
193
|
-
even: "muss gerade sein"
|
194
227
|
record_invalid: "Gültigkeitsprüfung ist fehlgeschlagen: %{errors}"
|
228
|
+
<<: *errors_messages
|
229
|
+
|
230
|
+
full_messages:
|
231
|
+
format: "%{attribute} %{message}"
|
data/rails/locale/el.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Greek translations for Ruby on Rails
|
2
2
|
# contributors:
|
3
3
|
# - Tsutomu Kuroda - t-kuroda@oiax.jp - Rails 3 update
|
4
|
+
# - Diamantopoulos Nikos - nolamesa@yahoo.gr
|
4
5
|
|
5
6
|
el:
|
6
7
|
date:
|
@@ -90,8 +91,8 @@ el:
|
|
90
91
|
one: "περίπου μία ώρα"
|
91
92
|
other: "περίπου %{count} ώρες"
|
92
93
|
x_days:
|
93
|
-
one: "1
|
94
|
-
other: "%{count}
|
94
|
+
one: "1 μέρα"
|
95
|
+
other: "%{count} μέρες"
|
95
96
|
about_x_months:
|
96
97
|
one: "περίπου ένα μήνα"
|
97
98
|
other: "περίπου %{count} μήνες"
|
@@ -215,7 +216,7 @@ el:
|
|
215
216
|
errors:
|
216
217
|
template:
|
217
218
|
header:
|
218
|
-
one: "1 λάθος
|
219
|
+
one: "1 λάθος εμπόδισε αυτό το %{model} να αποθηκευθεί."
|
219
220
|
other: "%{count} λάθη εμπόδισαν αυτό το %{model} να αποθηκευθεί."
|
220
221
|
body: "Υπήρξαν προβλήματα με τα ακόλουθα πεδία:"
|
221
222
|
messages:
|
data/rails/locale/mn.yml
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Rails I18n Group
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-09-02 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: i18n
|
@@ -50,7 +50,6 @@ files:
|
|
50
50
|
- rails/locale/sr-Latn.yml
|
51
51
|
- rails/locale/lv.yml
|
52
52
|
- rails/locale/es-CO.yml
|
53
|
-
- rails/locale/bs.pluralization.rb
|
54
53
|
- rails/locale/pl.yml
|
55
54
|
- rails/locale/nl.yml
|
56
55
|
- rails/locale/de.yml
|
@@ -149,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
148
|
requirements: []
|
150
149
|
|
151
150
|
rubyforge_project: "[none]"
|
152
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.10
|
153
152
|
signing_key:
|
154
153
|
specification_version: 3
|
155
154
|
summary: Common locale data and translations for Rails i18n.
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Bosnia and Herzegovina (Bosnian) pluralization rule implementation for rails
|
2
|
-
# Picked up from https://github.com/svenfuchs/i18n/blob/master/test/test_data/locales/plurals.rb
|
3
|
-
#
|
4
|
-
# In order for this to work, add folowing to application.rb
|
5
|
-
# I18n::Backend::Simple.include(I18n::Backend::Pluralization)
|
6
|
-
|
7
|
-
{ :bs => { :i18n => { :plural => { :rule => lambda { |n| n % 10 == 1 && n % 100 != 11 ? :one : [2, 3, 4].include?(n % 10) && ![12, 13, 14].include?(n % 100) ? :few : n % 10 == 0 || [5, 6, 7, 8, 9].include?(n % 10) || [11, 12, 13, 14].include?(n % 100) ? :many : :other } } } } }
|