Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#10642 closed New feature (worksforme)

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

Reported by: Knut Nesheim 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.

Change History (5)

comment:1 Changed 8 years ago by Jacob

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedDesign decision needed

comment:2 Changed 7 years ago by hejsan

Cc: hr.bjarni+django@… added

comment:3 Changed 7 years ago by hejsan

Cc: hr.bjarni+django@… removed

comment:4 Changed 6 years ago by Chris Beaven

Resolution: worksforme
Severity: Normal
Status: newclosed
Type: 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 6 years ago by Chris Beaven

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