Code

Opened 7 years ago

Closed 7 years ago

#5073 closed (invalid)

Blocktrans makes key lookups fail.

Reported by: Poromenos <poromenos@…> Owned by: mtredinnick
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 %}

Attachments (0)

Change History (1)

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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 :)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.