-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pham Trung Nam
authored and
Pham Trung Nam
committed
May 28, 2012
0 parents
commit fcc104c
Showing
17 changed files
with
530 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
lib/**/*.rb | ||
bin/* | ||
- | ||
features/**/*.feature | ||
LICENSE.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# rcov generated | ||
coverage | ||
|
||
# rdoc generated | ||
rdoc | ||
|
||
# yard generated | ||
doc | ||
.yardoc | ||
|
||
# bundler | ||
.bundle | ||
|
||
# jeweler generated | ||
pkg | ||
|
||
.DS_Store | ||
|
||
.localeapp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rvm 1.9.2@devise-i18n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rvm: 1.9.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
source "http://rubygems.org" | ||
|
||
group :development do | ||
gem "rspec", ">= 2.4.0" | ||
gem "bundler", "~> 1.1.2" | ||
gem "jeweler", "> 1.6.4" | ||
gem 'i18n-spec' | ||
gem 'localeapp' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
diff-lcs (1.1.3) | ||
git (1.2.5) | ||
gli (1.5.1) | ||
i18n (0.6.0) | ||
i18n-spec (0.1.2) | ||
jeweler (1.8.3) | ||
bundler (~> 1.0) | ||
git (>= 1.2.5) | ||
rake | ||
rdoc | ||
json (1.6.5) | ||
localeapp (0.4.2) | ||
gli | ||
i18n | ||
json | ||
rest-client | ||
ya2yaml | ||
mime-types (1.17.2) | ||
rake (0.9.2.2) | ||
rdoc (3.12) | ||
json (~> 1.4) | ||
rest-client (1.6.7) | ||
mime-types (>= 1.16) | ||
rspec (2.8.0) | ||
rspec-core (~> 2.8.0) | ||
rspec-expectations (~> 2.8.0) | ||
rspec-mocks (~> 2.8.0) | ||
rspec-core (2.8.0) | ||
rspec-expectations (2.8.0) | ||
diff-lcs (~> 1.1.2) | ||
rspec-mocks (2.8.0) | ||
ya2yaml (0.31) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
bundler (~> 1.1.2) | ||
i18n-spec | ||
jeweler (> 1.6.4) | ||
localeapp | ||
rspec (>= 2.4.0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Copyright (c) 2011 Christopher Dell | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# rails_admin-i18n | ||
|
||
[![Build Status](https://secure.travis-ci.org/puma07/rails_admin-i18n.png)](http://travis-ci.org/puma07/rails_admin-i18n) | ||
|
||
Translations for **[Rails Admin v0.0.3+](https://github.com/sferik/rails_admin)** pulled from various sources. | ||
|
||
## Contributing to rails_admin-i18n | ||
|
||
- Edit the translations directly on the [rails_admin-i18n](http://www.localeapp.com/projects/377) project on Locale. | ||
- **That's it!** | ||
- The maintainer will then pull translations from the Locale project and push to Github. | ||
|
||
Happy translating! | ||
|
||
## Copyright | ||
|
||
Copyright (c) 2011 Christopher Dell. See LICENSE.txt for | ||
further details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# encoding: utf-8 | ||
|
||
require 'rubygems' | ||
require 'bundler' | ||
|
||
begin | ||
Bundler.setup(:default, :development) | ||
rescue Bundler::BundlerError => e | ||
$stderr.puts e.message | ||
$stderr.puts "Run `bundle install` to install missing gems" | ||
exit e.status_code | ||
end | ||
require 'rake' | ||
|
||
require 'jeweler' | ||
Jeweler::Tasks.new do |gem| | ||
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options | ||
gem.name = "rails_admin-i18n" | ||
gem.homepage = "http://github.com/puma07/rails_admin-i18n" | ||
gem.license = "MIT" | ||
gem.summary = %Q{Translations for the rails_admin gem} | ||
gem.description = %Q{Translations for the rails_admin gem} | ||
gem.email = "nampt@kbsvn.vn" | ||
gem.authors = ["Nam Pham Trung"] | ||
# dependencies defined in Gemfile | ||
end | ||
Jeweler::RubygemsDotOrgTasks.new | ||
|
||
require 'rspec/core' | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) do |spec| | ||
spec.pattern = FileList['spec/**/*_spec.rb'] | ||
end | ||
|
||
task :default => :spec | ||
|
||
begin | ||
# rake/rdoctask is deprecated in RDoc 2.4.2+ | ||
require 'rdoc/task' | ||
rescue LoadError | ||
require 'rake/rdoctask' | ||
end | ||
|
||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "rails_admin-i18n #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
|
||
require 'i18n-spec/tasks' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.4.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'rails' | ||
|
||
module RailsAdminI18n | ||
class Railtie < ::Rails::Railtie #:nodoc: | ||
initializer 'rails-i18n' do |app| | ||
I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../locales'), '*.yml')] | ||
I18n.load_path.flatten! | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
en: | ||
home: | ||
name: Home | ||
views: | ||
pagination: | ||
previous: "« Prev" | ||
next: "Next »" | ||
truncate: "…" | ||
admin: | ||
misc: | ||
filter_date_format: "mm/dd/yy" # a combination of 'dd', 'mm' and 'yy' with any delimiter. No other interpolation will be done! | ||
search: "Search" | ||
filter: "Filter" | ||
refresh: "Refresh" | ||
show_all: "Show all" | ||
add_filter: "Add filter" | ||
bulk_menu_title: "Selected items" | ||
remove: "Remove" | ||
add_new: "Add new" | ||
chosen: "Chosen %{name}" | ||
chose_all: "Choose all" | ||
clear_all: "Clear all" | ||
up: "Up" | ||
down: "Down" | ||
navigation: "Navigation" | ||
log_out: "Log out" | ||
ago: "ago" | ||
flash: | ||
successful: "%{name} successfully %{action}" | ||
error: "%{name} failed to be %{action}" | ||
noaction: "No actions were taken" | ||
model_not_found: "Model '%{model}' could not be found" | ||
object_not_found: "%{model} with id '%{id}' could not be found" | ||
table_headers: | ||
model_name: "Model name" | ||
last_used: "Last used" | ||
records: "Records" | ||
username: "User" | ||
changes: "Changes" | ||
created_at: "Date/Time" | ||
item: "Item" | ||
message: "Message" | ||
actions: | ||
dashboard: | ||
title: "Site administration" | ||
menu: "Dashboard" | ||
breadcrumb: "Dashboard" | ||
index: | ||
title: "List of %{model_label_plural}" | ||
menu: "List" | ||
breadcrumb: "%{model_label_plural}" | ||
show: | ||
title: "Details for %{model_label} '%{object_label}'" | ||
menu: "Show" | ||
breadcrumb: "%{object_label}" | ||
show_in_app: | ||
menu: "Show in app" | ||
new: | ||
title: "New %{model_label}" | ||
menu: "Add new" | ||
breadcrumb: "New" | ||
link: "Add a new %{model_label}" | ||
done: "created" | ||
edit: | ||
title: "Edit %{model_label} '%{object_label}'" | ||
menu: "Edit" | ||
breadcrumb: "Edit" | ||
link: "Edit this %{model_label}" | ||
done: "updated" | ||
delete: | ||
title: "Delete %{model_label} '%{object_label}'" | ||
menu: "Delete" | ||
breadcrumb: "Delete" | ||
link: "Delete '%{object_label}'" | ||
done: "deleted" | ||
bulk_delete: | ||
title: "Delete %{model_label_plural}" | ||
menu: "Multiple delete" | ||
breadcrumb: "Multiple delete" | ||
bulk_link: "Delete selected %{model_label_plural}" | ||
export: | ||
title: "Export %{model_label_plural}" | ||
menu: "Export" | ||
breadcrumb: "Export" | ||
link: "Export found %{model_label_plural}" | ||
bulk_link: "Export selected %{model_label_plural}" | ||
done: "exported" | ||
history_index: | ||
title: "History for %{model_label_plural}" | ||
menu: "History" | ||
breadcrumb: "History" | ||
history_show: | ||
title: "History for %{model_label} '%{object_label}'" | ||
menu: "History" | ||
breadcrumb: "History" | ||
form: | ||
cancel: "Cancel" | ||
basic_info: "Basic info" | ||
required: "Required" | ||
optional: "Optional" | ||
one_char: "character" | ||
char_length_up_to: "length up to" | ||
char_length_of: "length of" | ||
save: "Save" | ||
save_and_add_another: "Save and add another" | ||
save_and_edit: "Save and edit" | ||
all_of_the_following_related_items_will_be_deleted: "? The following related items may be deleted or orphaned:" | ||
are_you_sure_you_want_to_delete_the_object: "Are you sure you want to delete this %{model_name}" | ||
confirmation: "Yes, I'm sure" | ||
bulk_delete: "The following objects will be deleted, which may delete or orphan some of their related dependencies:" | ||
new_model: "%{name} (new)" | ||
export: | ||
confirmation: "Export to %{name}" | ||
select: "Select fields to export" | ||
fields_from: "Fields from %{name}" | ||
fields_from_associated: "Fields from associated %{name}" | ||
display: "Display %{name}: %{type}" | ||
options_for: "Options for %{name}" | ||
empty_value_for_associated_objects: "<empty>" | ||
click_to_reverse_selection: 'Click to reverse selection' | ||
csv: | ||
header_for_root_methods: "%{name}" # 'model' is available | ||
header_for_association_methods: "%{name} [%{association}]" | ||
encoding_to: "Encode to" | ||
encoding_to_help: "Choose output encoding. Leave empty to let current input encoding untouched: (%{name})" | ||
skip_header: "No header" | ||
skip_header_help: "Do not output a header (no fields description)" | ||
default_col_sep: "," | ||
col_sep: "Column separator" | ||
col_sep_help: "Leave blank for default ('%{value}')" # value is default_col_sep |
Oops, something went wrong.