The 'default' template filter should translate the argument given as placeholder
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)
Triage Stage: |
Unreviewed → Design decision needed
|
Cc: |
hr.bjarni+django@… added
|
Cc: |
hr.bjarni+django@… removed
|
Resolution: |
→ worksforme
|
Severity: |
→ Normal
|
Status: |
new → closed
|
Type: |
→ Uncategorized
|
Type: |
Uncategorized → New feature
|
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.