Skip to content

Howto: localize messages

Akira FUNAI edited this page Nov 6, 2010 · 2 revisions

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).

Step 1 – Install GNU GetText

http://www.gnu.org/software/gettext/

Step 2 – Initialize index.po file

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

Step 3 – Edit index.po file

edit {your locale}/index.po

Changes are not reflected until Bike is restarted.