rails-i18n 0.2.1 → 0.3.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails_i18n/railtie.rb +3 -0
- data/rails/locale/th.yml +10 -10
- data/will_paginate/bg.yml +4 -0
- data/will_paginate/en-GB.yml +18 -0
- data/will_paginate/en-US.yml +18 -0
- data/will_paginate/hu.yml +5 -0
- data/will_paginate/ja.yml +18 -0
- data/will_paginate/nl.yml +5 -0
- metadata +60 -28
data/lib/rails_i18n/railtie.rb
CHANGED
@@ -4,6 +4,9 @@ module RailsI18n
|
|
4
4
|
class Railtie < ::Rails::Railtie #:nodoc:
|
5
5
|
initializer 'rails-i18n' do |app|
|
6
6
|
I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../../rails/locale'), '*.{rb,yml}')]
|
7
|
+
if defined? ::WillPaginate
|
8
|
+
I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../../will_paginate'), '*.{rb,yml}')]
|
9
|
+
end
|
7
10
|
I18n.load_path.flatten!
|
8
11
|
end
|
9
12
|
end
|
data/rails/locale/th.yml
CHANGED
@@ -12,26 +12,26 @@ th:
|
|
12
12
|
long: "%d %B %Y"
|
13
13
|
|
14
14
|
day_names:
|
15
|
-
-
|
15
|
+
- อาทิตย์
|
16
16
|
- จันทร์
|
17
17
|
- อังคาร
|
18
18
|
- พุธ
|
19
19
|
- พฤหัสบดี
|
20
20
|
- ศุกร์
|
21
|
-
- เสาร์
|
21
|
+
- เสาร์
|
22
22
|
abbr_day_names:
|
23
|
-
-
|
23
|
+
- อา
|
24
24
|
- จ
|
25
25
|
- อ
|
26
26
|
- พ
|
27
27
|
- พฤ
|
28
28
|
- ศ
|
29
|
-
- ส
|
29
|
+
- ส
|
30
30
|
month_names:
|
31
31
|
- ~
|
32
|
-
-
|
33
|
-
-
|
34
|
-
-
|
32
|
+
- มกราคม
|
33
|
+
- กุมภาพันธ์
|
34
|
+
- มีนาคม
|
35
35
|
- เมษายน
|
36
36
|
- พฤษภาคม
|
37
37
|
- มิถุนายน
|
@@ -40,10 +40,10 @@ th:
|
|
40
40
|
- กันยายน
|
41
41
|
- ตุลาคม
|
42
42
|
- พฤศจิกายน
|
43
|
-
- ธันวาคม
|
43
|
+
- ธันวาคม
|
44
44
|
abbr_month_names:
|
45
45
|
- ~
|
46
|
-
-
|
46
|
+
- ม.ค.
|
47
47
|
- ก.พ.
|
48
48
|
- มี.ค.
|
49
49
|
- เม.ย.
|
@@ -54,7 +54,7 @@ th:
|
|
54
54
|
- ก.ย.
|
55
55
|
- ต.ค.
|
56
56
|
- พ.ย.
|
57
|
-
- ธ.ค.
|
57
|
+
- ธ.ค.
|
58
58
|
order:
|
59
59
|
- :day
|
60
60
|
- :month
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"en-GB":
|
2
|
+
will_paginate:
|
3
|
+
previous_label: "← Previous"
|
4
|
+
next_label: "Next →"
|
5
|
+
page_gap: "…"
|
6
|
+
|
7
|
+
page_entries_info:
|
8
|
+
single_page:
|
9
|
+
zero: "No %{model} found"
|
10
|
+
one: "Displaying 1 %{model}"
|
11
|
+
other: "Displaying all %{count} %{model}"
|
12
|
+
single_page_html:
|
13
|
+
zero: "No %{model} found"
|
14
|
+
one: "Displaying <b>1</b> %{model}"
|
15
|
+
other: "Displaying <b>all %{count}</b> %{model}"
|
16
|
+
|
17
|
+
multi_page: "Displaying %{model} %{from} - %{to} of %{count} in total"
|
18
|
+
multi_page_html: "Displaying %{model} <b>%{from} - %{to}</b> of <b>%{count}</b> in total"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"en-US":
|
2
|
+
will_paginate:
|
3
|
+
previous_label: "← Previous"
|
4
|
+
next_label: "Next →"
|
5
|
+
page_gap: "…"
|
6
|
+
|
7
|
+
page_entries_info:
|
8
|
+
single_page:
|
9
|
+
zero: "No %{model} found"
|
10
|
+
one: "Displaying 1 %{model}"
|
11
|
+
other: "Displaying all %{count} %{model}"
|
12
|
+
single_page_html:
|
13
|
+
zero: "No %{model} found"
|
14
|
+
one: "Displaying <b>1</b> %{model}"
|
15
|
+
other: "Displaying <b>all %{count}</b> %{model}"
|
16
|
+
|
17
|
+
multi_page: "Displaying %{model} %{from} - %{to} of %{count} in total"
|
18
|
+
multi_page_html: "Displaying %{model} <b>%{from} - %{to}</b> of <b>%{count}</b> in total"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
ja:
|
2
|
+
will_paginate:
|
3
|
+
previous_label: "← 前へ"
|
4
|
+
next_label: "次へ →"
|
5
|
+
page_gap: "…"
|
6
|
+
|
7
|
+
page_entries_info:
|
8
|
+
single_page:
|
9
|
+
zero: "%{model}が見つかりません"
|
10
|
+
one: "1件の%{model}を表示しています"
|
11
|
+
other: "%{count}件の%{model}をすべて表示しています"
|
12
|
+
single_page_html:
|
13
|
+
zero: "%{model}が見つかりません"
|
14
|
+
one: "<b>1</b>件の%{model}を表示しています"
|
15
|
+
other: "<b>%{count}</b>件の%{model}をすべて表示しています"
|
16
|
+
|
17
|
+
multi_page: "%{from}番目から%{to}番目までの%{model}を表示しています(全%{count}件中)"
|
18
|
+
multi_page_html: "<b>%{from}</b>番目から<b>%{to}</b>番目までの%{model}を表示しています(全<b>%{count}</b>件中)"
|
metadata
CHANGED
@@ -1,34 +1,48 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-i18n
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 62196375
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
- beta
|
11
|
+
- 2
|
12
|
+
version: 0.3.0.beta2
|
6
13
|
platform: ruby
|
7
|
-
authors:
|
14
|
+
authors:
|
8
15
|
- Rails I18n Group
|
9
16
|
autorequire:
|
10
17
|
bindir: bin
|
11
18
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
19
|
+
|
20
|
+
date: 2011-12-30 00:00:00 Z
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
15
23
|
name: i18n
|
16
|
-
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
26
|
none: false
|
18
|
-
requirements:
|
27
|
+
requirements:
|
19
28
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 1
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 5
|
34
|
+
version: "0.5"
|
22
35
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
description: A set of common locale data and translations to internationalize and/or
|
26
|
-
localize your Rails applications.
|
36
|
+
version_requirements: *id001
|
37
|
+
description: A set of common locale data and translations to internationalize and/or localize your Rails applications.
|
27
38
|
email: rails-i18n@googlegroups.com
|
28
39
|
executables: []
|
40
|
+
|
29
41
|
extensions: []
|
42
|
+
|
30
43
|
extra_rdoc_files: []
|
31
|
-
|
44
|
+
|
45
|
+
files:
|
32
46
|
- lib/rails-i18n.rb
|
33
47
|
- lib/rails_i18n/railtie.rb
|
34
48
|
- lib/rails_i18n.rb
|
@@ -106,30 +120,48 @@ files:
|
|
106
120
|
- rails/locale/bs.yml
|
107
121
|
- rails/locale/lt.yml
|
108
122
|
- rails/locale/fur.yml
|
123
|
+
- will_paginate/nl.yml
|
124
|
+
- will_paginate/en-US.yml
|
125
|
+
- will_paginate/ja.yml
|
126
|
+
- will_paginate/bg.yml
|
127
|
+
- will_paginate/hu.yml
|
128
|
+
- will_paginate/en-GB.yml
|
109
129
|
- README.md
|
110
130
|
- MIT-LICENSE.txt
|
111
131
|
homepage: http://github.com/svenfuchs/rails-i18n
|
112
132
|
licenses: []
|
133
|
+
|
113
134
|
post_install_message:
|
114
135
|
rdoc_options: []
|
115
|
-
|
136
|
+
|
137
|
+
require_paths:
|
116
138
|
- lib
|
117
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
118
140
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
|
123
|
-
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
hash: 3
|
145
|
+
segments:
|
146
|
+
- 0
|
147
|
+
version: "0"
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
149
|
none: false
|
125
|
-
requirements:
|
126
|
-
- -
|
127
|
-
- !ruby/object:Gem::Version
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
hash: 17
|
154
|
+
segments:
|
155
|
+
- 1
|
156
|
+
- 3
|
157
|
+
- 5
|
128
158
|
version: 1.3.5
|
129
159
|
requirements: []
|
130
|
-
|
160
|
+
|
161
|
+
rubyforge_project: "[none]"
|
131
162
|
rubygems_version: 1.8.10
|
132
163
|
signing_key:
|
133
164
|
specification_version: 3
|
134
165
|
summary: Common locale data and translations for Rails i18n.
|
135
166
|
test_files: []
|
167
|
+
|