Viewing a translation page fails in unix2newlines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Carlos Perelló Marín |
Bug Description
Viewing a translation page fails with the following traceback:
Module canonical.
in getTranslation
return helpers.
Module
canonical.
raise
ValueError('\'%r\' is already converted' % text)
ValueError: 'u'Por favor, entre
com sua senha para executar:\r\n %s'' is already converted
Which suggests that unix2newlines is running on an already-converted string.
Some example pages which may fail (or that failed at least once):
https:/
https:/
Error Reference: OOPS-A466 from bug 6101 which is a dupe of this one.
https:/
description: | updated |
Changed in launchpad: | |
status: | New → Accepted |
description: | updated |
Changed in rosetta: | |
assignee: | nobody → carlos |
status: | Confirmed → In Progress |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
* Module zope.tales.tales, line 698, in evaluate srv/launchpad. net/production/ launchpad/ lib/canonical/ launchpad/ templates/ pofile- translate. pt getTranslation( index)) >
{' args': (),
' context' : <POFile at 0x2aa080d450>,
' default' : <object object at 0x2a955c01d0>,
' loop': {},
' nothing' : None,
' options' : {},
' repeat' : {},
' request' : <zope.publisher .browser. BrowserRequest instance URL=https:/ /launchpad. net/products/ sympa/+ series/ main/+pots/ sympa/hu/ +translate>,
' template' : <zope.app. pagetemplate. viewpagetemplat efile.ViewPageT emplateFile object at 0x2a9ecccad0>,
' usage': <zope.pagetempl ate.pagetemplat e.TemplateUsage object at 0x2aa18d9a10>,
' view': <zope.app. pagetemplate. simpleviewclass .SimpleViewClas s from /srv/launchpad. net/production/ launchpad/ lib/canonical/ launchpad/ templates/ pofile- translate. pt object at 0x2aa17e2a90>,
' views': <zope.app. pagetemplate. viewpagetemplat efile.ViewMappe r object at 0x2aa18d9150>} pythonexpr, line 59, in __call__ _traceback_ info__: (messageSet. getTranslation( index)) launchpad. browser. pomsgset, line 176, in getTranslation launchpad. helpers, line 829, in unix2windows_ newlines
/
Line 320, Column 24
Expression: <PythonExpr (messageSet.
- Names:
* Module zope.tales.
_
* Module <string>, line 0, in ?
* Module canonical.
* Module canonical.
raise ValueError('\'%r\' is already converted' % text)
ValueError: 'u'A levelez\xe9si lista kezel\u0151 nem tudta tov\xe1bb\xedtani \xd6nnek a levelet, mert nem tudta el\xe9rni a szem\xe9lyes tanus\xedtv\ xe1ny\xe1t (e-mail: %1).\r\n'' is already converted