Paths of empty pofiles must not start with a slash.

Bug #321459 reported by Henning Eggers
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Henning Eggers

Bug Description

When the UI creates a new pofile (e.g. a new language is translated for the first time), it sets the the name to be <potemplate-directory>/<translationdomain>-<languagecode>.po. If the the potemplate directory is empty because the potemplate was uploaded without a template, the / is still left in. Thus the pofile path begins with a /.

This causes the file not be included in a directory named like the translationdomain when translations are exported into a tarball.

The leading / must be surpressed when creating the filename.

Source hint: POTemplate._composePOFilePath()

Changed in rosetta:
status: New → Triaged
status: Triaged → Confirmed
Changed in rosetta:
assignee: nobody → henninge
importance: Undecided → Medium
milestone: none → 2.2.2
Changed in rosetta:
status: Confirmed → In Progress
Revision history for this message
Henning Eggers (henninge) wrote :

Fixed in RF 7748.

Changed in rosetta:
status: In Progress → Fix Committed
Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers