Closed Bug 842763 Opened 12 years ago Closed 12 years ago

[traceback] KeyError: u'Product' (/sl/kb/kako-se-uporablja-povecava)

Categories

(support.mozilla.org :: Knowledge Base Software, task, P1)

Tracking

(Not tracked)

RESOLVED FIXED
2013Q1

People

(Reporter: willkg, Assigned: willkg)

Details

(Whiteboard: u=user c=wiki p=0 s=2013.4)

KeyError: u'Product' Stacktrace (most recent call last): File "django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "django/views/decorators/http.py", line 41, in inner return func(request, *args, **kwargs) File "mobility/decorators.py", line 23, in wrapper return f(request, *args, **kw) File "wiki/views.py", line 138, in document return jingo.render(request, template, data) File "jingo/__init__.py", line 75, in render rendered = render_to_string(request, template, context) File "jingo/__init__.py", line 93, in render_to_string return template.render(get_context()) File "jingo/__init__.py", line 189, in render return super(Template, self).render(context_dict) File "jinja2/environment.py", line 891, in render return self.environment.handle_exception(exc_info, True) File "/data/www/support.mozilla.org/kitsune/apps/wiki/templates/wiki/document.html", line 26, in top-level template code {% set meta = meta + [('description', document.current_revision.summary)] %} File "/data/www/support.mozilla.org/kitsune/apps/wiki/templates/wiki/base.html", line 7, in top-level template code {% set styles = ('wiki',) %} File "/data/www/support.mozilla.org/kitsune/templates/base.html", line 14, in top-level template code <title>{% block title %}{% if title %}{{ title }} | {% endif %}{{ _('Mozilla Support', 'site_title') }}{% endblock %}</title> File "/data/www/support.mozilla.org/kitsune/apps/wiki/templates/wiki/document.html", line 12, in block "title" {% block title %}{{ document.title }} | {% if not products or products|count > 1 %}{{ _('Mozilla Support', 'site_title') }}{% else %}{{ _('{product} Help')|f(product=_(product.title, 'DB: products.Product.title')) }}{% endif %}{% endblock %} File "jingo/helpers.py", line 26, in f return string.format(*args, **kwargs) I just pushed to production and we immediate got like 20k of these errors.
Er, not 20k, but 12k. Mike tracked it down to this: #: apps/products/templates/products/documents.html:10 apps/products/templates/products/product.html:9 apps/products/templates/products/mobile/documents.html:8 #: apps/products/templates/products/mobile/product.html:8 apps/wiki/templates/wiki/document.html:12 msgid "{product} Help" msgstr "{Product} Pomoč" That's in the sl locale. I fixed it and committed to svn and pushed again.
I haven't seen another one in 8 minutes. Marking this FIXED.
Assignee: nobody → willkg
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: u=user c=wiki p=0 2013.4
Target Milestone: --- → 2013Q1
Summary: [traceback] KeyError: u'Product' → [traceback] KeyError: u'Product' (/sl/kb/kako-se-uporablja-povecava)
Adding Vito, as he's our Slovenian l10n god.
Summary: [traceback] KeyError: u'Product' (/sl/kb/kako-se-uporablja-povecava) → [traceback] KeyError: u'Product'
Vito: I saw a bunch of cases where text in between { } was uppercased in the sl strings. I fixed one under this bug and a bunch under bug #842774.
Whiteboard: u=user c=wiki p=0 2013.4 → u=user c=wiki p=0 s=2013.4
Summary: [traceback] KeyError: u'Product' → [traceback] KeyError: u'Product' (/sl/kb/kako-se-uporablja-povecava)
Red ears alert ... It was not me, it was Google Translate V2;\. I'll keep my eyes pealed for the rest of the material. Sl has fallen back a mile or two last few months, so I had some catching up to do. Thanks, guys! smo
This should have been a P1. Marking it as such.
Priority: -- → P1
You need to log in before you can comment on or make changes to this bug.