Forum Search:
vpsAdmin.org

Home » Development section of vpsAdmin » Localization » How to do translation ? (Want to translate this good work !)
How to do translation ? [message #5] Mon, 15 February 2010 17:46 Go to next message
xebeche  is currently offline xebeche
Messages: 3
Registered: February 2010
New to the forum

Hello,

I just wanna know how to help this project with translation.

Regards,

Xebeche
Re: How to do translation ? [message #10 is a reply to message #5] Fri, 05 March 2010 06:07 Go to previous message
tomas.srnka  is currently offline tomas.srnka
Messages: 7
Registered: March 2010
Location: Prague / Bratislava
New to the forum

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:
$lang = "en_US.utf8";

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 Smile. I will updated wiki soon + I will add Slovak translation to GIT today.

Tomas


Developer of vpsAdmin
Goto Forum:
  


Current Time: Tue Sep 7 10:09:54 EDT 2010

Total time taken to generate the page: 0.00923 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software