Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#13961 closed (fixed)

i18n documentation should specify how to include a reverse url lookup in a {% blocktrans %} tag

Reported by: Jim Garrison Owned by: nobody
Component: Documentation Version: dev
Severity: Keywords:
Cc: richardbarran@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

#7239 is the original ticket which suggests a way to use reverse url lookups within a {% blocktrans %} tag. That ticket was eventually marked wontfix in favor of having people use the {% url path.to.view as the_url %} syntax, but the i18n documentation was never updated to explicitly show people how this should work.

Attachments (2)

13961.diff (647 bytes ) - added by Richard Barran 14 years ago.
Patch for i18n documentation.
13961-addon.diff (705 bytes ) - added by Horst Gutmann 14 years ago.
Minor addons to Richard's patch

Download all attachments as: .zip

Change History (7)

by Richard Barran, 14 years ago

Attachment: 13961.diff added

Patch for i18n documentation.

comment:1 by Richard Barran, 14 years ago

Has patch: set

by Horst Gutmann, 14 years ago

Attachment: 13961-addon.diff added

Minor addons to Richard's patch

comment:2 by Horst Gutmann, 14 years ago

Triage Stage: UnreviewedAccepted

Just s/url/URL/g and removed some unnecessary whitespaces :-)

comment:3 by Richard Barran, 14 years ago

Cc: richardbarran@… added

comment:4 by Tim Graham, 13 years ago

Resolution: fixed
Status: newclosed

(In [15100]) Fixed #13961 - note that reverse URL lookups can't be done within a blocktrans tag. Thanks garrison for the report and richardb and zerok for work on the patch.

comment:5 by Tim Graham, 13 years ago

(In [15101]) [1.2.X] Fixed #13961 - note that reverse URL lookups can't be done within a blocktrans tag. Thanks garrison for the report and richardb and zerok for work on the patch.

Backport of r15100 from trunk.

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