Opened 15 months ago

Closed 9 months ago

Last modified 9 months ago

#30585 closed New feature (fixed)

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

Reported by: Mike Hansen Owned by: Mike Hansen
Component: Internationalization Version: master
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 Changed 15 months ago by Claude Paroz

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 Changed 14 months ago 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.

comment:3 Changed 14 months ago by James Pic

Did you consider "translateblock" over "blocktranslate" ?

Last edited 14 months ago by James Pic (previous) (diff)

comment:4 Changed 14 months ago by Claude Paroz

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 Changed 14 months ago by felixxm

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

comment:6 Changed 12 months ago 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.

comment:7 Changed 12 months ago by felixxm

Has patch: set

comment:8 Changed 11 months ago by Zeilla Morin

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

comment:9 Changed 11 months ago by felixxm

Owner: changed from Zeilla Morin to Mike Hansen

Patch is already provided.

Last edited 11 months ago by felixxm (previous) (diff)

comment:10 Changed 9 months ago by Carlton Gibson

Patch needs improvement: set

comment:11 Changed 9 months ago by Carlton Gibson

Patch needs improvement: unset
Triage Stage: AcceptedReady for checkin

comment:12 Changed 9 months ago by Mariusz Felisiak <felisiak.mariusz@…>

Resolution: fixed
Status: assignedclosed

In d291c72:

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

comment:13 Changed 9 months ago by Mariusz Felisiak <felisiak.mariusz@…>

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