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

VERIFIED FIXED in 2012-09-06

Status

VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: kumar, Assigned: clouserw)

Tracking

2012-09-06
x86
Mac OS X
Points:
---

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
(Assignee)

Comment 1

6 years ago
The problem was a different string. r108797
Assignee: nobody → clouserw
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED

Comment 2

6 years ago
verified fixed at https://static.addons.mozilla.net/pt-BR/firefox/compatibility/reporter/uriloader@pdf.js
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.