Line 130: |
Line 130: |
| | | |
| === Adding activities === | | === Adding activities === |
− | *Do:
| |
− | ''Note:'''''The git url must be writable by Pootle.'''
| |
| | | |
− | 2!root@pootle:/var/lib/pootle/maintenance/helpers/admin# sudo -u pootle python ./pootlepopulator.py honey git://git.sugarlabs.org/fototoon/mainline.git fototoon
| + | Before registering new activity on http://translation.sugarlabs.org, make sure that: |
− | ******** Cloning git://git.sugarlabs.org/fototoon/mainline.git to /var/lib/pootle/checkouts/honey/fototoon *********
| |
− | Running git clone git://git.sugarlabs.org/fototoon/mainline.git /var/lib/pootle/checkouts/honey/fototoon
| |
− | Initialized empty Git repository in /var/lib/pootle/checkouts/honey/fototoon/.git/
| |
− | ******** Switching to branch master *********
| |
− | Running git checkout --track -b master origin/master
| |
− | Running git pull
| |
− | Already up-to-date.
| |
− | ********* Git operation completed, moving to next stage ********
| |
− | ********* Searching for POT file *********
| |
− | ********* Found POT file FotoToon.pot *********
| |
− | ********* Starting to symlink files *********
| |
− | Linking /var/lib/pootle/checkouts/honey/fototoon/po/es.po to /var/lib/pootle/translations/honey/es/fototoon.po
| |
− | Linking /var/lib/pootle/checkouts/honey/fototoon/po/fr.po to /var/lib/pootle/translations/honey/fr/fototoon.po
| |
− | Linking /var/lib/pootle/checkouts/honey/fototoon/po/FotoToon.pot to /var/lib/pootle/translations/honey/templates/fototoon.pot
| |
− | ********* Done Symlinking *********
| |
| | | |
− | * Do '''update from templates''' on the ''templates'' project on Pootle's frontend. | + | * New activity is being hosted on http://git.sugarlabs.org; |
| + | * The {{Code|pootle}} user was added to the repository with commit access rights; |
| + | * You have a proper {{Code|GIT_URL}} to clone repository from, e.g., {{Code|git://git.sugarlabs.org/cartoon-builder/mainline.git}}; that might be found on home page in gitorious, e.g., http://git.sugarlabs.org/cartoon-builder, in ''Clone & push urls'' field with selector ''GIT''; |
| + | * You know the proper {{Code|CATEGORY}} name to register the project in, |
| + | * There is an unique {{Code|NAME}} of activity, this name will be used as a name of project in Pootle and directory name; |
| + | * You know the proper {{Code|BRANCH}} in Git repository to use for translation; by default, it is {{Code|master}}. |
| | | |
− | *Then run the '''add_langs.py''' script in order to have all the lang.po in place.
| + | To process the registration, login to pootle.sugarlabs.org and enter: |
| | | |
− | *Then your activity must be in place to be translated and ''commit to VCS/update from VCS'' links must be activated.
| + | sudo -u pootle python /var/lib/pootle/maintenance/helpers/admin/pootlepopulator.py ''<CATEGORY>'' ''<GIT_URL>'' /var/lib/pootle/checkouts/''<CATEGORY>''/''<NAME>'' [''<BRANCH>''] |
| + | |
| + | After that, for [http://git.sugarlabs.org/pootle-helpers pootle-helper] project in {{Code|potupdater/project_list.ini}}, add the following strings: |
| + | |
| + | [/var/lib/pootle/checkouts/''<CATEGORY>''/''<NAME>''/po/''<.pot-filename>''] |
| + | project = ''<NAME>'' |
| + | vcs = git |
| + | method = bundlebuilder |
| + | layout = gnu |
| + | |
| + | Commit new changes, and pull from on pootle VM: |
| + | |
| + | (cd /var/lib/pootle/maintenance/helpers; sudo -u pootle git pull origin master) |
| + | |
| + | Do ''update from templates'' on the ''templates'' project on Pootle's frontend. And wait until daily cron job will populate languages for newly registered project, or run it immediately: |
| + | |
| + | sudo -u pootle python /var/lib/pootle/maintenance/helpers/admin/add_langs.py |
| + | |
| + | Then your activity must be in place to be translated and ''commit to VCS/update from VCS'' links must be activated. |
| | | |
| === Working with git in the pootle server === | | === Working with git in the pootle server === |