dm-validations-i18n 0.3.2 → 0.3.3
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/Gemfile.lock +7 -14
- data/VERSION +1 -1
- data/dm-validations-i18n.gemspec +3 -2
- data/locale/en.yml +22 -22
- data/locale/it.yml +22 -22
- data/locale/ja.yml +22 -22
- data/locale/ru.yml +22 -0
- data/locale/zh-CN.yml +1 -1
- data/locale/zh-TW.yml +1 -1
- data/test/test_dm-validations-i18n.rb +1 -0
- metadata +5 -4
data/Gemfile.lock
CHANGED
|
@@ -1,32 +1,25 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: http://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
addressable (2.2.
|
|
5
|
-
configuration (1.2.0)
|
|
4
|
+
addressable (2.2.6)
|
|
6
5
|
dm-core (1.1.0)
|
|
7
6
|
addressable (~> 2.2.4)
|
|
8
7
|
dm-validations (1.1.0)
|
|
9
8
|
dm-core (~> 1.1.0)
|
|
10
9
|
git (1.2.5)
|
|
11
|
-
guard (0.
|
|
12
|
-
open_gem (~> 1.4.2)
|
|
10
|
+
guard (0.5.1)
|
|
13
11
|
thor (~> 0.14.6)
|
|
14
|
-
guard-test (0.
|
|
15
|
-
guard (
|
|
16
|
-
test-unit (~> 2.
|
|
12
|
+
guard-test (0.3.0)
|
|
13
|
+
guard (>= 0.2.2)
|
|
14
|
+
test-unit (~> 2.2)
|
|
17
15
|
jeweler (1.5.2)
|
|
18
16
|
bundler (~> 1.0.0)
|
|
19
17
|
git (>= 1.2.5)
|
|
20
18
|
rake
|
|
21
|
-
|
|
22
|
-
configuration (>= 0.0.5)
|
|
23
|
-
rake (>= 0.8.1)
|
|
24
|
-
open_gem (1.4.2)
|
|
25
|
-
launchy (~> 0.3.5)
|
|
26
|
-
rake (0.8.7)
|
|
19
|
+
rake (0.9.2)
|
|
27
20
|
rcov (0.9.9)
|
|
28
21
|
shoulda (2.11.3)
|
|
29
|
-
test-unit (2.
|
|
22
|
+
test-unit (2.3.0)
|
|
30
23
|
thor (0.14.6)
|
|
31
24
|
|
|
32
25
|
PLATFORMS
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.3
|
data/dm-validations-i18n.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{dm-validations-i18n}
|
|
8
|
-
s.version = "0.3.
|
|
8
|
+
s.version = "0.3.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Masaki Komagata"]
|
|
12
|
-
s.date = %q{2011-
|
|
12
|
+
s.date = %q{2011-07-23}
|
|
13
13
|
s.description = %q{Localize error messages in dm-validations.}
|
|
14
14
|
s.email = %q{komagata@gmail.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -30,6 +30,7 @@ Gem::Specification.new do |s|
|
|
|
30
30
|
"locale/en.yml",
|
|
31
31
|
"locale/it.yml",
|
|
32
32
|
"locale/ja.yml",
|
|
33
|
+
"locale/ru.yml",
|
|
33
34
|
"locale/zh-CN.yml",
|
|
34
35
|
"locale/zh-TW.yml",
|
|
35
36
|
"test/helper.rb",
|
data/locale/en.yml
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
absent: %s must be absent
|
|
2
|
-
inclusion: %s must be one of %s
|
|
3
|
-
invalid: %s has an invalid format
|
|
4
|
-
confirmation: %s does not match the confirmation
|
|
5
|
-
accepted: %s is not accepted
|
|
6
|
-
'nil': %s must not be nil
|
|
7
|
-
blank: %s must not be blank
|
|
8
|
-
length_between: %s must be between %s and %s characters long
|
|
9
|
-
too_long: %s must be at most %s characters long
|
|
10
|
-
too_short: %s must be at least %s characters long
|
|
11
|
-
wrong_length: %s must be %s characters long
|
|
12
|
-
taken: %s is already taken
|
|
13
|
-
not_a_number: %s must be a number
|
|
14
|
-
not_an_integer: %s must be an integer
|
|
15
|
-
greater_than: %s must be greater than %s
|
|
16
|
-
greater_than_or_equal_to: %s must be greater than or equal to %s
|
|
17
|
-
equal_to: %s must be equal to %s
|
|
18
|
-
not_equal_to: %s must not be equal to %s
|
|
19
|
-
less_than: %s must be less than %s
|
|
20
|
-
less_than_or_equal_to: %s must be less than or equal to %s
|
|
21
|
-
value_between: %s must be between %s and %s
|
|
22
|
-
primitive: %s must be of type %s
|
|
1
|
+
absent: "%s must be absent"
|
|
2
|
+
inclusion: "%s must be one of %s"
|
|
3
|
+
invalid: "%s has an invalid format"
|
|
4
|
+
confirmation: "%s does not match the confirmation"
|
|
5
|
+
accepted: "%s is not accepted"
|
|
6
|
+
'nil': "%s must not be nil"
|
|
7
|
+
blank: "%s must not be blank"
|
|
8
|
+
length_between: "%s must be between %s and %s characters long"
|
|
9
|
+
too_long: "%s must be at most %s characters long"
|
|
10
|
+
too_short: "%s must be at least %s characters long"
|
|
11
|
+
wrong_length: "%s must be %s characters long"
|
|
12
|
+
taken: "%s is already taken"
|
|
13
|
+
not_a_number: "%s must be a number"
|
|
14
|
+
not_an_integer: "%s must be an integer"
|
|
15
|
+
greater_than: "%s must be greater than %s"
|
|
16
|
+
greater_than_or_equal_to: "%s must be greater than or equal to %s"
|
|
17
|
+
equal_to: "%s must be equal to %s"
|
|
18
|
+
not_equal_to: "%s must not be equal to %s"
|
|
19
|
+
less_than: "%s must be less than %s"
|
|
20
|
+
less_than_or_equal_to: "%s must be less than or equal to %s"
|
|
21
|
+
value_between: "%s must be between %s and %s"
|
|
22
|
+
primitive: "%s must be of type %s"
|
data/locale/it.yml
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
absent: %s non deve essere presente
|
|
2
|
-
inclusion:
|
|
3
|
-
invalid: %s ha un formato non valido
|
|
4
|
-
confirmation: %s non è confermata
|
|
5
|
-
accepted: %s non è accettato/a
|
|
6
|
-
'nil': %s non deve essere nullo
|
|
7
|
-
blank: %s non deve essere vuoto
|
|
8
|
-
length_between: %s deve essere tra %s e %s caratteri
|
|
9
|
-
too_long: %s deve essere massimo %s caratteri
|
|
10
|
-
too_short: %s deve essere minimo %s caratteri
|
|
11
|
-
wrong_length: %s deve essere %s caratteri
|
|
12
|
-
taken: %s è già in uso
|
|
13
|
-
not_a_number: %s deve essere un numero
|
|
14
|
-
not_an_integer: %s deve essere un numero intero
|
|
15
|
-
greater_than: %s deve essere più grande di %s
|
|
16
|
-
greater_than_or_equal_to: %s deve essere più grande o uguale a %s
|
|
17
|
-
equal_to: %s deve essere uguale a %s
|
|
18
|
-
not_equal_to: %s non deve essere uguale a %s
|
|
19
|
-
less_than: %s deve essere minore di %s
|
|
20
|
-
less_than_or_equal_to: %s deve essere minore o uguale a %s
|
|
21
|
-
value_between: %s deve essere tra %s e %s
|
|
22
|
-
primitive: %s deve essere di tipo %s
|
|
1
|
+
absent: "%s non deve essere presente"
|
|
2
|
+
inclusion: '%s deve essere un valore tra questi: "%s'
|
|
3
|
+
invalid: "%s ha un formato non valido"
|
|
4
|
+
confirmation: "%s non è confermata"
|
|
5
|
+
accepted: "%s non è accettato/a"
|
|
6
|
+
'nil': "%s non deve essere nullo"
|
|
7
|
+
blank: "%s non deve essere vuoto"
|
|
8
|
+
length_between: "%s deve essere tra %s e %s caratteri"
|
|
9
|
+
too_long: "%s deve essere massimo %s caratteri"
|
|
10
|
+
too_short: "%s deve essere minimo %s caratteri"
|
|
11
|
+
wrong_length: "%s deve essere %s caratteri"
|
|
12
|
+
taken: "%s è già in uso"
|
|
13
|
+
not_a_number: "%s deve essere un numero"
|
|
14
|
+
not_an_integer: "%s deve essere un numero intero"
|
|
15
|
+
greater_than: "%s deve essere più grande di %s"
|
|
16
|
+
greater_than_or_equal_to: "%s deve essere più grande o uguale a %s"
|
|
17
|
+
equal_to: "%s deve essere uguale a %s"
|
|
18
|
+
not_equal_to: "%s non deve essere uguale a %s"
|
|
19
|
+
less_than: "%s deve essere minore di %s"
|
|
20
|
+
less_than_or_equal_to: "%s deve essere minore o uguale a %s"
|
|
21
|
+
value_between: "%s deve essere tra %s e %s"
|
|
22
|
+
primitive: "%s deve essere di tipo %s"
|
data/locale/ja.yml
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
absent: %sがありません。
|
|
2
|
-
inclusion: %sは%sにありません。
|
|
3
|
-
invalid: %sは不正な値です。
|
|
4
|
-
confirmation: %sが一致しません。
|
|
5
|
-
accepted: %sは受諾できません。
|
|
6
|
-
nil: %sはnil以外を入力してください。
|
|
7
|
-
blank: %sを入力してください。
|
|
8
|
-
length_between: %sは%s文字以上%s文字以内で入力してください。
|
|
9
|
-
too_long: %sは%s文字以内で入力してください。
|
|
10
|
-
too_short: %sは%s文字以上で入力してください。
|
|
11
|
-
wrong_length: %sは%s文字で入力してください。
|
|
12
|
-
taken: %sは既に存在します。
|
|
13
|
-
not_a_number: %sは数字で入力してください。
|
|
14
|
-
not_an_integer: %sは整数で入力してください。
|
|
15
|
-
greater_than: %sは%sより大きい値にしてください。
|
|
16
|
-
greater_than_or_equal_to: %sは%s以上の値にしてください。
|
|
17
|
-
equal_to: %sは%sにしてください。
|
|
18
|
-
not_equal_to: %sは%s以外を入力してください。
|
|
19
|
-
less_than: %sは%sより小さい値にしてください。
|
|
20
|
-
less_than_or_equal_to: %sは%s以下の値にしてください。
|
|
21
|
-
value_between: %sは%s以上%s以下の値にしてください。
|
|
22
|
-
primitive: %sは%s型にしてください。
|
|
1
|
+
absent: "%sがありません。"
|
|
2
|
+
inclusion: "%sは%sにありません。"
|
|
3
|
+
invalid: "%sは不正な値です。"
|
|
4
|
+
confirmation: "%sが一致しません。"
|
|
5
|
+
accepted: "%sは受諾できません。"
|
|
6
|
+
nil: "%sはnil以外を入力してください。"
|
|
7
|
+
blank: "%sを入力してください。"
|
|
8
|
+
length_between: "%sは%s文字以上%s文字以内で入力してください。"
|
|
9
|
+
too_long: "%sは%s文字以内で入力してください。"
|
|
10
|
+
too_short: "%sは%s文字以上で入力してください。"
|
|
11
|
+
wrong_length: "%sは%s文字で入力してください。"
|
|
12
|
+
taken: "%sは既に存在します。"
|
|
13
|
+
not_a_number: "%sは数字で入力してください。"
|
|
14
|
+
not_an_integer: "%sは整数で入力してください。"
|
|
15
|
+
greater_than: "%sは%sより大きい値にしてください。"
|
|
16
|
+
greater_than_or_equal_to: "%sは%s以上の値にしてください。"
|
|
17
|
+
equal_to: "%sは%sにしてください。"
|
|
18
|
+
not_equal_to: "%sは%s以外を入力してください。"
|
|
19
|
+
less_than: "%sは%sより小さい値にしてください。"
|
|
20
|
+
less_than_or_equal_to: "%sは%s以下の値にしてください。"
|
|
21
|
+
value_between: "%sは%s以上%s以下の値にしてください。"
|
|
22
|
+
primitive: "%sは%s型にしてください。"
|
data/locale/ru.yml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
absent: "%s должно отсутствовать"
|
|
2
|
+
inclusion: "%s должен быть одним из %s"
|
|
3
|
+
invalid: "%s имеет не правильный формат"
|
|
4
|
+
confirmation: "%s не соответствует подтверждению"
|
|
5
|
+
accepted: "%s не принят"
|
|
6
|
+
'nil': "%s не должен быть нулевым"
|
|
7
|
+
blank: "%s не должен быть пустым"
|
|
8
|
+
length_between: "%s должен быть между %s и %s длиной символов"
|
|
9
|
+
too_long: "%s должно быть не больше %s символов"
|
|
10
|
+
too_short: "%s должно быть не менее %s символов"
|
|
11
|
+
wrong_length: "%s должен быть %s символов"
|
|
12
|
+
taken: "%s уже занято"
|
|
13
|
+
not_a_number: "%s должно быть числом"
|
|
14
|
+
not_an_integer: "%s должно быть целым числом"
|
|
15
|
+
greater_than: "%s должно быть больше, чем %s"
|
|
16
|
+
greater_than_or_equal_to: "%s должен быть больше или равно %s"
|
|
17
|
+
equal_to: "%s должно быть равно %s"
|
|
18
|
+
not_equal_to: "%s не должно быть равно %s"
|
|
19
|
+
less_than: "%s должно быть меньше, чем %s"
|
|
20
|
+
less_than_or_equal_to: "%s должно быть меньше или равно %s"
|
|
21
|
+
value_between: "%s должно быть между %s и %s"
|
|
22
|
+
primitive: "%s должно быть типа %s"
|
data/locale/zh-CN.yml
CHANGED
|
@@ -10,7 +10,7 @@ blank: "%s 不能是空的"
|
|
|
10
10
|
length_between: '%s 长度必须介于 %s 跟 %s 之间'
|
|
11
11
|
too_long: '%s 长度过长 (最多 %s 个字)'
|
|
12
12
|
too_short: '%s 过短 (最少 %s 个字)'
|
|
13
|
-
wrong_length: '%s 长度错误 (必需是 %s 个字)
|
|
13
|
+
wrong_length: '%s 长度错误 (必需是 %s 个字)'
|
|
14
14
|
taken: '%s 已经被使用'
|
|
15
15
|
not_a_number: '%s 不是数字'
|
|
16
16
|
not_an_integer: '%s 必须是指整数'
|
data/locale/zh-TW.yml
CHANGED
|
@@ -10,7 +10,7 @@ blank: "%s 不能是空的"
|
|
|
10
10
|
length_between: '%s 長度必須介於 %s 跟 %s 之間'
|
|
11
11
|
too_long: '%s 長度過長 (最多 %s 個字)'
|
|
12
12
|
too_short: '%s 過短 (最少 %s 個字)'
|
|
13
|
-
wrong_length: '%s 長度錯誤 (必需是 %s 個字)
|
|
13
|
+
wrong_length: '%s 長度錯誤 (必需是 %s 個字)'
|
|
14
14
|
taken: '%s 已經被使用'
|
|
15
15
|
not_a_number: '%s 不是數字'
|
|
16
16
|
not_an_integer: '%s 必須是指整數'
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dm-validations-i18n
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 3
|
|
9
|
-
-
|
|
10
|
-
version: 0.3.
|
|
9
|
+
- 3
|
|
10
|
+
version: 0.3.3
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Masaki Komagata
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-07-23 00:00:00 +09:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|
|
@@ -149,6 +149,7 @@ files:
|
|
|
149
149
|
- locale/en.yml
|
|
150
150
|
- locale/it.yml
|
|
151
151
|
- locale/ja.yml
|
|
152
|
+
- locale/ru.yml
|
|
152
153
|
- locale/zh-CN.yml
|
|
153
154
|
- locale/zh-TW.yml
|
|
154
155
|
- test/helper.rb
|