Opened 10 years ago

Closed 10 years ago

#23534 closed Cleanup/optimization (fixed)

Docs aren't clear if you can use certain template tags inside blocktrans

Reported by: Eduard Luca Owned by: Nadja Deininger
Component: Documentation Version: 1.7
Severity: Normal Keywords: afraid-to-commit
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

There isn't any reference in the docs about whether you can use {% if %} or {% for %} inside {% blocktrans %} blocks.

There should be a note stating whether such template tags are allowed.

Change History (8)

comment:1 by Baptiste Mispelon, 10 years ago

Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

Hi,

That's a good idea, thanks.

comment:2 by Daniele Procida, 10 years ago

Keywords: afraid-to-commit added

I've marked this ticket as especially suitable for people following the ​Don't be afraid to commit tutorial at the PyCon UK 2014 sprints. If you're tackling this ticket, please don't hesitate to ask me for guidance if you'd like any, either here or on the Django IRC channels, where I can be found as EvilDMP.

comment:3 by Duane Hilton, 10 years ago

Owner: changed from nobody to Duane Hilton
Status: newassigned

comment:4 by Duane Hilton, 10 years ago

Owner: Duane Hilton removed
Status: assignednew

comment:5 by Daniele Procida, 10 years ago

I've marked this ticket as especially suitable for people following the ​Don't be afraid to commit tutorial at the PyCon Ireland 2014 sprints. If you're tackling this ticket, please don't hesitate to ask me for guidance if you'd like any, either here or on the Django IRC channels, where I can be found as EvilDMP.

comment:6 by Nadja Deininger, 10 years ago

Owner: set to Nadja Deininger
Status: newassigned

comment:7 by Nadja Deininger, 10 years ago

I've submitted a pull request that adds the information at https://github.com/django/django/pull/3354.

comment:8 by Baptiste Mispelon <bmispelon@…>, 10 years ago

Resolution: fixed
Status: assignedclosed

In 905a9a263bea16ce3332870ec7b3e525ff09e978:

Fixed #23534 -- Added documentation on blocktrans tags

Mentioned that other block tags are not allowed inside
a blocktrans template tag.

Thanks to edu2004eu for reporting the issue.

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