Opened 9 years ago

Closed 9 years ago

#5073 closed (invalid)

Blocktrans makes key lookups fail.

Reported by: Poromenos <poromenos@…> Owned by: Malcolm Tredinnick
Component: Internationalization Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

This code makes the key lookup fail, until I remove the blocktrans tags:

{% blocktrans %}
We are sorry, {{ user.get_profile.nickname }}, you are not currently registered with us.
{% endblocktrans %}

Change History (1)

comment:1 Changed 9 years ago by Collin Grady <cgrady@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Resolution: invalid
Status: newclosed

This link: http://www.djangoproject.com/documentation/i18n/#in-template-code explains the proper way to use blocktrans when you need something like that.

This is expected behavior, and if you follow the examples above it will work fine :)

Note: See TracTickets for help on using tickets.
Back to Top