[Django] #23534: Docs aren't clear if you can use certain template tags inside blocktrans

25 views
Skip to first unread message

Django

unread,
Sep 22, 2014, 5:05:15 AM9/22/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
-------------------------------+--------------------
Reporter: edu2004eu | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
There isn't any reference in the
[https://docs.djangoproject.com/en/1.7/topics/i18n/translation/#std
:templatetag-blocktrans docs] about whether you can use `{% if %}` or `{%
for %}` inside `{% blocktrans %}` blocks.

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

--
Ticket URL: <https://code.djangoproject.com/ticket/23534>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 22, 2014, 5:13:24 AM9/22/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
--------------------------------------+------------------------------------
Reporter: edu2004eu | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by bmispelon):

* needs_docs: => 0
* needs_better_patch: => 0
* type: Bug => Cleanup/optimization
* needs_tests: => 0
* stage: Unreviewed => Accepted


Comment:

Hi,

That's a good idea, thanks.

--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:1>

Django

unread,
Sep 22, 2014, 8:25:21 AM9/22/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
--------------------------------------+------------------------------------
Reporter: edu2004eu | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Resolution:
Keywords: afraid-to-commit | Triage Stage: Accepted

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by evildmp):

* keywords: => afraid-to-commit


Comment:

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''.

--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:2>

Django

unread,
Sep 30, 2014, 7:34:05 PM9/30/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
--------------------------------------+------------------------------------
Reporter: edu2004eu | Owner: duane9
Type: Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: afraid-to-commit | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by duane9):

* owner: nobody => duane9
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:3>

Django

unread,
Oct 4, 2014, 10:51:26 PM10/4/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
--------------------------------------+------------------------------------
Reporter: edu2004eu | Owner:
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: afraid-to-commit | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by duane9):

* owner: duane9 =>
* status: assigned => new


--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:4>

Django

unread,
Oct 13, 2014, 10:22:07 AM10/13/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
--------------------------------------+------------------------------------
Reporter: edu2004eu | Owner:
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: afraid-to-commit | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by EvilDMP):

I've marked this ticket as especially suitable for people following the

​[https://dont-be-afraid-to-commit.readthedocs.org Don't be afraid to
commit tutorial] at the [http://python.ie/pycon/2014 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''.

--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:5>

Django

unread,
Oct 13, 2014, 10:26:25 AM10/13/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
-------------------------------------+-------------------------------------
Reporter: edu2004eu | Owner:
Type: | machinelady
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: afraid-to-commit | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by machinelady):

* owner: => machinelady


* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:6>

Django

unread,
Oct 13, 2014, 11:38:49 AM10/13/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
-------------------------------------+-------------------------------------
Reporter: edu2004eu | Owner:
Type: | machinelady
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 1.7

Severity: Normal | Resolution:
Keywords: afraid-to-commit | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by machinelady):

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

--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:7>

Django

unread,
Oct 13, 2014, 11:52:33 AM10/13/14
to django-...@googlegroups.com
#23534: Docs aren't clear if you can use certain template tags inside blocktrans
-------------------------------------+-------------------------------------
Reporter: edu2004eu | Owner:
Type: | machinelady
Cleanup/optimization | Status: closed
Component: Documentation | Version: 1.7
Severity: Normal | Resolution: fixed

Keywords: afraid-to-commit | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Baptiste Mispelon <bmispelon@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"905a9a263bea16ce3332870ec7b3e525ff09e978"]:
{{{
#!CommitTicketReference repository=""
revision="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.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23534#comment:8>

Reply all
Reply to author
Forward
0 new messages