Changes

no edit summary
Line 36: Line 36:     
* 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 64:  
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 75:  
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
     
628

edits