Koozali.org: home of the SME Server

Translate web administration interface

dtnsolutions

Translate web administration interface
« on: September 20, 2005, 11:58:12 AM »
Hi all,
I plan to translate the web administration interface, is there any howto available?
Thanks in advance
Tien Nguyen

Offline berdie

  • *
  • 237
  • +0/-0
Re: Translate web administration interface
« Reply #1 on: September 20, 2005, 02:43:24 PM »
Quote from: "dtnsolutions"
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/LanguageTranslationProject

The structure of the localizations can be found in /etc/e-smith/locale.

1. New locale tree
Copy the tree "en-us" to your temp-Directory and rename the root-folder to your planned directory.

2. The "general"-file
Go to the file "general" in the "/etc/FormMagick"-folder" and replace the "trans"-comments with your favorites in your language.

3. The "functions"-files
Go 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 translation
Re-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-Console
If 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_MESSAGES

Rgds.
Dietmar

dtnsolutions

Translate web administration interface
« Reply #2 on: September 20, 2005, 05:16:00 PM »
Dear Dietmar,
Thank you so much for a very clear guide, I'm going to translate to Vietnamese. I also plan to build some rpm for SME server and build a customized ISO. Is there any up-to-date guide? The one I found here is for version 6.0 which is not suitable for version 7.0 beta. I couldn't find the source rpm of 7.0beta4. Do you have any idea?
Thank you,
Regards,
Tien Nguyen