Opened 6 years ago

Closed 4 years ago

Last modified 4 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.

Change History (5)

comment:1 Changed 6 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 6 years ago by hejsan

  • Cc hr.bjarni+django@… added

comment:3 Changed 6 years ago by hejsan

  • Cc hr.bjarni+django@… removed

comment:4 Changed 4 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 4 years ago by SmileyChris

  • Type changed from Uncategorized to New feature
Note: See TracTickets for help on using tickets.
Back to Top