Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (24 sloc) 1.63 KB
This plugin provides a web interface for translating Rails I18n texts (requires Rails 2.2 or higher) from one locale to another. The plugin has been tested only with the simple I18n backend that ships with Rails. I18n texts are read from and written to YAML files under config/locales.
To translate to a new locale you need to add a YAML file for that locale that contains the locale as the top key and at least one translation.
Please note that there are certain I18n keys that map to Array objects rather than strings and those are currently not dealt with by the translation UI. This means that Rails built in keys such as date.day_names need to be translated manually directly in the YAML file.
To get the translation UI to write the YAML files in UTF8 you need to install the ya2yaml gem.
The translation UI finds all I18n keys by extracting them from I18n lookups in your application source code. In addition it adds all :en and default locale keys from the I18n backend.
Obtain the source with:
./script/plugin install git://
To mount the plugin, add the following to your config/routes.rb file:
Translate::Routes.translation_ui(map) if RAILS_ENV != "production"
Now visit /translate in your web browser to start translating.
- Rails 2.2 or higher
- The ya2yaml gem if you want your YAML files written in UTF8 encoding.
- Peter Marklund (programming)
- Joakim Westerlund (web design)
Many thanks to for sponsoring the development of this plugin.
Copyright (c) 2009 Peter Marklund, released under the MIT license
Jump to Line
Something went wrong with that request. Please try again.