Translation message link points to wrong message number
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
j.c.sackett |
Bug Description
If I go to:
and then I click on the magnifying glass icon to view more info about this message or to e.g. get a link for this message, I am taken to the following URL:
https:/
which takes me to a non-existing page in Launchpad.
The number in the link should be 78 (for this particular message) instead of 0. I guess this has to do with the filter being used, but the link is still wrong.
On a separate issue, strangely enough, this message does not show the location of the string in the source code.
While I cannot find an exact match in the recent oopses, I think this OOPS-34f95b6e8613730d7df67780f8d0ffb7 is an example. While working with a batch, there is a link to a zero message. This link in the oops is not in the batch when I see it, which makes me think the batch or the data is mutating.
Related branches
- Curtis Hovey (community): Approve (code)
-
Diff: 107 lines (+41/-4)4 files modifiedlib/lp/translations/browser/tests/test_translationmessage_view.py (+31/-0)
lib/lp/translations/browser/tests/translationmessage-views.txt (+2/-1)
lib/lp/translations/browser/translationmessage.py (+2/-0)
lib/lp/translations/templates/translations-macros.pt (+6/-3)
Changed in launchpad: | |
importance: | High → Critical |
description: | updated |
tags: | added: 404 |
summary: |
- Message link points to wrong message number + Translation message link points to wrong message number |
description: | updated |
Changed in launchpad: | |
assignee: | nobody → j.c.sackett (jcsackett) |
Changed in launchpad: | |
status: | Triaged → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
I could confirm this too, tested on Firefox 3.5.1 on Windows Vista. This is definately a bug in Rosetta.
Issue #2: This is not a bug. The location of the string is usually written in po/pot file like this:
# Comment
#: Location of string
msgid "String"
msgstr "Translated string"
The file with that string is just missing the "#: ... " row.