Developer Area/Language Packs/Launchpad New Language Packs: Difference between revisions
From Mahara Wiki
< Developer Area | Language Packs
(Created page with "If you are in charge of the official language packs, you may receive a language pack tar ball from a translator. You may be asked to add the tar ball into the [https://translatio…") |
No edit summary |
||
Line 1: | Line 1: | ||
==Add a new language pack to Launchpad== | |||
If you are in charge of the official language packs, you may receive a language pack tar ball from a translator. You may be asked to add the tar ball into the [https://translations.launchpad.net/mahara-lang Mahara translation project] on Launchpad. This tar ball contains the directory named like 'xy.utf8' which has translated strings for a specific Mahara branch. | If you are in charge of the official language packs, you may receive a language pack tar ball from a translator. You may be asked to add the tar ball into the [https://translations.launchpad.net/mahara-lang Mahara translation project] on Launchpad. This tar ball contains the directory named like 'xy.utf8' which has translated strings for a specific Mahara branch. | ||
Line 5: | Line 6: | ||
===Checkout the Mahara code and Mahara lang script=== | ===Checkout the Mahara code and Mahara lang script=== | ||
You need to checkout the Mahara branch which is | You need to checkout the Mahara branch (1.3, 1.4, 1.5, 1.6, and master) which is compatible to the lang pack. Please see the [[Developer_Area/Developer_Environment||Set up a development environment page]] for more details. | ||
cd ~ | |||
mkdir code | |||
cd code | |||
git clone git://gitorious.org/mahara/mahara.git | |||
cd ~/code/mahara | |||
git checkout -t origin/<Mahara-branch_STABLE> | |||
You also need to checkout the Mahara lang scripts in the [http://gitorious.org/mahara/mahara-scripts mahara-scripts] repository | |||
===Install the language pack tar ball=== | ===Install the language pack tar ball=== |
Revision as of 12:39, 18 September 2012
Add a new language pack to Launchpad
If you are in charge of the official language packs, you may receive a language pack tar ball from a translator. You may be asked to add the tar ball into the Mahara translation project on Launchpad. This tar ball contains the directory named like 'xy.utf8' which has translated strings for a specific Mahara branch.
Here are the instructions
Checkout the Mahara code and Mahara lang script
You need to checkout the Mahara branch (1.3, 1.4, 1.5, 1.6, and master) which is compatible to the lang pack. Please see the |Set up a development environment page for more details.
cd ~ mkdir code cd code git clone git://gitorious.org/mahara/mahara.git cd ~/code/mahara git checkout -t origin/<Mahara-branch_STABLE>
You also need to checkout the Mahara lang scripts in the mahara-scripts repository
Install the language pack tar ball
Generate a .po file
Update the Translator's info in the .po file
"Last-Translator: Son Nguyen <[email protected]>\n" "Language-Team: Launchpad Vietnamese Translators\n"
If you don't include an email address on this line, you (as the uploader) will be credited as the translator after it's uploaded to Launchpad.
Get the last updated .pot template from launchpad
You need one mahara.pot for each branch. You can find them on these bzr branches:
- http://bazaar.launchpad.net/~mahara-lang/mahara-lang/master/files/head:/mahara/
- http://bazaar.launchpad.net/~mahara-lang/mahara-lang/1.5_STABLE/files/head:/mahara/
- http://bazaar.launchpad.net/~mahara-lang/mahara-lang/1.4_STABLE/files/head:/mahara/
- http://bazaar.launchpad.net/~mahara-lang/mahara-lang/1.3_STABLE/files/head:/mahara/