Hi all,
I plan to translate the web administration interface, is there any howto available?
Thanks in advance
Tien Nguyen
Tien Nguyen,
which language do you plan? Please join the language-translation-project here:
http://no.longer.valid/phpwiki/index.php/LanguageTranslationProjectThe structure of the localizations can be found in
/etc/e-smith/locale.
1. New locale treeCopy the tree "
en-us" to your temp-Directory and rename the root-folder to your planned directory.
2. The "general"-fileGo to the file "general" in the "
/etc/FormMagick"-folder" and replace the "
trans"-comments with your favorites in your language.
3. The "functions"-filesGo to the files in the "
/etc/e-smith/web/functions"-folder. There are a lot of files to be to translate in your language. Each of these files has the lexicon-command at the top, which has to change to your country-code.
Every "trans"-comment should be translated to your favorites.
4. Using the new translationRe-copy your new tree with your translations to
/etc/e-smith/locale.
Use the command
/etc/e-smith/events/actions/navigation-conf for activating your translations.
5. Server-ConsoleIf you plan to translate also the server-console, go to the "
/usr/share/locale/en_US/LC_MESSAGES"-folder.
There is a file called "
server-console.po", which consists of a lot of commands. Each command has a
msgid in english and a
msgstr for the translations to other languages. For translating, you should copy this file to your temp-directory.
You have to translate these msgid's so that you have a translation in each of the msgstr's.
After doing that, you have to compile your file
server-console.po to a
server-console.mo-file.
For doing this, use the command
/usr/bin/msgfmt2.py -o server-console.po (Version 6.01-01) or the command
/usr/bin/msgfmt server-console.po -o server-console.mo (Version 7.0 B4)
Finally, copy the server-console.mo-file to your locale-tree
/usr/share/locale/my_country_code/LC_MESSAGESRgds.
Dietmar