Opened 6 years ago

Closed 6 years ago

Last modified 6 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: master
Severity: Keywords:
Cc: richardbarran@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 6 years ago.
Patch for i18n documentation.
13961-addon.diff (705 bytes) - added by Horst Gutmann 6 years ago.
Minor addons to Richard's patch

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by Richard Barran

Attachment: 13961.diff added

Patch for i18n documentation.

comment:1 Changed 6 years ago by Richard Barran

Has patch: set

Changed 6 years ago by Horst Gutmann

Attachment: 13961-addon.diff added

Minor addons to Richard's patch

comment:2 Changed 6 years ago by Horst Gutmann

Triage Stage: UnreviewedAccepted

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

comment:3 Changed 6 years ago by Richard Barran

Cc: richardbarran@… added

comment:4 Changed 6 years ago by Tim Graham

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 Changed 6 years ago by Tim Graham

(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