dm-validations-i18n 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/dm-validations-i18n.gemspec +4 -2
- data/locale/zh-CN.yml +29 -0
- data/locale/zh-TW.yml +29 -0
- metadata +7 -5
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
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.
|
8
|
+
s.version = "0.2.0"
|
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{2010-10-
|
12
|
+
s.date = %q{2010-10-04}
|
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 = [
|
@@ -27,6 +27,8 @@ Gem::Specification.new do |s|
|
|
27
27
|
"lib/dm-validations-i18n.rb",
|
28
28
|
"locale/en.yml",
|
29
29
|
"locale/ja.yml",
|
30
|
+
"locale/zh-CN.yml",
|
31
|
+
"locale/zh-TW.yml",
|
30
32
|
"test/helper.rb",
|
31
33
|
"test/test_dm-validations-i18n.rb"
|
32
34
|
]
|
data/locale/zh-CN.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
absent: '%s 必须留空'
|
2
|
+
inclusion: '%s 不在列表中'
|
3
|
+
exclusion: '%s 被保留'
|
4
|
+
invalid: '%s 无效'
|
5
|
+
confirmation: "%s 与确认不相符"
|
6
|
+
accepted: '%s 必须同意'
|
7
|
+
nil: '%s 不能是空的'
|
8
|
+
empty: "%s 不能是空的"
|
9
|
+
blank: "%s 不能是空的"
|
10
|
+
length_between: '%s 长度必须介于 %s 跟 %s 之间'
|
11
|
+
too_long: '%s 长度过长 (最多 %s 个字)'
|
12
|
+
too_short: '%s 过短 (最少 %s 个字)'
|
13
|
+
wrong_length: '%s 长度错误 (必需是 %s 个字)"'
|
14
|
+
taken: '%s 已经被使用'
|
15
|
+
not_a_number: '%s 不是数字'
|
16
|
+
not_an_integer: '%s 必须是指整数'
|
17
|
+
greater_than: '%s 必须大于 %s'
|
18
|
+
greater_than_or_equal_to: '%s 必须大于等于 %s'
|
19
|
+
equal_to: '%s 必须等于 %s'
|
20
|
+
not_equal_to: '%s 必须不等于 %s'
|
21
|
+
less_than: '%s 必须小于 %s'
|
22
|
+
less_than_or_equal_to: '%s 必须小于等于 %s'
|
23
|
+
value_between: '%s 必须介于 %s 与 %s 之间'
|
24
|
+
odd: '必须是奇数'
|
25
|
+
even: '必须是偶数'
|
26
|
+
primitive: '%s 必须是 %s 类型'
|
27
|
+
not_found: '%s 不存在'
|
28
|
+
already_confirmed: '%s 已经确认'
|
29
|
+
not_locked: '%s 没有被锁定'
|
data/locale/zh-TW.yml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
absent: '%s 必須留空'
|
2
|
+
inclusion: '%s 不在列表中'
|
3
|
+
exclusion: '%s 被保留'
|
4
|
+
invalid: '%s 無效'
|
5
|
+
confirmation: "%s 與確認不相符"
|
6
|
+
accepted: '%s 必須同意'
|
7
|
+
nil: '%s 不能是空的'
|
8
|
+
empty: "%s 不能是空的"
|
9
|
+
blank: "%s 不能是空的"
|
10
|
+
length_between: '%s 長度必須介於 %s 跟 %s 之間'
|
11
|
+
too_long: '%s 長度過長 (最多 %s 個字)'
|
12
|
+
too_short: '%s 過短 (最少 %s 個字)'
|
13
|
+
wrong_length: '%s 長度錯誤 (必需是 %s 個字)"'
|
14
|
+
taken: '%s 已經被使用'
|
15
|
+
not_a_number: '%s 不是數字'
|
16
|
+
not_an_integer: '%s 必須是指整數'
|
17
|
+
greater_than: '%s 必須大於 %s'
|
18
|
+
greater_than_or_equal_to: '%s 必須大於等於 %s'
|
19
|
+
equal_to: '%s 必須等於 %s'
|
20
|
+
not_equal_to: '%s 必須不等於 %s'
|
21
|
+
less_than: '%s 必須小於 %s'
|
22
|
+
less_than_or_equal_to: '%s 必須小於等於 %s'
|
23
|
+
value_between: '%s 必須介於 %s 與 %s 之間'
|
24
|
+
odd: '必須是奇數'
|
25
|
+
even: '必須是偶數'
|
26
|
+
primitive: '%s 必須是 %s 類型'
|
27
|
+
not_found: '%s 不存在'
|
28
|
+
already_confirmed: '%s 已經確認'
|
29
|
+
not_locked: '%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: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
version: 0.2.0
|
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: 2010-10-
|
18
|
+
date: 2010-10-04 00:00:00 +09:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -70,6 +70,8 @@ files:
|
|
70
70
|
- lib/dm-validations-i18n.rb
|
71
71
|
- locale/en.yml
|
72
72
|
- locale/ja.yml
|
73
|
+
- locale/zh-CN.yml
|
74
|
+
- locale/zh-TW.yml
|
73
75
|
- test/helper.rb
|
74
76
|
- test/test_dm-validations-i18n.rb
|
75
77
|
has_rdoc: true
|