[Bugs] #2643 UNSP: Commit links in Pootle missing
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Mar 29 13:08:33 EDT 2011
#2643: Commit links in Pootle missing
------------------------------------------+---------------------------------
Reporter: cjl | Owner: RafaelOrtiz
Type: defect | Status: closed
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: localization | Version: Unspecified
Severity: Unspecified | Resolution: fixed
Keywords: | Status_field: Unconfirmed
Distribution: Unspecified | Seeta_dev:
------------------------------------------+---------------------------------
Changes (by RafaelOrtiz):
* status: reopened => closed
* resolution: => fixed
Comment:
This is due to the fact that add_langs.py script were not runned after a
new lang was created from pootle.
from the readme
==== admin/pootlepopulator.py ====
This script checks out a project from Git into
/var/lib/pootle/checkouts/..., and
then creates the appropiate symlinks in /var/lib/pootle/translations/...
Usage: pootlepopulator.py category GIT_URL checkout_directory git_branch
Eg: pootlepopulator.py glucose git://dev.laptop.org/git/sugar sugar
master
==== admin/add_langs.py ====
The pootlepopulator.py script has a minor problem. Once a project is
visible, and
a new language is added to it from the web based interface, the new PO
file gets
created in /var/lib/pootle/translations/... where it should ideally be a
symlink.
To counter this, admin/add_langs.py has to be run after a new language has
been
added.
This script runs without any arguments and crawls through the
subdirectories of
/var/lib/pootle/translations/... When it finds a non-symlink PO file, it
moves it
to the right location, git adds it and makes the correct symlink.
I've run the script to add langs..setting as fixed because we know the
cause of the bug.
running the script takes ages and there could be langs with this links
still missing, will be added as demanded.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/2643#comment:15>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list