mauricesvay/moonmoon — pull request #29 by pascalchevrel (2012-03-12 14:50:13+00:00)
Title: l10n support for moonmoon

Simple l10n support for moonmoon (no locale detection , no rtl support, no complex cases such as complex plural support), but it would work for the vast majortity of languages.
'
I have updated all templates to call the translated string, it falls back to English if the string is not translated.

A call to a translated string is:
_g('my string')
or
Simplel10n::getString('my string')

I have added a select box in the install Wizard to choose between English and French (I translated the French strings). Older moonmoon instances will get their config file updated with English as default locale.

The translation is provided via a text file of the form localecode.lang, strings are on of this form:
;English string
Translation below the English string without a ;