Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#30585 closed New feature (fixed)

Add support for "translate" and "blocktranslate" tags.

Reported by: Mike Hansen Owned by: Mike Hansen
Component: Internationalization Version: dev
Severity: Normal Keywords:
Cc: Zeilla Morin Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Change History (13)

comment:1 by Claude Paroz, 5 years ago

Resolution: wontfix
Status: newclosed

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.

comment:2 by Aymeric Augustin, 5 years ago

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.

comment:3 by James Pic, 5 years ago

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

Version 0, edited 5 years ago by James Pic (next)

comment:4 by Claude Paroz, 5 years ago

Resolution: wontfix
Status: closednew
Triage Stage: UnreviewedAccepted

Thanks for the effort you made by bringing the subject on the discussion list. Looks like there is good support for this idea.
Only the blocktranslate vs translateblock variant looks still undecided.

comment:5 by Mariusz Felisiak, 5 years ago

Has patch: unset
Summary: Add support for "translate" and "blocktranslate" tagsAdd support for "translate" and "blocktranslate" tags.
Version: 2.2master

comment:6 by Mike Hansen, 5 years ago

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.

comment:7 by Mariusz Felisiak, 5 years ago

Has patch: set

comment:8 by Zeilla Morin, 5 years ago

Cc: Zeilla Morin added
Owner: changed from nobody to Zeilla Morin
Status: newassigned

comment:9 by Mariusz Felisiak, 5 years ago

Owner: changed from Zeilla Morin to Mike Hansen

Patch is already provided.

Last edited 5 years ago by Mariusz Felisiak (previous) (diff)

comment:10 by Carlton Gibson, 5 years ago

Patch needs improvement: set

comment:11 by Carlton Gibson, 5 years ago

Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin

comment:12 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

Resolution: fixed
Status: assignedclosed

In d291c72:

Fixed #30585 -- Added {% translate %} and {% blocktranslate %} template tags.

comment:13 by Mariusz Felisiak <felisiak.mariusz@…>, 5 years ago

In 35d36d9:

Refs #30585 -- Updated project templates and tests to use (block)translate tags.

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