[traceback] bad translated string for ko. (/ko/questions/953857)

RESOLVED FIXED in 2013Q3

Status

P1
normal
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: willkg, Assigned: willkg)

Tracking

unspecified
2013Q3

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: u=user c=questions p=1 s=2013.14)

https://errormill.mozilla.org/support/support/group/41169/



Internal Server Error: /ko/questions/951624

Stacktrace (most recent call last):

  File "django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "newrelic/api/object_wrapper.py", line 216, in __call__
    self._nr_instance, args, kwargs)
  File "newrelic/hooks/framework_django.py", line 475, in wrapper
    return wrapped(*args, **kwargs)
  File "mobility/decorators.py", line 23, in wrapper
    return f(request, *args, **kw)
  File "session_csrf/__init__.py", line 127, in wrapper
    response = f(request, *args, **kw)
  File "kitsune/questions/views.py", line 328, in answers
    return render(request, template, extra_kwargs)
  File "django/shortcuts/__init__.py", line 44, in render
    return HttpResponse(loader.render_to_string(*args, **kwargs),
  File "django/template/loader.py", line 176, in render_to_string
    return t.render(context_instance)
  File "jingo/__init__.py", line 193, in render
    return super(Template, self).render(context_dict)
  File "newrelic/api/object_wrapper.py", line 216, in __call__
    self._nr_instance, args, kwargs)
  File "newrelic/api/function_trace.py", line 82, in dynamic_wrapper
    return wrapped(*args, **kwargs)
  File "jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)
  File "/data/www/support.mozilla.org/kitsune/kitsune/questions/templates/questions/answers.html", line 17, in top-level template code
    {% set meta = (('robots', 'noindex'),) %}
  File "/data/www/support.mozilla.org/kitsune/kitsune/questions/templates/questions/base.html", line 6, in top-level template code
    {% set scripts = ('questions', 'libs/jqueryui') %}
  File "/data/www/support.mozilla.org/kitsune/kitsune/sumo/templates/base.html", line 177, in top-level template code
    {% block content %}{% endblock %}
  File "/data/www/support.mozilla.org/kitsune/kitsune/questions/templates/questions/answers.html", line 56, in block "content"
    {% trans count=question.num_visits %}
  File "jinja2/_markupsafe/__init__.py", line 98, in __mod__
    return self.__class__(unicode.__mod__(self, arg))


Sentry is showing a ? which isn't useful. I'm almost positive the error is coming from this:

Warning: missing tokens: %(count)s
msgid: "%(count)s view"
msgid_plural: "%(count)s view"
msgstr[0]: "%(count) 봄"


Dennis shows that as a Warning because it doesn't know how to find malformed tokens. %(count) is a malformed token--it needs an 's' at the end.

Right now there are 5.2k instances of this error and it means no one in the ko locale can read the support forum. Given that, making it a P1 and tossing it in this sprint.
Depends on: 895313
Got tired of waiting on bug #895313, so I fixed it manually and committed it to svn:

Committed revision 118220.

Removing the depends.

Pushing to prod now.
Assignee: nobody → willkg
No longer depends on: 895313
Pushed to stage and prod and verified that it works in both places with the urls in comment #2.

Marking as FIXED.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.