|
| Re: How to do translation ? [message #10 is a reply to message #5] |
Fri, 05 March 2010 06:07  |
|
Hi,
sorry for late reply.
First of all, there is a small bug in vpsAdmin 1.0.1 regarding translations. Please update line 15 with:
and line 49 with:
bindtextdomain("vpsAdmin", WWW_ROOT."/lang/locale/");
Afterwards, you can use lang/locale-data/vpsadmin.po as a source for your translation. The file can be translated in any UTF8 text editor or in any po-editor.
Once, you are finished, the file can be transformed into .mo file by running following command:
msgfmt -cv -o vpsAdmin.mo vpsadmin.po
Note: gettext package has to be present in your system.
Your new vpsAdmin.mo file has to be put into right place. So, please move it into
lang/locale/[you lang code].utf8/LC_MESSAGES/ . Note: those directories has to be created by you.
Example of correct path for translation for Slovak language is: lang/locale/sk_SK.utf8/LC_MESSAGES/ .
I hope that this is not too complicated . I will updated wiki soon + I will add Slovak translation to GIT today.
Tomas
Developer of vpsAdmin
|
|
|