rails_admin-i18n 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.rspec +1 -0
- data/.rvmrc +1 -0
- data/.travis.yml +1 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +45 -0
- data/LICENSE.txt +20 -0
- data/README.md +18 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/lib/rails_admin-i18n.rb +10 -0
- data/locales/en.yml +130 -0
- data/locales/vi.yml +130 -0
- data/rails_admin-i18n.gemspec +67 -0
- data/spec/rails_admin-i18n_spec.rb +8 -0
- data/spec/spec_helper.rb +12 -0
- metadata +143 -0
data/.document
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.rvmrc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm 1.9.2@devise-i18n
|
data/.travis.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rvm: 1.9.2
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
diff-lcs (1.1.3)
|
5
|
+
git (1.2.5)
|
6
|
+
gli (1.5.1)
|
7
|
+
i18n (0.6.0)
|
8
|
+
i18n-spec (0.1.2)
|
9
|
+
jeweler (1.8.3)
|
10
|
+
bundler (~> 1.0)
|
11
|
+
git (>= 1.2.5)
|
12
|
+
rake
|
13
|
+
rdoc
|
14
|
+
json (1.6.5)
|
15
|
+
localeapp (0.4.2)
|
16
|
+
gli
|
17
|
+
i18n
|
18
|
+
json
|
19
|
+
rest-client
|
20
|
+
ya2yaml
|
21
|
+
mime-types (1.17.2)
|
22
|
+
rake (0.9.2.2)
|
23
|
+
rdoc (3.12)
|
24
|
+
json (~> 1.4)
|
25
|
+
rest-client (1.6.7)
|
26
|
+
mime-types (>= 1.16)
|
27
|
+
rspec (2.8.0)
|
28
|
+
rspec-core (~> 2.8.0)
|
29
|
+
rspec-expectations (~> 2.8.0)
|
30
|
+
rspec-mocks (~> 2.8.0)
|
31
|
+
rspec-core (2.8.0)
|
32
|
+
rspec-expectations (2.8.0)
|
33
|
+
diff-lcs (~> 1.1.2)
|
34
|
+
rspec-mocks (2.8.0)
|
35
|
+
ya2yaml (0.31)
|
36
|
+
|
37
|
+
PLATFORMS
|
38
|
+
ruby
|
39
|
+
|
40
|
+
DEPENDENCIES
|
41
|
+
bundler (~> 1.1.2)
|
42
|
+
i18n-spec
|
43
|
+
jeweler (> 1.6.4)
|
44
|
+
localeapp
|
45
|
+
rspec (>= 2.4.0)
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Christopher Dell
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# rails_admin-i18n
|
2
|
+
|
3
|
+
[![Build Status](https://secure.travis-ci.org/puma07/rails_admin-i18n.png)](http://travis-ci.org/puma07/rails_admin-i18n)
|
4
|
+
|
5
|
+
Translations for **[Rails Admin v0.0.3+](https://github.com/sferik/rails_admin)** pulled from various sources.
|
6
|
+
|
7
|
+
## Contributing to rails_admin-i18n
|
8
|
+
|
9
|
+
- Edit the translations directly on the [rails_admin-i18n](http://www.localeapp.com/projects/377) project on Locale.
|
10
|
+
- **That's it!**
|
11
|
+
- The maintainer will then pull translations from the Locale project and push to Github.
|
12
|
+
|
13
|
+
Happy translating!
|
14
|
+
|
15
|
+
## Copyright
|
16
|
+
|
17
|
+
Copyright (c) 2011 Christopher Dell. See LICENSE.txt for
|
18
|
+
further details.
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
|
6
|
+
begin
|
7
|
+
Bundler.setup(:default, :development)
|
8
|
+
rescue Bundler::BundlerError => e
|
9
|
+
$stderr.puts e.message
|
10
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
11
|
+
exit e.status_code
|
12
|
+
end
|
13
|
+
require 'rake'
|
14
|
+
|
15
|
+
require 'jeweler'
|
16
|
+
Jeweler::Tasks.new do |gem|
|
17
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
18
|
+
gem.name = "rails_admin-i18n"
|
19
|
+
gem.homepage = "http://github.com/puma07/rails_admin-i18n"
|
20
|
+
gem.license = "MIT"
|
21
|
+
gem.summary = %Q{Translations for the rails_admin gem}
|
22
|
+
gem.description = %Q{Translations for the rails_admin gem}
|
23
|
+
gem.email = "nampt@kbsvn.vn"
|
24
|
+
gem.authors = ["Nam Pham Trung"]
|
25
|
+
# dependencies defined in Gemfile
|
26
|
+
end
|
27
|
+
Jeweler::RubygemsDotOrgTasks.new
|
28
|
+
|
29
|
+
require 'rspec/core'
|
30
|
+
require 'rspec/core/rake_task'
|
31
|
+
RSpec::Core::RakeTask.new(:spec) do |spec|
|
32
|
+
spec.pattern = FileList['spec/**/*_spec.rb']
|
33
|
+
end
|
34
|
+
|
35
|
+
task :default => :spec
|
36
|
+
|
37
|
+
begin
|
38
|
+
# rake/rdoctask is deprecated in RDoc 2.4.2+
|
39
|
+
require 'rdoc/task'
|
40
|
+
rescue LoadError
|
41
|
+
require 'rake/rdoctask'
|
42
|
+
end
|
43
|
+
|
44
|
+
Rake::RDocTask.new do |rdoc|
|
45
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
46
|
+
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = "rails_admin-i18n #{version}"
|
49
|
+
rdoc.rdoc_files.include('README*')
|
50
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
51
|
+
end
|
52
|
+
|
53
|
+
require 'i18n-spec/tasks'
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.4.5
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'rails'
|
2
|
+
|
3
|
+
module RailsAdminI18n
|
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__) + '/../locales'), '*.yml')]
|
7
|
+
I18n.load_path.flatten!
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
data/locales/en.yml
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
en:
|
2
|
+
home:
|
3
|
+
name: Home
|
4
|
+
views:
|
5
|
+
pagination:
|
6
|
+
previous: "« Prev"
|
7
|
+
next: "Next »"
|
8
|
+
truncate: "…"
|
9
|
+
admin:
|
10
|
+
misc:
|
11
|
+
filter_date_format: "mm/dd/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done!
|
12
|
+
search: "Search"
|
13
|
+
filter: "Filter"
|
14
|
+
refresh: "Refresh"
|
15
|
+
show_all: "Show all"
|
16
|
+
add_filter: "Add filter"
|
17
|
+
bulk_menu_title: "Selected items"
|
18
|
+
remove: "Remove"
|
19
|
+
add_new: "Add new"
|
20
|
+
chosen: "Chosen %{name}"
|
21
|
+
chose_all: "Choose all"
|
22
|
+
clear_all: "Clear all"
|
23
|
+
up: "Up"
|
24
|
+
down: "Down"
|
25
|
+
navigation: "Navigation"
|
26
|
+
log_out: "Log out"
|
27
|
+
ago: "ago"
|
28
|
+
flash:
|
29
|
+
successful: "%{name} successfully %{action}"
|
30
|
+
error: "%{name} failed to be %{action}"
|
31
|
+
noaction: "No actions were taken"
|
32
|
+
model_not_found: "Model '%{model}' could not be found"
|
33
|
+
object_not_found: "%{model} with id '%{id}' could not be found"
|
34
|
+
table_headers:
|
35
|
+
model_name: "Model name"
|
36
|
+
last_used: "Last used"
|
37
|
+
records: "Records"
|
38
|
+
username: "User"
|
39
|
+
changes: "Changes"
|
40
|
+
created_at: "Date/Time"
|
41
|
+
item: "Item"
|
42
|
+
message: "Message"
|
43
|
+
actions:
|
44
|
+
dashboard:
|
45
|
+
title: "Site administration"
|
46
|
+
menu: "Dashboard"
|
47
|
+
breadcrumb: "Dashboard"
|
48
|
+
index:
|
49
|
+
title: "List of %{model_label_plural}"
|
50
|
+
menu: "List"
|
51
|
+
breadcrumb: "%{model_label_plural}"
|
52
|
+
show:
|
53
|
+
title: "Details for %{model_label} '%{object_label}'"
|
54
|
+
menu: "Show"
|
55
|
+
breadcrumb: "%{object_label}"
|
56
|
+
show_in_app:
|
57
|
+
menu: "Show in app"
|
58
|
+
new:
|
59
|
+
title: "New %{model_label}"
|
60
|
+
menu: "Add new"
|
61
|
+
breadcrumb: "New"
|
62
|
+
link: "Add a new %{model_label}"
|
63
|
+
done: "created"
|
64
|
+
edit:
|
65
|
+
title: "Edit %{model_label} '%{object_label}'"
|
66
|
+
menu: "Edit"
|
67
|
+
breadcrumb: "Edit"
|
68
|
+
link: "Edit this %{model_label}"
|
69
|
+
done: "updated"
|
70
|
+
delete:
|
71
|
+
title: "Delete %{model_label} '%{object_label}'"
|
72
|
+
menu: "Delete"
|
73
|
+
breadcrumb: "Delete"
|
74
|
+
link: "Delete '%{object_label}'"
|
75
|
+
done: "deleted"
|
76
|
+
bulk_delete:
|
77
|
+
title: "Delete %{model_label_plural}"
|
78
|
+
menu: "Multiple delete"
|
79
|
+
breadcrumb: "Multiple delete"
|
80
|
+
bulk_link: "Delete selected %{model_label_plural}"
|
81
|
+
export:
|
82
|
+
title: "Export %{model_label_plural}"
|
83
|
+
menu: "Export"
|
84
|
+
breadcrumb: "Export"
|
85
|
+
link: "Export found %{model_label_plural}"
|
86
|
+
bulk_link: "Export selected %{model_label_plural}"
|
87
|
+
done: "exported"
|
88
|
+
history_index:
|
89
|
+
title: "History for %{model_label_plural}"
|
90
|
+
menu: "History"
|
91
|
+
breadcrumb: "History"
|
92
|
+
history_show:
|
93
|
+
title: "History for %{model_label} '%{object_label}'"
|
94
|
+
menu: "History"
|
95
|
+
breadcrumb: "History"
|
96
|
+
form:
|
97
|
+
cancel: "Cancel"
|
98
|
+
basic_info: "Basic info"
|
99
|
+
required: "Required"
|
100
|
+
optional: "Optional"
|
101
|
+
one_char: "character"
|
102
|
+
char_length_up_to: "length up to"
|
103
|
+
char_length_of: "length of"
|
104
|
+
save: "Save"
|
105
|
+
save_and_add_another: "Save and add another"
|
106
|
+
save_and_edit: "Save and edit"
|
107
|
+
all_of_the_following_related_items_will_be_deleted: "? The following related items may be deleted or orphaned:"
|
108
|
+
are_you_sure_you_want_to_delete_the_object: "Are you sure you want to delete this %{model_name}"
|
109
|
+
confirmation: "Yes, I'm sure"
|
110
|
+
bulk_delete: "The following objects will be deleted, which may delete or orphan some of their related dependencies:"
|
111
|
+
new_model: "%{name} (new)"
|
112
|
+
export:
|
113
|
+
confirmation: "Export to %{name}"
|
114
|
+
select: "Select fields to export"
|
115
|
+
fields_from: "Fields from %{name}"
|
116
|
+
fields_from_associated: "Fields from associated %{name}"
|
117
|
+
display: "Display %{name}: %{type}"
|
118
|
+
options_for: "Options for %{name}"
|
119
|
+
empty_value_for_associated_objects: "<empty>"
|
120
|
+
click_to_reverse_selection: 'Click to reverse selection'
|
121
|
+
csv:
|
122
|
+
header_for_root_methods: "%{name}" # 'model' is available
|
123
|
+
header_for_association_methods: "%{name} [%{association}]"
|
124
|
+
encoding_to: "Encode to"
|
125
|
+
encoding_to_help: "Choose output encoding. Leave empty to let current input encoding untouched: (%{name})"
|
126
|
+
skip_header: "No header"
|
127
|
+
skip_header_help: "Do not output a header (no fields description)"
|
128
|
+
default_col_sep: ","
|
129
|
+
col_sep: "Column separator"
|
130
|
+
col_sep_help: "Leave blank for default ('%{value}')" # value is default_col_sep
|
data/locales/vi.yml
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
vi:
|
2
|
+
home:
|
3
|
+
name: Trang chủ
|
4
|
+
views:
|
5
|
+
pagination:
|
6
|
+
previous: "« Trước"
|
7
|
+
next: "Tiếp »"
|
8
|
+
truncate: "…"
|
9
|
+
admin:
|
10
|
+
misc:
|
11
|
+
filter_date_format: "dd/mm/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done!
|
12
|
+
search: "Tìm kiếm"
|
13
|
+
filter: "Lọc"
|
14
|
+
refresh: "Làm mới"
|
15
|
+
show_all: "Hiện tất cả"
|
16
|
+
add_filter: "Thêm bộ lọc"
|
17
|
+
bulk_menu_title: "Các mục đã chọn"
|
18
|
+
remove: "Xóa"
|
19
|
+
add_new: "Thêm mới"
|
20
|
+
chosen: "Chọn %{name}"
|
21
|
+
chose_all: "Chọn tất cả"
|
22
|
+
clear_all: "Xóa tất cả"
|
23
|
+
up: "Lên"
|
24
|
+
down: "Xuống"
|
25
|
+
navigation: "Danh mục chính"
|
26
|
+
log_out: "Đăng xuất"
|
27
|
+
ago: "trước"
|
28
|
+
flash:
|
29
|
+
successful: "%{name} thành công %{action}"
|
30
|
+
error: "%{name} thất bại %{action}"
|
31
|
+
noaction: "Không có thao tác được chọn"
|
32
|
+
model_not_found: "Không thể tìm thấy lớp '%{model}' "
|
33
|
+
object_not_found: "Không thể tìm thấy %{model} với id bằng '%{id}'"
|
34
|
+
table_headers:
|
35
|
+
model_name: "Tên lớp"
|
36
|
+
last_used: "Lần cuối sử dụng"
|
37
|
+
records: "Hồ sơ"
|
38
|
+
username: "User"
|
39
|
+
changes: "Thay đổi"
|
40
|
+
created_at: "Ngày/Giờ"
|
41
|
+
item: "Mục"
|
42
|
+
message: "Tin nhắn"
|
43
|
+
actions:
|
44
|
+
dashboard:
|
45
|
+
title: "Trang quản lý"
|
46
|
+
menu: "Trang quản lý"
|
47
|
+
breadcrumb: "Trang quản lý"
|
48
|
+
index:
|
49
|
+
title: "Danh sách của %{model_label_plural}"
|
50
|
+
menu: "Danh sách"
|
51
|
+
breadcrumb: "%{model_label_plural}"
|
52
|
+
show:
|
53
|
+
title: "Chi tiết %{model_label} '%{object_label}'"
|
54
|
+
menu: "Chi tiết"
|
55
|
+
breadcrumb: "%{object_label}"
|
56
|
+
show_in_app:
|
57
|
+
menu: "Hiển thị trong ứng dụng"
|
58
|
+
new:
|
59
|
+
title: "Thêm %{model_label}"
|
60
|
+
menu: "Thêm mới"
|
61
|
+
breadcrumb: "Thêm"
|
62
|
+
link: "Thêm một %{model_label} mới"
|
63
|
+
done: "đã tạo"
|
64
|
+
edit:
|
65
|
+
title: "Chỉnh sửa %{model_label} '%{object_label}'"
|
66
|
+
menu: "Chỉnh sửa"
|
67
|
+
breadcrumb: "Chỉnh sửa"
|
68
|
+
link: "Chỉnh sửa %{model_label} này"
|
69
|
+
done: "đã chỉnh sửa"
|
70
|
+
delete:
|
71
|
+
title: "Xóa %{model_label} '%{object_label}'"
|
72
|
+
menu: "Xóa"
|
73
|
+
breadcrumb: "Xóa"
|
74
|
+
link: "Xóa '%{object_label}'"
|
75
|
+
done: "đã xóa"
|
76
|
+
bulk_delete:
|
77
|
+
title: "Xóa %{model_label_plural}"
|
78
|
+
menu: "Xóa nhiều mục"
|
79
|
+
breadcrumb: "Xóa nhiều mục"
|
80
|
+
bulk_link: "Xóa những %{model_label_plural} đã chọn"
|
81
|
+
export:
|
82
|
+
title: "Export %{model_label_plural}"
|
83
|
+
menu: "Export"
|
84
|
+
breadcrumb: "Export"
|
85
|
+
link: "Export %{model_label_plural} được tìm thấy"
|
86
|
+
bulk_link: "Export selected %{model_label_plural}"
|
87
|
+
done: "exported"
|
88
|
+
history_index:
|
89
|
+
title: "Lịch sử của %{model_label_plural}"
|
90
|
+
menu: "Lịch sử"
|
91
|
+
breadcrumb: "Lịch sử"
|
92
|
+
history_show:
|
93
|
+
title: "Lịch sử của %{model_label} '%{object_label}'"
|
94
|
+
menu: "Lịch sử"
|
95
|
+
breadcrumb: "Lịch sử"
|
96
|
+
form:
|
97
|
+
cancel: "Hủy"
|
98
|
+
basic_info: "Thông tin đơn giản"
|
99
|
+
required: "Bắt buộc"
|
100
|
+
optional: "Không bắt buộc"
|
101
|
+
one_char: "ký tự"
|
102
|
+
char_length_up_to: "dài tới"
|
103
|
+
char_length_of: "dài của"
|
104
|
+
save: "Lưu"
|
105
|
+
save_and_add_another: "Lưu và thêm mới"
|
106
|
+
save_and_edit: "Lưu và chỉnh sửa"
|
107
|
+
all_of_the_following_related_items_will_be_deleted: "? Các mục có liên quan sau đây có thể bị xóa hoặc mồ côi:"
|
108
|
+
are_you_sure_you_want_to_delete_the_object: "Bạn có chắc bạn muốn xóa %{model_name} này"
|
109
|
+
confirmation: "Có, chắc chắn!"
|
110
|
+
bulk_delete: "Các đối tượng sau đây sẽ bị xóa, một số phụ thuộc liên quan của các đối tượng này có thể bị xóa hoặc mồ côi:"
|
111
|
+
new_model: "%{name} (mới)"
|
112
|
+
export:
|
113
|
+
confirmation: "Export to %{name}"
|
114
|
+
select: "Chọn các cột để export"
|
115
|
+
fields_from: "Các cột của %{name}"
|
116
|
+
fields_from_associated: "Các cột liên quan %{name}"
|
117
|
+
display: "Hiển thị %{name}: %{type}"
|
118
|
+
options_for: "Tùy chọn cho %{name}"
|
119
|
+
empty_value_for_associated_objects: "<Rỗng>"
|
120
|
+
click_to_reverse_selection: 'Nhấn vào đây để đảo ngược lựa chọn'
|
121
|
+
csv:
|
122
|
+
header_for_root_methods: "%{name}" # 'model' is available
|
123
|
+
header_for_association_methods: "%{name} [%{association}]"
|
124
|
+
encoding_to: "Encode to"
|
125
|
+
encoding_to_help: "Choose output encoding. Leave empty to let current input encoding untouched: (%{name})"
|
126
|
+
skip_header: "No header"
|
127
|
+
skip_header_help: "Do not output a header (no fields description)"
|
128
|
+
default_col_sep: ","
|
129
|
+
col_sep: "Column separator"
|
130
|
+
col_sep_help: "Leave blank for default ('%{value}')" # value is default_col_sep
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{rails_admin-i18n}
|
8
|
+
s.version = "0.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = [%q{Nam Pham Trung}]
|
12
|
+
s.date = %q{2012-05-28}
|
13
|
+
s.description = %q{Translations for the rails_admin gem}
|
14
|
+
s.email = %q{nampt@kbsvn.vn}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README.md"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
".rspec",
|
22
|
+
".rvmrc",
|
23
|
+
".travis.yml",
|
24
|
+
"Gemfile",
|
25
|
+
"Gemfile.lock",
|
26
|
+
"LICENSE.txt",
|
27
|
+
"README.md",
|
28
|
+
"Rakefile",
|
29
|
+
"VERSION",
|
30
|
+
"rails_admin-i18n.gemspec",
|
31
|
+
"lib/rails_admin-i18n.rb",
|
32
|
+
"locales/en.yml",
|
33
|
+
"locales/vi.yml",
|
34
|
+
"spec/rails_admin-i18n_spec.rb",
|
35
|
+
"spec/spec_helper.rb"
|
36
|
+
]
|
37
|
+
s.homepage = %q{http://github.com/puma07/rails_admin-i18n}
|
38
|
+
s.licenses = [%q{MIT}]
|
39
|
+
s.require_paths = [%q{lib}]
|
40
|
+
s.rubygems_version = %q{1.8.6}
|
41
|
+
s.summary = %q{Translations for the rails_admin gem}
|
42
|
+
|
43
|
+
if s.respond_to? :specification_version then
|
44
|
+
s.specification_version = 3
|
45
|
+
|
46
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
|
48
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.1.2"])
|
49
|
+
s.add_development_dependency(%q<jeweler>, ["> 1.6.4"])
|
50
|
+
s.add_development_dependency(%q<i18n-spec>, [">= 0"])
|
51
|
+
s.add_development_dependency(%q<localeapp>, [">= 0"])
|
52
|
+
else
|
53
|
+
s.add_dependency(%q<rspec>, [">= 2.4.0"])
|
54
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.2"])
|
55
|
+
s.add_dependency(%q<jeweler>, ["> 1.6.4"])
|
56
|
+
s.add_dependency(%q<i18n-spec>, [">= 0"])
|
57
|
+
s.add_dependency(%q<localeapp>, [">= 0"])
|
58
|
+
end
|
59
|
+
else
|
60
|
+
s.add_dependency(%q<rspec>, [">= 2.4.0"])
|
61
|
+
s.add_dependency(%q<bundler>, ["~> 1.1.2"])
|
62
|
+
s.add_dependency(%q<jeweler>, ["> 1.6.4"])
|
63
|
+
s.add_dependency(%q<i18n-spec>, [">= 0"])
|
64
|
+
s.add_dependency(%q<localeapp>, [">= 0"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
2
|
+
|
3
|
+
Dir.glob('locales/*.yml').each do |locale_file|
|
4
|
+
describe "a rails_admin-i18n #{locale_file} locale file" do
|
5
|
+
it_behaves_like 'a valid locale file', locale_file
|
6
|
+
it { locale_file.should be_a_subset_of 'locales/en.yml' }
|
7
|
+
end
|
8
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
3
|
+
require 'rspec'
|
4
|
+
require 'i18n-spec'
|
5
|
+
|
6
|
+
# Requires supporting files with custom matchers and macros, etc,
|
7
|
+
# in ./support/ and its subdirectories.
|
8
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
|
12
|
+
end
|
metadata
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_admin-i18n
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Nam Pham Trung
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-05-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.4.0
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.4.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: bundler
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.1.2
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.1.2
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: jeweler
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>'
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.6.4
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>'
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.6.4
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: i18n-spec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: localeapp
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
description: Translations for the rails_admin gem
|
95
|
+
email: nampt@kbsvn.vn
|
96
|
+
executables: []
|
97
|
+
extensions: []
|
98
|
+
extra_rdoc_files:
|
99
|
+
- LICENSE.txt
|
100
|
+
- README.md
|
101
|
+
files:
|
102
|
+
- .document
|
103
|
+
- .rspec
|
104
|
+
- .rvmrc
|
105
|
+
- .travis.yml
|
106
|
+
- Gemfile
|
107
|
+
- Gemfile.lock
|
108
|
+
- LICENSE.txt
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- VERSION
|
112
|
+
- rails_admin-i18n.gemspec
|
113
|
+
- lib/rails_admin-i18n.rb
|
114
|
+
- locales/en.yml
|
115
|
+
- locales/vi.yml
|
116
|
+
- spec/rails_admin-i18n_spec.rb
|
117
|
+
- spec/spec_helper.rb
|
118
|
+
homepage: http://github.com/puma07/rails_admin-i18n
|
119
|
+
licenses:
|
120
|
+
- MIT
|
121
|
+
post_install_message:
|
122
|
+
rdoc_options: []
|
123
|
+
require_paths:
|
124
|
+
- lib
|
125
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
requirements: []
|
138
|
+
rubyforge_project:
|
139
|
+
rubygems_version: 1.8.23
|
140
|
+
signing_key:
|
141
|
+
specification_version: 3
|
142
|
+
summary: Translations for the rails_admin gem
|
143
|
+
test_files: []
|