Code

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#10642 closed New feature (worksforme)

The 'default' template filter should translate the argument given as placeholder

Reported by: knutin Owned by: nobody
Component: Template system Version: 1.0
Severity: Normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The 'default' template filter should translate the argument given as placeholder. This would let users use the 'default' filter even in cases that require that the placeholder string be translated.

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by jacob

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 5 years ago by hejsan

  • Cc hr.bjarni+django@… added

comment:3 Changed 5 years ago by hejsan

  • Cc hr.bjarni+django@… removed

comment:4 Changed 3 years ago by SmileyChris

  • Resolution set to worksforme
  • Severity set to Normal
  • Status changed from new to closed
  • Type set to Uncategorized

The description isn't very clear to me, but isn't this possible already?

{{ object|default:_('placeholder') }} should work just fine.

Perhaps I'm missing what is being asked here, in which case please reopen with clarification.

comment:5 Changed 3 years ago by SmileyChris

  • Type changed from Uncategorized to New feature

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.