Difference between revisions of "Service/translate"

From Sugar Labs
Jump to navigation Jump to search
Line 60: Line 60:
 
Important directories:
 
Important directories:
  
'''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.
+
'''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.
+
'''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
+
'''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.
+
'''po''': contains xapian indexes for the search feature.
  
'''translations''': more Pootle internal data
+
'''translations''': more Pootle internal data
  
 
== Upgrade notes ==
 
== Upgrade notes ==

Revision as of 12:09, 28 September 2010

Hostnames


Hosted on

Machine/pootle


Administrative contact


Sysadmins

Language Administrators

Language administrators are typically native speakers of a given language that take on responsibility (granted by a Pootle administrator after a request to the Localization list) for reviewing and committing PO files for a given language. Contacting language administrators is generally done by posting to the Localization list.

More information on language administrator duties can be found on 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:~$ crontab -l
MAILTO="sayamindu@sugarlabs.org"
# m h  dom mon dow   command
30 00 * * * /usr/bin/python /var/lib/pootle/maintenance/helpers/potupdater/pogenerator.py  /var/lib/pootle/maintenance/helpers/potupdater/project_list.ini
#00 00 * * * git --git-dir=/var/lib/pootle/checkouts/etoys/.git pull
45 00 * * * 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 * * * 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

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:

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

See Also