Changes

Jump to navigation Jump to search
34 bytes removed ,  10:18, 25 September 2011
Line 111: Line 111:     
=== Create new Pootle project ===
 
=== Create new Pootle project ===
  −
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:
      
* Create new project in Pootle admin menu, ''admin->projects'';
 
* Create new project in Pootle admin menu, ''admin->projects'';
 
* Add all needed langs;
 
* Add all needed langs;
* Add new section to the [[#Files|project_list.ini]] file to describe new {{Code|.pot}} location;
+
* Checkout all sources using command:
 +
 
 +
sudo -u pootle -i python maintenance/helpers/admin/pootlepopulator.py ''pootle-project'' ''git-clone-url'' ''pootle-filename-wo-po-suffix'' ''git-branch''
 +
 
 +
* Add new sections to the [[#Files|project_list.ini]] file to describe new {{Code|.pot}} locations;
 
* Run {{Code|misc/pootle.cron}} script from {{Code|pootle}} user to generate all sufficient files;
 
* Run {{Code|misc/pootle.cron}} script from {{Code|pootle}} user to generate all sufficient files;
 
* Call ''Update from templates'' for all languages in newly created project to peek up {{Code|.po}} files symlinked by {{Code|misc/pootle.cron}} script.
 
* Call ''Update from templates'' for all languages in newly created project to peek up {{Code|.po}} files symlinked by {{Code|misc/pootle.cron}} script.

Navigation menu