Howto: localize messages
Akira FUNAI edited this page Nov 6, 2010
·
2 revisions
- Home
- Howto: quick start
- Howto: make your own app
- Howto: more advanced markups
- Howto: configure with a database
- Howto: deploy on Heroku.com
- Howto: localize messages
- Howto: serve static files
Bike fully supports i18n in GNU gettext manner. You should prepare index.po file of your locale to localize messages (you don’t need a compiled index.mo).
http://www.gnu.org/software/gettext/
The locale files for Bike resides in:
{INSTALLATION DIRECTORY}/gems/bike-0.*.*/locale/
The installation directory is shown by gem environment
.
Go to the locale/ directory and type:
mkdir {your locale}
msginit -i ./index.pot -o {your locale}/index.po
edit {your locale}/index.po
Changes are not reflected until Bike is restarted.