Closed
Bug 1009745
Opened 12 years ago
Closed 12 years ago
[traceback] Bad translation in locale "pt-BR"
Categories
(support.mozilla.org :: Code Quality, task, P1)
support.mozilla.org
Code Quality
Tracking
(Not tracked)
RESOLVED
FIXED
2014Q2
People
(Reporter: rrosario, Assigned: rrosario)
Details
(Whiteboard: u=contributor c=badges p=1 s=2014.10)
The badge award task has the following code to create the subject of the email:
subject = _("You were awarded the '{title}' badge!".format(
title=_(award.badge.title, 'DB: badger.Badge.title')))
That string should be unicode.
The gettext call shouldn't wrap around the formatting of the string.
See:
https://errormill.mozilla.org/support/support/group/155183/
Traceback:
Bad translation in locale "pt-BR"
Stacktrace (most recent call last):
File "kitsune/sumo/email_utils.py", line 40, in wrapper
return f(locale, *args, **kwargs)
File "kitsune/kbadge/tasks.py", line 20, in _make_mail
title=_(award.badge.title, 'DB: badger.Badge.title')))
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → rrosario
| Assignee | ||
Comment 1•12 years ago
|
||
In a pull request:
https://github.com/mozilla/kitsune/pull/1968
| Assignee | ||
Comment 2•12 years ago
|
||
| Assignee | ||
Comment 3•12 years ago
|
||
Deployed to prod.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•