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)

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: nobody → rrosario
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.