Opened 15 years ago

Closed 13 years ago

Last modified 13 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: no UI/UX: no

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 by Jacob, 15 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by hejsan, 15 years ago

Cc: hr.bjarni+django@… added

comment:3 by hejsan, 15 years ago

Cc: hr.bjarni+django@… removed

comment:4 by Chris Beaven, 13 years ago

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 by Chris Beaven, 13 years ago

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