[Django] #30585: Add support for "translate" and "blocktranslate" tags

28 views
Skip to first unread message

Django

unread,
Jun 21, 2019, 12:56:19 PM6/21/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags
------------------------------------------------+------------------------
Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: new
Component: Internationalization | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
We'd like to add aliases for the `trans` and `blocktrans` template tags
which do not have connotations to the transgender community. An initial
proposal would be to add `translate` and `blocktranslate` as aliases.

I've created https://github.com/django/django/pull/11500 as a starting
point with a focus on minimizing changes to the Django code initially.
Depending on people's thoughts, we're happy to do the work if people would
prefer these to be the defaults throughout the codebase.

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

Django

unread,
Jun 22, 2019, 8:59:58 AM6/22/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags
-------------------------------------+-------------------------------------

Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: closed
Component: | Version: 2.2
Internationalization |
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Claude Paroz):

* status: new => closed
* resolution: => wontfix


Comment:

I really don't see what negativity does the current ``trans`` tag bring. I
would have understand if the ``trans`` template tag function was in any
way related to human gender thematic. In this case, it's just some random
synonymity without any bad connotation, in my opinion.
If you disagree, you may discuss it on the django-developers mailing list
first.

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

Django

unread,
Jul 27, 2019, 4:27:11 AM7/27/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags
-------------------------------------+-------------------------------------

Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: closed
Component: | Version: 2.2
Internationalization |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Aymeric Augustin):

Well, it isn't too hard to imagine the mental associations created by
"block trans" for someone who identifies as "trans", even if it's just a
synonym.

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

Django

unread,
Jul 27, 2019, 1:40:54 PM7/27/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags
-------------------------------------+-------------------------------------

Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: closed
Component: | Version: 2.2
Internationalization |
Severity: Normal | Resolution: wontfix
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by James Pic):

Would "translateblock" be even more relevant than "blocktranslate" ?

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

Django

unread,
Aug 1, 2019, 5:30:41 AM8/1/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags
--------------------------------------+------------------------------------

Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: new
Component: Internationalization | Version: 2.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by Claude Paroz):

* status: closed => new
* resolution: wontfix =>
* stage: Unreviewed => Accepted


Comment:

Thanks for the effort you made by bringing the subject on the
[https://groups.google.com/forum/#!msg/django-
developers/tANKEpROLeQ/mbXwb482DwAJ discussion list]. Looks like there is
good support for this idea.
Only the `blocktranslate` vs `translateblock` variant looks still
undecided.

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

Django

unread,
Aug 1, 2019, 5:42:15 AM8/1/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
--------------------------------------+------------------------------------

Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: new
Component: Internationalization | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by felixxm):

* has_patch: 1 => 0
* version: 2.2 => master


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

Django

unread,
Sep 23, 2019, 9:21:45 PM9/23/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
--------------------------------------+------------------------------------

Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: new
Component: Internationalization | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Mike Hansen):

I've added a pull request at https://github.com/django/django/pull/11811
which switches to these by default (but still maintains support for the
previous ones). I think that `blocktranslate` is better as that is closer
to what people will be looking for if they are familiar with the
`blocktrans` tag.

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

Django

unread,
Sep 24, 2019, 4:48:53 AM9/24/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
--------------------------------------+------------------------------------

Reporter: Mike Hansen | Owner: nobody
Type: New feature | Status: new
Component: Internationalization | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Changes (by felixxm):

* has_patch: 0 => 1


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

Django

unread,
Oct 25, 2019, 8:42:37 AM10/25/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.

-------------------------------------+-------------------------------------
Reporter: Mike Hansen | Owner:
| ZeeZeeMorin
Type: New feature | Status: assigned
Component: | Version: master
Internationalization |

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by ZeeZeeMorin):

* status: new => assigned
* cc: ZeeZeeMorin (added)
* owner: nobody => ZeeZeeMorin


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

Django

unread,
Oct 25, 2019, 8:51:16 AM10/25/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
-------------------------------------+-------------------------------------
Reporter: Mike Hansen | Owner: Mike
| Hansen

Type: New feature | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* owner: Zeilla Morin => Mike Hansen


Comment:

This ticket already have a patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/30585#comment:9>

Django

unread,
Dec 11, 2019, 8:10:33 AM12/11/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
-------------------------------------+-------------------------------------
Reporter: Mike Hansen | Owner: Mike
| Hansen
Type: New feature | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/30585#comment:10>

Django

unread,
Dec 18, 2019, 4:48:15 AM12/18/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
-------------------------------------+-------------------------------------
Reporter: Mike Hansen | Owner: Mike
| Hansen
Type: New feature | Status: assigned
Component: | Version: master
Internationalization |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/30585#comment:11>

Django

unread,
Dec 18, 2019, 8:18:28 AM12/18/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
-------------------------------------+-------------------------------------
Reporter: Mike Hansen | Owner: Mike
| Hansen
Type: New feature | Status: closed
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

In [changeset:"35d36d946272bed06a3d7c7cd4e5b71b613e7a4f" 35d36d9]:
{{{
#!CommitTicketReference repository=""
revision="35d36d946272bed06a3d7c7cd4e5b71b613e7a4f"
Refs #30585 -- Updated project templates and tests to use (block)translate
tags.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30585#comment:13>

Django

unread,
Dec 18, 2019, 8:18:29 AM12/18/19
to django-...@googlegroups.com
#30585: Add support for "translate" and "blocktranslate" tags.
-------------------------------------+-------------------------------------
Reporter: Mike Hansen | Owner: Mike
| Hansen
Type: New feature | Status: closed
Component: | Version: master
Internationalization |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

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


Comment:

In [changeset:"d291c72bf24387e4abe8d9883ebe9c69abdd26d0" d291c72]:
{{{
#!CommitTicketReference repository=""
revision="d291c72bf24387e4abe8d9883ebe9c69abdd26d0"
Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template
tags.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/30585#comment:12>

Reply all
Reply to author
Forward
0 new messages