rails-i18n 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rails-i18n.rb +1 -4
- data/lib/rails_i18n.rb +1 -0
- data/lib/rails_i18n/railtie.rb +10 -0
- data/rails/locale/id.yml +10 -10
- metadata +7 -5
data/lib/rails-i18n.rb
CHANGED
data/lib/rails_i18n.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'rails_i18n/railtie'
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module RailsI18n
|
4
|
+
class Railtie < ::Rails::Railtie #:nodoc:
|
5
|
+
initializer 'rails-i18n' do |app|
|
6
|
+
I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../../rails/locale'), '*.{rb,yml}')]
|
7
|
+
I18n.load_path.flatten!
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
data/rails/locale/id.yml
CHANGED
@@ -17,7 +17,7 @@ id:
|
|
17
17
|
- Selasa
|
18
18
|
- Rabu
|
19
19
|
- Kamis
|
20
|
-
- Jum'at
|
20
|
+
- "Jum'at"
|
21
21
|
- Sabtu
|
22
22
|
abbr_day_names:
|
23
23
|
- Min
|
@@ -126,17 +126,17 @@ id:
|
|
126
126
|
one: "kurang dari 1 detik"
|
127
127
|
other: "kurang dari %{count} detik"
|
128
128
|
x_seconds:
|
129
|
-
one: "
|
129
|
+
one: "satu detik"
|
130
130
|
other: "%{count} detik"
|
131
131
|
less_than_x_minutes:
|
132
132
|
zero: "kurang dari 1 menit"
|
133
133
|
one: "kurang dari 1 menit"
|
134
134
|
other: "kurang dari %{count} menit"
|
135
135
|
x_minutes:
|
136
|
-
one: "menit"
|
136
|
+
one: "satu menit"
|
137
137
|
other: "%{count} menit"
|
138
138
|
about_x_hours:
|
139
|
-
one: "sekitar
|
139
|
+
one: "sekitar satu jam"
|
140
140
|
other: "sekitar %{count} jam"
|
141
141
|
x_days:
|
142
142
|
one: "sehari"
|
@@ -148,7 +148,7 @@ id:
|
|
148
148
|
one: "sebulan"
|
149
149
|
other: "%{count} bulan"
|
150
150
|
about_x_years:
|
151
|
-
one: "
|
151
|
+
one: "setahun"
|
152
152
|
other: "noin %{count} tahun"
|
153
153
|
over_x_years:
|
154
154
|
one: "lebih dari setahun"
|
@@ -163,10 +163,10 @@ id:
|
|
163
163
|
header:
|
164
164
|
one: "1 kesalahan mengakibatkan %{model} ini tidak bisa disimpan"
|
165
165
|
other: "%{count} kesalahan mengakibatkan %{model} ini tidak bisa disimpan"
|
166
|
-
body: "Ada
|
166
|
+
body: "Ada masalah dengan field berikut:"
|
167
167
|
messages:
|
168
|
-
inclusion: "tidak
|
169
|
-
exclusion: "sudah
|
168
|
+
inclusion: "tidak termasuk"
|
169
|
+
exclusion: "sudah digunakan"
|
170
170
|
invalid: "tidak valid"
|
171
171
|
confirmation: "tidak sesuai dengan konfirmasi"
|
172
172
|
accepted: "harus diterima"
|
@@ -175,8 +175,8 @@ id:
|
|
175
175
|
too_long: "terlalu panjang (maksimum %{count} karakter)"
|
176
176
|
too_short: "terlalu pendek (maksimum %{count} karakter)"
|
177
177
|
wrong_length: "dengan panjang tidak sama (seharusnya %{count} karakter)"
|
178
|
-
taken: "sudah
|
179
|
-
not_a_number: "bukan
|
178
|
+
taken: "sudah digunakan"
|
179
|
+
not_a_number: "bukan angka"
|
180
180
|
greater_than: "harus lebih besar dari %{count}"
|
181
181
|
greater_than_or_equal_to: "harus sama atau lebih besar dari %{count}"
|
182
182
|
equal_to: "harus sama dengan %{count}"
|
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: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
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-07-
|
18
|
+
date: 2011-07-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: activesupport
|
@@ -40,6 +40,9 @@ extensions: []
|
|
40
40
|
extra_rdoc_files: []
|
41
41
|
|
42
42
|
files:
|
43
|
+
- lib/rails-i18n.rb
|
44
|
+
- lib/rails_i18n/railtie.rb
|
45
|
+
- lib/rails_i18n.rb
|
43
46
|
- rails/locale/hi-IN.yml
|
44
47
|
- rails/locale/en-AU.yml
|
45
48
|
- rails/locale/vi.yml
|
@@ -113,7 +116,6 @@ files:
|
|
113
116
|
- rails/locale/fur.yml
|
114
117
|
- README.md
|
115
118
|
- MIT-LICENSE.txt
|
116
|
-
- lib/rails-i18n.rb
|
117
119
|
homepage: http://github.com/svenfuchs/rails-i18n
|
118
120
|
licenses: []
|
119
121
|
|