Forums | Mahara Community

Developers /
Testing a Mahara translation file outside of Launchpad


Joost Elshoff's profile picture
Posts: 21

29 June 2018, 2:14

Hi all,

Just wondering whether it is possible to locally test a completed .po translation file before submitting it to Launchpad. As I'm not a member of the translators' group, I'm asking it here in the Developers' forum.

We've been working on completing the Dutch translations for our clients, but would really like to test the completed .po file before anything else.

I've read about the po-php.pl script, and was wondering if it is part of every Mahara installation or if there's another way.

Hope you can give me some advice on how to go about this.

Thanks in advance!

Cecilia Vela's profile picture
Posts: 110

04 July 2018, 17:37

Hi Joost,

To manually translate the .po files to a langpack for testing you need to run a script we have in a different repository from Mahara code.

Follow the instructions in the link below. You don't need to do the last step (create the tar balls)
https://wiki.mahara.org/wiki/Developer_Area/Language_Pack_Generation#Manually_create_a_tar_ball_of_a_language_for_testing

After this you'll have a langpack ready to be installed. You need to: 

  1. Make sure you have a "langpacks" directory inside your dataroot directory - one should have already been created for you.
  2. Copy the obtained directory to the 'langpacks' directory inside your dataroot.

I took the last instructions from this link below, but there are a few steps that you can skip since you don't need to download a langpack or decompress it:
https://wiki.mahara.org/wiki/System_Administrator%27s_Guide/Next_Steps#Install_a_Language_Pack

I hope this helps.

Cheers,

Cecilia

2 results