Translation tools

Table of Contents 

The following tools may be useful to translate your projects:

Gettext

Translation file format, use gettext:
http://en.wikipedia.org/wiki/Gettext
http://www.gnu.org/software/gettext/gettext.html
Documentation: http://www.gnu.org/software/gettext/gettext.html
See also: http://linux.overshoot.tv/wiki/development/gettext (with troubleshooting section).

The translation files generated by gettext can be translated using poedit:
http://en.wikipedia.org/wiki/Poedit

Translate Toolkit & Pootle: online translation tools:
http://translate.sourceforge.net/wiki/

Support per p language

Bash

Gettext within a shell script:
http://www.gnu.org/software/gettext/manual/html_node/sh.html#sh

How to add localization support to your bash scripts
http://mywiki.wooledge.org/BashFAQ/098
Note: the tutorial in the link above is slightly outdated.
1) You need to change all the "echo" statements with "eval_gettext" statements, as per:
http://www.gnu.org/software/gettext/manual/html_node/Preparing-Shell-Scr...
2) bash --dump-po-strings is deprecated. Use xgettext instead, e.g.:

xgettext -o - do.generate_images.sh > translations/overshoot_smoking.pot

See also:
http://www.linuxtopia.org/online_books/advanced_bash_scripting_guide/loc...