Rosetta fails to locate second_lang_msgset message ID when changing alternate language.

Bug #1419 reported by Mika Tapojärvi
62
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Carlos Perelló Marín

Bug Description

Normally Rosetta displays all the translatable items (translated or not) and gives an option to change this ("Alt:" and "Show:" comboboxes). If I change these to "Finnish" and "untranslated", I get a system error.

To reproduce this bug:
1. go to https://launchpad.net/distros/ubuntu/breezy/+sources/ubuntu-docs/+pots/faqguide/fi/+translate
2. set "Alt:" to "Finnish" and "Show:" to "untranslated"
3. click "Change"
-> " Sorry, a system error occurred"

Traceback of the error:

    * Module canonical.launchpad.browser.pofile, line 406, in processTranslations
      second_lang_pofile=self.second_lang_pofile)
    * Module canonical.launchpad.browser.pomsgset, line 43, in __init__
      self.second_lang_msgset = second_lang_pofile[potmsgset.primemsgid_.msgid]
    * Module canonical.launchpad.database.pofile, line 244, in __getitem__
      return self.messageSet(msgid_text)
    * Module canonical.launchpad.database.pofile, line 239, in messageSet
      raise NotFoundError(key)

NotFoundError: u'PDF, HTML, and XHTML versions of this document will use hyperlinks to handle cross-referencing.'

summary: + Cannot change the scope of the displayed translation items.
Changed in rosetta:
status: New → Accepted
Revision history for this message
Jhonny Everson (khronnuz) wrote :
description: updated
Revision history for this message
Christian Reis (kiko) wrote :

None of these still happen, unfortunately. Does anyone have an updated link?

Revision history for this message
Mika Tapojärvi (mtapoja) wrote :

Some of those URLs produce the error, but it looks like certain things need to be set. An example: I'm a Finnish Translator, so Rosetta knows this. When I log in and go here: https://launchpad.net/distros/ubuntu/breezy/+sources/ubuntu-docs/+pots/faqguide/fi/+translate
and select "Alt" = "Finnish", "Show" = "Unstranslated" and click "Change", the error occurs. Error doesn't occur when I select for example "Alt" = "Dogrid". So I need to log in, go to the language I'm translating (the "/fi/" in URL in this case), select the language I'm translating and then try to display the untranslated item.

description: updated
Christian Reis (kiko)
description: updated
summary: - Cannot change the scope of the displayed translation items.
+ Traceback of the error:
+
+ * Module canonical.launchpad.browser.pofile, line 406, in processTranslations
+ second_lang_pofile=self.second_lang_pofile)
+ * Module canonical.launchpad.browser.pomsgset, line 43, in __init__
+ self.second_lang_msgset = second_lang_pofile[potmsgset.primemsgid_.msgid]
+ * Module canonical.launchpad.database.pofile, line 244, in __getitem__
+ return self.messageSet(msgid_text)
+ * Module canonical.launchpad.database.pofile, line 239, in messageSet
+ raise NotFoundError(key)
+
+ NotFoundError: u'PDF, HTML, and XHTML versions of this document will use
+ hyperlinks to handle cross-referencing.'
Christian Reis (kiko)
description: updated
summary: - Traceback of the error:
-
- * Module canonical.launchpad.browser.pofile, line 406, in processTranslations
- second_lang_pofile=self.second_lang_pofile)
- * Module canonical.launchpad.browser.pomsgset, line 43, in __init__
- self.second_lang_msgset = second_lang_pofile[potmsgset.primemsgid_.msgid]
- * Module canonical.launchpad.database.pofile, line 244, in __getitem__
- return self.messageSet(msgid_text)
- * Module canonical.launchpad.database.pofile, line 239, in messageSet
- raise NotFoundError(key)
-
- NotFoundError: u'PDF, HTML, and XHTML versions of this document will use
- hyperlinks to handle cross-referencing.'
+ Normally Rosetta displays all the translatable items (translated or not)
+ and gives an option to change this ("Alt:" and "Show:" comboboxes). If I
+ change these to "Finnish" and "untranslated", I get a system error.
Revision history for this message
Mika Tapojärvi (mtapoja) wrote : Re: [Bug 1419] Changing the scope of the displayed translations gives a system error

Hi

> Public bug report changed:
> https://launchpad.net/malone/bugs/1419
>
> *** This bug has been marked a duplicate of 908 ***

Based on the description of bug#908 I have to disagree that
these two (1419 and 908) are duplicates. The situation in
1419 still exists and can be reproduced the way I'm describing
there and 908 seems to be closed. Also the comment on 908
from Christian Reis suggests that something is still wrong.

I don't really know, but if these two are marked as duplicates
and one of them is closed, then isn't the other one closed as
well? The problem described in 1419 still exists.

Sorry if I just don't understand something here. But then
please explain;)

And keep up the good work! Br,
--
----------------------------------------------------
Mika Tapojärvi - SSE Oy mobile: +358 40 555 3261
web: http://www.sse.fi mailto:<email address hidden>

Revision history for this message
Christian Reis (kiko) wrote :

Yeah, I duped it by mistake, apologies.

Changed in rosetta:
assignee: nobody → carlos
status: Accepted → PendingUpload
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

Remote bug watches

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