Closed Bug 787535 Opened 12 years ago Closed 12 years ago

malformed pt-BR localization on '{0} problem report'

Categories

(Marketplace Graveyard :: Consumer Pages, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
2012-09-06

People

(Reporter: kumar, Assigned: clouserw)

Details

Either '{0} success report' or '{0} success reports' has a typo in the pt-BR localization where the format string is incorrect.

traceback: http://sentry.dmz.phx1.mozilla.com/addons/group/590/

ValueError: Single '}' encountered in format string

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "compat/views.py", line 184, in reporter_detail
    name=name, guid=guid, form=form))

  File "jingo/__init__.py", line 80, in render
    rendered = render_to_string(request, template, context)

  File "jingo/__init__.py", line 98, in render_to_string
    return template.render(**get_context())

  File "jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/www/addons.mozilla.org/zamboni/apps/compat/templates/compat/reporter_detail.html", line 1, in top-level template code
    {% extends "impala/base_shared.html" %}

  File "/data/www/addons.mozilla.org/zamboni/templates/impala/base_shared.html", line 4, in top-level template code
    {% extends 'impala/base.html' %}

  File "/data/www/addons.mozilla.org/zamboni/templates/impala/base.html", line 174, in top-level template code
    {% block main_content %}

  File "/data/www/addons.mozilla.org/zamboni/templates/impala/base.html", line 179, in block "main_content"
    {% block content %}{% endblock %}

  File "/data/www/addons.mozilla.org/zamboni/apps/compat/templates/compat/reporter_detail.html", line 18, in block "content"
    works.failure)|f(works.failure|numberfmt) }}</a>

  File "jingo/helpers.py", line 25, in f
    return string.format(*args, **kwargs)
Target Milestone: --- → 2012-09-06
The problem was a different string. r108797
Assignee: nobody → clouserw
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.