Opened 17 years ago
Closed 17 years ago
#5073 closed (invalid)
Blocktrans makes key lookups fail.
Reported by: | 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 %}
Note:
See TracTickets
for help on using tickets.
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 :)