Changes

Jump to: navigation, search

Service/translate

6 bytes added, 18:49, 22 March 2011
order
More information on language administrator duties can be found on [[Translation_Team/Administration_QuickStart|this page]]
 
== Notes ==
 
How to manipulate users:
 
django-admin shell --settings=pootle.settings
>>> from django.contrib.auth.models import User
>>> u = User.objects.get(username='bernie')
>>> u.is_superuser = True
>>> u.save()
 
 
Various scripts documented here:
 
http://git.sugarlabs.org/projects/pootle-helpers
 
Scheduled jobs :
 
pootle@pootle:~$ cat /etc/cron.d/pootle
MAILTO="godiard@sugarlabs.org"
MAILTO="rafael@sugarlabs.org"
# m h dom mon dow user command
30 00 * * * pootle /usr/bin/python /var/lib/pootle/maintenance/helpers/potupdater/pogenerator.py /var/lib/pootle/maintenance/helpers/potupdater/project_list.ini
#00 00 * * * pootle git --git-dir=/var/lib/pootle/checkouts/etoys/.git pull
45 00 * * * pootle python /var/lib/pootle/langpackgen/src/LangPackGen/pack_generator.py /var/lib/pootle/langpackgen/data/langpackgen_84.ini /var/lib/pootle/public_html/packs/0.84
40 00 * * * pootle python /var/lib/pootle/langpackgen/src/LangPackGen/pack_generator.py /var/lib/pootle/langpackgen/data/langpackgen_82.ini /var/lib/pootle/public_html/packs/0.82
50 00 * * * pootle /var/lib/pootle/maintenance/helpers/potupdater/check_unmerged_translations.s h
55 00 * * * pootle /var/lib/pootle/maintenance/helpers/potupdater/check_bad_ownership.sh
 
 
''Refresh stats'', needed when the database and the checked out modules get out of sync:
 
/usr/lib/python-django/bin/django-admin.py refresh_stats --settings=pootle.settings
 
Important directories in /var/lib/pootle:
 
'''checkouts''': modules are checked out in this directory. pogenerator.py pulls from git and svn so we have updated sources, then it generates a new .pot file from them. Translated strings get reflected in the .po files in each module, and when the language maintainer clicks the Commit to VCS link, get pushed back to the upstream module.
 
'''dbs''': internal db used by Pootle, no need to mess directly with it.
 
'''maintenance''': contains some sugar-specific scripts to help maintain our Pootle instance, they are managed in http://git.sugarlabs.org/projects/pootle-helpers
 
'''po''': contains xapian indexes for the search feature.
 
'''translations''': more Pootle internal data
== Upgrade notes ==
####### Checking POT for Write (master) ######
 == Notes == How to manipulate users:  django-admin shell --settings=pootle.settings >>> from django.contrib.auth.models import User >>> u = User.objects.get(username='bernie') >>> u.is_superuser = True >>> u.save()  Various scripts documented here: http://git.sugarlabs.org/projects/pootle-helpers Scheduled jobs :  pootle@pootle:~$ cat /etc/cron.d/pootle MAILTO="godiard@sugarlabs.org" MAILTO="rafael@sugarlabs.org" # m h dom mon dow user command 30 00 * * * pootle /usr/bin/python /var/lib/pootle/maintenance/helpers/potupdater/pogenerator.py /var/lib/pootle/maintenance/helpers/potupdater/project_list.ini #00 00 * * * pootle git --git-dir=/var/lib/pootle/checkouts/etoys/.git pull 45 00 * * * pootle python /var/lib/pootle/langpackgen/src/LangPackGen/pack_generator.py /var/lib/pootle/langpackgen/data/langpackgen_84.ini /var/lib/pootle/public_html/packs/0.84 40 00 * * * pootle python /var/lib/pootle/langpackgen/src/LangPackGen/pack_generator.py /var/lib/pootle/langpackgen/data/langpackgen_82.ini /var/lib/pootle/public_html/packs/0.82 50 00 * * * pootle /var/lib/pootle/maintenance/helpers/potupdater/check_unmerged_translations.s h 55 00 * * * pootle /var/lib/pootle/maintenance/helpers/potupdater/check_bad_ownership.sh  ''Refresh stats'', needed when the database and the checked out modules get out of sync:  /usr/lib/python-django/bin/django-admin.py refresh_stats --settings=pootle.settings Important directories in /var/lib/pootle: '''checkouts''': modules are checked out in this directory. pogenerator.py pulls from git and svn so we have updated sources, then it generates a new .pot file from them. Translated strings get reflected in the .po files in each module, and when the language maintainer clicks the Commit to VCS link, get pushed back to the upstream module. '''dbs''': internal db used by Pootle, no need to mess directly with it. '''maintenance''': contains some sugar-specific scripts to help maintain our Pootle instance, they are managed in http://git.sugarlabs.org/projects/pootle-helpers '''po''': contains xapian indexes for the search feature. '''translations''': more Pootle internal data  === Pootle scripts: ===
*http://git.sugarlabs.org/pootle-helpers/mainline/trees/master/potupdater
*/usr/lib/python2.6/dist-packages/translate/storage/versioncontrol/git.py (Translate)
=== Tips ===
* If you have a commit error file because of only read git url, please rm the

Navigation menu