Forums | Mahara Community

Open Discussion /
configuring poedit for translating Mahara


anonymous profile picture
Account deleted
Posts: 15

19 June 2012, 8:07

I wont to make .po file from mahara lang pack. I already translated strings in adminlang but now i need .po file to upload it to lounchpad. I dont know hot to set right keys so that poedit can read all my strings from php files.

 

Tnx

 

t.

anonymous profile picture
Account deleted
Posts: 808

19 June 2012, 17:08

Hi Tomislav, there is a script to convert from a mahara language pack to a po file here:

http://gitorious.org/mahara/mahara-scripts/blobs/raw/master/mahara-langpacks/php-po.php

You need to give this script (1) the location of an English langpack (or a Mahara web folder), (2) the location of your translated langpack, and (3) the name of the output po file.

For example,

php php-po.php /path/to/mahara/htdocs /path/to/dataroot/langpacks/hr.utf8 hr.po

You might need to edit some of the lines in the header of the resulting po file before opening it in poedit.

anonymous profile picture
Account deleted
Posts: 15

20 June 2012, 4:05

Tnx a lot. Work perfect.

3 results