Forums | Mahara Translation

Translations /
How to convert countries.php from Moodle to Mahara


David Mudrák's profile picture
Posts: 45

08 June 2009, 14:18

Moodle defines the list of countries in countries.php using the following format:

$string['CZ'] = 'Czech Republic';

In Mahara, country names are defined in lang/xx.utf8/mahara.php using the format:

$string['country.cz'] = 'Czech Republic';

I have used the following commands to convert country names translated in the Moodle language package to the Mahara format:

$ grep "\$string" countries.php | awk -v APO="'" -F\' '{print $1 APO "country." tolower($2) APO $3 APO $4 APO $5}' -
anonymous profile picture
Account deleted
Posts: 1643

08 June 2009, 18:02

Hi - that should make things easy for people, I added a link to this thread from the translating basics page (at the bottom). Good job Cool
2 results