Translation Team/Pootle Administration: Difference between revisions

Godiard (talk | contribs)
No edit summary
m update template
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Note/important|This page was moved|to http://wiki.sugarlabs.org/go/Service/Pootle. Please keep working there.}}
=== Work in progress .... ===
=== Work in progress .... ===


Pootle in Sugar is actually unmaintained.
Pootle in Sugar is ''actually'' unmaintained.


We (godiard / martin_xsa / erikos) are trying to resolve the pending issues because we need working translations but need a real maintainer.
We (godiard / martin_xsa / erikos / dirakx) are trying to resolve the pending issues because we need working translations but need a real maintainer.


The last maintainer was Sayamindu Dasgupta and we asked he our doubts, i am putting here this information.
The last maintainer was Sayamindu Dasgupta and we asked he our doubts, i am putting here this information.
Line 9: Line 13:
== Basic info: ==
== Basic info: ==


The pootle directory is /var/lib/pootle
The pootle directory is:
The translations live in /var/lib/pootle/translations
/var/lib/pootle
 
The translations live in:
 
/var/lib/pootle/translations


== Adding activities ==  
== Adding activities ==  
Line 36: Line 44:


* Each branch (eg: glucose-0.90) is a directory in the translations directory
* Each branch (eg: glucose-0.90) 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


* 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/sucrose-0.90 exists,
you can issue a command:
you can issue a command:


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


The script can be found in maintainance/helpers directory in /var/lib/pootle
The script can be found in maintainance/helpers directory in /var/lib/pootle


* Once this is done, you need to create project in Pootle admin - go
* Once this is done, you need to create project in Pootle admin - go
Line 65: Line 72:
The git operations must be done by the pootle user:
The git operations must be done by the pootle user:


sudo -u pootle git log
sudo -u pootle git log


sudo -u pootle git push origin  sucrose-0.82
sudo -u pootle git push origin  sucrose-0.82


== Resolving conflicts ==  
== Resolving conflicts ==  
Line 76: Line 83:
we can do a pull preserving the info in pootle:
we can do a pull preserving the info in pootle:


sudo -u pootle git pull -s ours
sudo -u pootle git pull -s ours




Line 82: Line 89:


http://git.sugarlabs.org/pootle-helpers/mainline/trees/master/potupdater
http://git.sugarlabs.org/pootle-helpers/mainline/trees/master/potupdater
== Restarting Pootle ==
/etc/init.d/apache2 restart
service pootle start
== References ==
* http://translate.sourceforge.net/wiki/pootle/installation.
This page is now moved to http://wiki.sugarlabs.org/go/Service/Pootle