Difference between revisions of "Service/translate/Pootle2.5"

From Sugar Labs
Jump to navigation Jump to search
(Created page with "'''We are currently in process of porting our ancient (literally) pootle instance to a shinny new pootle 2.5. This wiki is to document the changes in pootle 2.5 the maintainer...")
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''We are currently in process of porting our ancient (literally) pootle instance to a shinny new pootle 2.5. This wiki is to document the changes in pootle 2.5 the maintainers need to care about.'''
+
'''We ported our ancient instance to a shinny new Pootle 2.5. This page was to document the changes in Pootle 2.5 the maintainers needed to care about.'''
  
Configuration Files
+
== Porting Pootle 2.0.6 to 2.5 ==
-------------------
 
  
* The configurations files are now present in /srv/www-sugarlabs/pootle/src/pootle/settings. Any file ending with ".conf" will be picked up by settings.py and settings will be loaded from them.
+
Our old Pootle instance was running 2.0.6 with an SQLITE3 stats database, and a MySQL users database. Pootle upstream merged stats.db and users database into one database in Pootle 2.1.6. So, we first had to migrate 2.0.6 to 2.1.6, run the migration script (which merges stats.db and users database) and get a database dump.
* The configuration files are loaded in alphabatical order. eg: 10-abc.conf will be read before 20-abc.conf, and settings in 20-abc.conf will take priority.
+
 
 +
We then loaded the database dump into 2.5 and let Pootle's migration script do its magic.
 +
 
 +
== Configuration Files ==
 +
 
 +
* are in /srv/www-sugarlabs/pootle/src/pootle/settings. Any file ending with ".conf" will be picked up by settings.py and settings will be loaded from them.
 +
* are loaded in alphabetical order. eg: 10-abc.conf will be read before 20-abc.conf, and settings in 20-abc.conf will take priority.

Latest revision as of 21:52, 17 September 2018

We ported our ancient instance to a shinny new Pootle 2.5. This page was to document the changes in Pootle 2.5 the maintainers needed to care about.

Porting Pootle 2.0.6 to 2.5

Our old Pootle instance was running 2.0.6 with an SQLITE3 stats database, and a MySQL users database. Pootle upstream merged stats.db and users database into one database in Pootle 2.1.6. So, we first had to migrate 2.0.6 to 2.1.6, run the migration script (which merges stats.db and users database) and get a database dump.

We then loaded the database dump into 2.5 and let Pootle's migration script do its magic.

Configuration Files

  • are in /srv/www-sugarlabs/pootle/src/pootle/settings. Any file ending with ".conf" will be picked up by settings.py and settings will be loaded from them.
  • are loaded in alphabetical order. eg: 10-abc.conf will be read before 20-abc.conf, and settings in 20-abc.conf will take priority.