Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.

Latest commit

 

History

History
43 lines (23 loc) · 1.36 KB

README.markdown

File metadata and controls

43 lines (23 loc) · 1.36 KB

Rails plugin to fetch and update core translations

This Rails plugin adds Rails core translations to your application.

Rails core translations are downloaded from http://github.com/svenfuchs/rails-i18n by default.

Install

./script/plugin install git://github.com/zargony/rails-i18n-updater.git
rake i18n:update

This installs the rails-i18n-updater plugin into vendor/plugins/rails-i18n-updater and downloads core translations to vendor/rails-locales.

Update

To update to the latest core translations, use:

rake i18n:update

How it works

The plugin provides the rake task i18n:update which uses git to download the latest core translations to vendor/rails-locales. This rake task can be started manually whenever you want to update to the latest core translations.

On application start, the plugin automatically adds downloaded core translations to I18n.load_path. Only locales you used in your applications are added and they're prepended to the load path so you can override the defaults in your own locale files.

Limitations

  • You need git in your PATH for rake i18n:update to work correctly.
  • Your application must use the simple I18n backend (using .yml or .rb files for locales).

Copyright (c) 2009 Andreas Neuhaus, released under the MIT license