I've released sgte version 0.4.0.
Changes (thanks to Tobbe for both):
- internationalization support through gettext
- autoconf support
Gettext is a package in jungerl written by Tobbe. It uses .po files in
the same format of the GNU Gettext project.
A gettext howto can be found on trapexit:
http://wiki.trapexit.org/index.php/Gettext_-_An_internationalization_package.
Text to be translated is writte in a sgte template with the following
syntax:
$txt:{Hello World}$
When sgte:render is called pass the language code along with other data
(e.g. {gettext_lc, "it"}).
sgte in the render calls gettext:key2str("Hello World", "it").
If the language code passed is defined the translated string is returned
("Ciao Mondo") else sgte returns the key ("Hell World" in this case).
cheers,
filippo