Service/translate: Difference between revisions

Line 82: Line 82:
== Creating branches: ==
== Creating branches: ==


* Each branch (eg: glucose-0.90) is a directory in the translations directory
* Each branch (eg: glucose-0.92) is a directory in the translations directory
Each project is a subdirectory inside this directory (eg: glucose-0.90/sugar)
Each project is a subdirectory inside this directory (eg: glucose-0.90/sugar)
These are actually symlinks to directories /var/lib/pootle/checkouts
These are actually symlinks to directories /var/lib/pootle/checkouts
Line 88: Line 88:
* There's a script called pootlepopulator.py[1] It is invoked as
* There's a script called pootlepopulator.py[1] It is invoked as
pootlepopulator.py category GIT_URL checkout_directory [branch]
pootlepopulator.py category GIT_URL checkout_directory [branch]
So, assuming the directory /var/lib/pootle/translations/sucrose-0.90 exists,
So, assuming the directory /var/lib/pootle/translations/glucose92 exists,
you can issue a command:
you can issue these commands:
 
pootlepopulator.py glucose92 gitorious@git.sugarlabs.org:sugar/mainline.git  sugar sucrose-0.92
 
pootlepopulator.py glucose92 gitorious@git.sugarlabs.org:sugar/mainline.git  sugar-base sucrose-0.92
pootlepopulator.py glucose92 gitorious@git.sugarlabs.org:sugar/mainline.git  sugar-toolkit sucrose-0.92


pootlepopulator.py sucrose-0.90 git://dev.laptop.org/git/sugar sugar sucrose-0.90


pootlepopulator.py glucose92  sugar-base sucrose-0.92