Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#13961 closed (fixed)

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

Reported by: 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 richardb 5 years ago.
Patch for i18n documentation.
13961-addon.diff (705 bytes) - added by zerok 5 years ago.
Minor addons to Richard's patch

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by richardb

Patch for i18n documentation.

comment:1 Changed 5 years ago by richardb

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Changed 5 years ago by zerok

Minor addons to Richard's patch

comment:2 Changed 5 years ago by zerok

  • Triage Stage changed from Unreviewed to Accepted

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

comment:3 Changed 5 years ago by richardb

  • Cc richardbarran@… added

comment:4 Changed 4 years ago by timo

  • Resolution set to fixed
  • Status changed from new to closed

(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 4 years ago by timo

(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