mutoh / locale_rails
- Source
- Commits
- Network (0)
- Issues (0)
- Downloads (6)
- Wiki (1)
- Graphs
-
Tree:
e72b1c3
Masao Mutoh (author)
Sun Nov 08 06:44:06 -0800 2009
commit e72b1c365c4328a78b32bdf0dbd4af59ed5aa485
tree c9e3b645491a71f02c487aeb96aacc3e2e384217
parent 509dbf12dbb72abf311ad6b830360decdc5d9be8
tree c9e3b645491a71f02c487aeb96aacc3e2e384217
parent 509dbf12dbb72abf311ad6b830360decdc5d9be8
| name | age | message | |
|---|---|---|---|
| |
COPYING | Wed Oct 14 11:12:42 -0700 2009 | |
| |
ChangeLog | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
lib/ | ||
| |
sample/ | ||
| |
test/ |
README.rdoc
Ruby-Locale for Ruby on Rails
This library provides some Rails localized functions.
This is useful with Rails i18n backends which doesn’t have auto-detection and some other features includes this library.
Features for Ruby on Rails
- Auto-Detect the locales from the WWW browser
- Action/Fragment caching
- Separated Localized View template file
- Localized Routes
- I18n.t fallback to localized message candidates.
Website
Requirements
- Ruby-1.8.7 or later <www.ruby-lang.org/ja/>
- JRuby-1.1.4 or later <jruby.codehaus.org/>
- Ruby-Locale-0.9.0 or later <locale.rubyforge.org/>
Install
- gem: ($ su)
# gem install locale_rails
Usage
config/environment.rb
Rails::Initializer.run do |config|
:
:
config.gem 'locale'
config.gem 'locale_rails'
end
config/initializer/locale.rb
# Tell the I18n library where to find your translations I18n.supported_locales = ["ja", "en"] I18n.default_locale = "ja"
Support matrix
- locale_rails-2.0.5 - rails-2.3.2,2.3.3,2.3.4
- locale_rails-2.0.4 - rails-2.3.2
- locale_rails-2.0.3 - rails-2.3.2
- locale_rails-2.0.2 - rails-2.3.2
- locale_rails-2.0.1 - rails-2.3.2
- locale_rails-2.0.0 - rails-2.3.2
- locale_rails-0.1.0 - rails-2.1.x
License
This program is licenced under the same licence as Ruby(See COPYING) or LGPL(Lesser General Public License: www.gnu.org/licenses/lgpl-3.0.txt).
Maintainer
Masao Mutoh <mutomasa at gmail.com>

