Changes

Jump to: navigation, search

Service/translate

1,901 bytes removed, 20:20, 23 September 2011
Creating branches:
== Tips ==
=== Creating branches: Create new Pootle project ===
* Each branch (eg: glucose-0.92) is a directory in the translations directoryEach project is a subdirectory inside this directory (eg: glucose-0.90/sugar)These are actually symlinks to directories /var/lib/pootle/checkouts * There's a script called pootlepopulator.py[1] It is invoked as
pootlepopulator.py category GIT_URL checkout_directory [branch]
So, assuming the directory /var/lib/pootle/translations/glucose92 exists,
you can issue these commands:
sudo -u pootle python pootlepopulator.py glucose92 gitorious@git.sugarlabs.org:sugar/mainline.git sugar sucrose-0.92 sudo -u pootle python pootlepopulator.py glucose92 gitorious@git.sugarlabs.org:sugar-base/mainline.git sugar-base sucrose-0.92 sudo -u pootle python pootlepopulator.py glucose92 gitorious@git.sugarlabs.org:sugar-toolkit/mainline.git sugar-toolkit sucrose-0.92 pootlepopulator script can be found in maintainance/helpers directory in /var/lib/pootle As these projects doesn't have pots we most copy them from master cp /var/lib/pootle/checkouts/glucose/sugar/po/sugar.pot /var/lib/pootle/checkouts/glucose92/sugar/po/ cp /var/lib/pootle/checkouts/glucose/sugar-base/po/sugar-base.pot /var/lib/pootle/checkouts/glucose92/sugar-base/po/ cp /var/lib/pootle/checkouts/glucose/sugar-toolkit/po/sugar-toolkit.pot /var/lib/pootle/checkouts/glucose92/sugar-toolkit/po/ Pootlepopulator cannot create symlinks (what add_langs does for activities)then gonzalo had to modify it to only create symlinks and not cloning thus we finnaly run.   sudo -u pootle python create_translation_links.py glucose92 sugar sucrose-0.92 sudo -u pootle python create_translation_links.py glucose92 sugar-base sucrose-0.92 sudo -u pootle python create_translation_links.py glucose92 sugar-toolkit sucrose-0.92 * Once this is done, you need to create Create new project in Pootle admin - goto 'menu, ''admin->projects''' and create a project called Sucrose 0.90 with thecode sucrose-0.90 (same as the directory name);* Add all needed langs on the pootle web ui. * '''Restart''' Pootle and Apache if the new project does not show up after this.;* '''Add''' the new projects section to ''maintenance/helpers/potupdater/the [[#Files|project_list.ini'']] file to describe new {{Code|.pot}} location;* '''Copy strings from master to your branch'''cd /var/libRun {{Code|misc/pootle/translations/glucose92for DIR in `ls ../glucose`; do cp ../glucose/$DIR*.po ./$DIRcron}} script from {{Code|pootle}} user to generate all sufficient files;  * In web UI, you must update project Call ''Templates'', all lang admins must ''update Update from templates'' for all languages in each language.  * '''Your newly created project is createdto peek up {{Code|.''' [1] http:po}} files symlinked by {{Code|misc//gitpootle.sugarlabs.org/pootle-helpers/mainline/blobs/master/admin/pootlepopulatorcron}} script.py
=== Adding activities ===

Navigation menu