Opened 17 years ago

Closed 17 years ago

#5073 closed (invalid)

Blocktrans makes key lookups fail.

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

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 by Collin Grady <cgrady@…>, 17 years ago

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