Django

Code

Ticket #5591 (new)

Opened 8 months ago

Last modified 6 months ago

i18n documentation: Incorrect statement about template variables in {% trans %}

Reported by: elsdoerfer@gmail.com Assigned to: nobody
Component: Documentation Version: SVN
Keywords: Cc:
Triage Stage: Accepted Has patch: 0
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

Description

The documentation at:

http://www.djangoproject.com/documentation/i18n/#in-template-code

states:

It’s not possible to use template variables in {% trans %} — only constant strings, in single or double quotes, are allowed.

However, it works for me (django.templatetags.i18n.TranslateNode?.render() includes a call to resolve_variable).

Attachments

Change History

12/01/07 20:42:42 changed by Simon G <dev@simon.net.nz>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

Add/Change #5591 (i18n documentation: Incorrect statement about template variables in {% trans %})




Change Properties
Action