Exported Firefox translations contain wrong references to languages other than the current

Bug #715854 reported by David Planella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Jeroen T. Vermeulen

Bug Description

We've been trying to generate new language packs for Lucid for the Ubuntu 10.04.2 release next week, and we've noticed that some languages had errors, i.e. Firefox translations were broken. The initial pointer was to po2xpi, the tool that converts the Firefox translations from the intermediate format in which they are exported from Launchpad to the native Mozilla format, so I reported bug 715733.

Looking at it more closely, it seems that po2xpi is working as expected. What does happen is that it gets data it doesn't expect: the exported PO files from Launchpad contain references to several locales in their comments, where they should only contain references to en-US.

An example from the fi.po file from the latest Lucid full language pack export. Notice the 'en-ZA' locale where it should be 'en-US'. References to other locales in the files also contain 'hr', 'pt-PT', 'ku', 'oc', 'en-ZA', 'es-AR' and 'es-CL'

#: chrome/en-ZA/locale/browser/aboutDialog.dtd(copyright)
msgctxt "browser/aboutDialog.dtd"
msgid "Credits"
msgstr "Tekijät"

Tags: qa-ok

Related branches

Revision history for this message
David Planella (dpm) wrote :
Changed in launchpad:
importance: Undecided → Critical
status: New → Triaged
David Planella (dpm)
description: updated
description: updated
Changed in launchpad:
assignee: nobody → Jeroen T. Vermeulen (jtv)
Revision history for this message
David Planella (dpm) wrote :

Just a quick update in case it helps debugging this: I've requested 3 single file translation exports (Catalan translation), corresponding to Lucid, Maverick and Natty.

Of the 3 of them, the Lucid and Maverick translations had the problem, whereas the Natty one didn't.

Maverick and Lucid have Firefox 3.6, which means that the templates are identical and translations should be shared. Natty has got Firefox 4.0, so it's a different template. I'm not sure why the Natty template does not have the problem, as it should share its identical messages.

Revision history for this message
Данило Шеган (danilo) wrote : Re: [Bug 715854] Re: Exported Firefox translations contain wrong references to languages other than the current

У чет, 10. 02 2011. у 17:20 +0000, David Planella пише:
>
> Maverick and Lucid have Firefox 3.6, which means that the templates
> are identical and translations should be shared. Natty has got Firefox
> 4.0, so it's a different template. I'm not sure why the Natty template
> does not have the problem, as it should share its identical messages.

My guess would be that en-US.xpi file from pre-4.0 included en-*
translations in some shape or form as well (eg. as separate .jar files,
though that shouldn't have 'worked') which is why the paths are there.
It's just a guess, though, and I am sure Jeroen will figure it out :)

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.03
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → Fix Committed
tags: added: qa-ok
removed: qa-needstesting
Changed in launchpad:
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

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.