This just contains i18n country translations
Ruby
Pull request Compare This branch is 98 commits behind onomojo:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
rails/locale
spec
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
i18n-country-translations-0.0.2.gem
i18n-country-translations.gemspec

README.rdoc

I18nCountryTranslations

I18n Country Translations - The purpose of this gem is to simply provide country translations. The gem is intended to be easy to combine with other gems that require i18n country translations so we can have common i18n country translation gem.

If you're doing anything with country names and translations, there's no need to reinvent the wheel and add your own translations. Just use this gem's country translations and skip the hassle of having to add and manage each country translation for each locale.

Installation

Add to your Gemfile:

gem 'i18n-country-translations'

Usage

I18n.t(:US, :scope => :countries)

or

t(:US, :scope => :countries)

You can easily start adding country translations to the locales with help from this script: gist.github.com/2128684 It will generate a new yml file that contains the country translations for the locale specified. Take the contents of this file and move it into the correct locale file. So far only en-US.yml and es.yml have them added.

Contributors

Brian McQuay - www.onomojo.com

License

MIT or GPL

Special thanks

github.com/svenfuchs/rails-i18n