Closed Bug 846668 Opened 11 years ago Closed 11 years ago

[ja] /search wrong translation

Categories

(Participation Infrastructure :: Phonebook, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: giorgos, Assigned: Milos)

References

Details

Traceback (most recent call last):

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/contrib/auth/decorators.py", line 20, in _wrapped_view
    return view_func(request, *args, **kwargs)

  File "/data/www/mozillians.org/mozillians/apps/phonebook/views.py", line 38, in wrapped
    return f(request, *args, **kwargs)

  File "/data/www/mozillians.org/mozillians/apps/phonebook/views.py", line 200, in search
    return render(request, 'phonebook/search.html', d)

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/shortcuts/__init__.py", line 44, in render
    return HttpResponse(loader.render_to_string(*args, **kwargs),

  File "/data/www/mozillians.org/mozillians/vendor/src/django/django/template/loader.py", line 176, in render_to_string
    return t.render(context_instance)

  File "/data/www/mozillians.org/mozillians/vendor/src/jingo/jingo/__init__.py", line 189, in render
    return super(Template, self).render(context_dict)

  File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 891, in render
    return self.environment.handle_exception(exc_info, True)

  File "/data/www/mozillians.org/mozillians/apps/phonebook/templates/phonebook/search.html", line 1, in top-level template code
    {% extends "base.html" %}

  File "/data/www/mozillians.org/mozillians/templates/base.html", line 139, in top-level template code
    {% block main_content %}{% endblock %}

  File "/data/www/mozillians.org/mozillians/apps/phonebook/templates/phonebook/search.html", line 95, in block "main_content"
    {% trans invite=url('invite'), query=form.cleaned_data.q %}

  File "/usr/lib64/python2.6/site-packages/jinja2/_markupsafe/__init__.py", line 98, in __mod__
    return self.__class__(unicode.__mod__(self, arg))

ValueError: unsupported format character '?' (0x300d) at index 27


<WSGIRequest
path:/ja/search,
I see multiple Jinja template errors in the following lines. Maybe that causes the problem.

#: apps/phonebook/templates/phonebook/search.html:96
msgid ""
"<p id=\"not-found\"> Sorry, we cannot find a group or person related to \"%(query)s\". </p> <p> Maybe they're not a Mozillian yet? <a href=\"%(invite)s\">Invite this person</a> to create a profile. "
"</p>"
msgstr ""
"<p id=\"not-found\">「%(query)」に関連するグループや人物は見つかりませんでした。</p><p>お探しの人物がまだ "
"Mozillian ではないのかもしれません。</p><p><a href=\"%"
"(invite)s\">その人を招待</a>してプロフィールを作成してもらって下さい。</p>"



Milos can you help fix?


Thanks!
Maybe I broke this when I did a string merge? Not really sure why that would break unicode characters, though... I didn't make any manual changes to any files.
Summary: [Japanise] /search wrong translation → [ja] /search wrong translation
We were missing an "s" in "%(query)s". I fixed it r113703, so it should be good now.
Confirmed that Milos' change fixes this. Thanks.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Bumping to verified per comment 4
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.