Closed
Bug 1254199
Opened 8 years ago
Closed 5 years ago
[traceback] DjangoTranslation instance has no attribute 'plural'
Categories
(support.mozilla.org :: General, defect)
support.mozilla.org
General
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mythmon, Unassigned)
References
()
Details
(Whiteboard: u=user [ee-needtofix])
https://sentry.prod.mozaws.net/operations/sumo/group/241352/ AttributeError DjangoTranslation instance has no attribute 'plural' Stacktrace (most recent call last): File "django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "newrelic/hooks/framework_django.py", line 499, in wrapper return wrapped(*args, **kwargs) File "mobility/decorators.py", line 23, in wrapper return f(request, *args, **kw) File "kitsune/questions/views.py", line 332, in question_list return render(request, template, data) File "kitsune/sumo/monkeypatch.py", line 128, in _more_info resp = fun(request, template_name, *args, **kwargs) File "django/shortcuts.py", line 67, in render template_name, context, request=request, using=using) File "django/template/loader.py", line 99, in render_to_string return template.render(context, request) File "django_jinja/backend.py", line 105, in render return self.template.render(context) File "newrelic/api/function_trace.py", line 98, 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/jinja2/questions/question_list.html", line 28, in top-level template code {{ url('questions.list', product_slug)|urlparams(None, request.GET, **kwargs) }} File "/data/www/support.mozilla.org/kitsune/kitsune/questions/jinja2/questions/base.html", line 10, in top-level template code {% set SURVEY_GIZMOS = ['questions'] %} File "/data/www/support.mozilla.org/kitsune/kitsune/sumo/jinja2/base.html", line 189, in top-level template code {% block content %}{% endblock %} File "/data/www/support.mozilla.org/kitsune/kitsune/questions/jinja2/questions/question_list.html", line 46, in block "content" {% trans recent_unanswered_count, url=questions_url(filter='recently-unanswered', show='all') %} File "jinja2/ext.py", line 144, in ngettext rv = __context.call(func, __singular, __plural, __num) File "django/utils/translation/__init__.py", line 88, in ungettext return _trans.ungettext(singular, plural, number) File "django/utils/translation/trans_real.py", line 381, in ungettext return do_ntranslate(singular, plural, number, 'ungettext') File "django/utils/translation/trans_real.py", line 358, in do_ntranslate return getattr(t, translation_function)(singular, plural, number) File "python2.7/gettext.py", line 414, in ungettext tmsg = self._catalog[(msgid1, self.plural(n))]
Reporter | ||
Updated•8 years ago
|
Assignee: nobody → mcooper
Status: NEW → ASSIGNED
https://support.mozilla.org/xx/questions/firefox?sort=desc&tagged=escalate&show=all is one URL which triggers this, for reference
Comment 2•8 years ago
|
||
xx is a test locale and it should not be in the link! its working fine with bn-BD locale
(In reply to Safwan Rahman from comment #2) > xx is a test locale and it should not be in the link! its working fine with > bn-BD locale Sure; and that's probably why the current code throws this Python exception/traceback, which we'll likely want to mitigate / address, somehow.
Reporter | ||
Comment 4•8 years ago
|
||
This affects the `tn` locale too, at this URL: https://support.mozilla.org/tn/questions/979658
Updated•8 years ago
|
Whiteboard: u=user → u=user [ee-needtofix]
Comment 5•8 years ago
|
||
I suspect that this error is related to missing tn/ and xx/ directory in sumo-l10n. According to Sentry the URLs causing this error are hit by 99% by search engines. Also the TN and XX language is not listed in SUMO's language selection dropdown so users can only directly visit those urls. Based on these facts I'd give very low priority on this bug
Assignee: mcooper → nobody
Severity: normal → minor
Status: ASSIGNED → NEW
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•