Opened 5 years ago

Closed 5 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 Changed 5 years ago by Baptiste Mispelon

Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

Hi,

That's a good idea, thanks.

comment:2 Changed 5 years ago by Daniele Procida

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 Changed 5 years ago by Duane Hilton

Owner: changed from nobody to Duane Hilton
Status: newassigned

comment:4 Changed 5 years ago by Duane Hilton

Owner: Duane Hilton deleted
Status: assignednew

comment:5 Changed 5 years ago by Daniele Procida

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 Changed 5 years ago by Nadja Deininger

Owner: set to Nadja Deininger
Status: newassigned

comment:7 Changed 5 years ago by Nadja Deininger

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

comment:8 Changed 5 years ago by Baptiste Mispelon <bmispelon@…>

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