Opened 13 years ago
Last modified 13 years ago
#17045 closed New feature
trans tag and msgctxt — at Initial Version
Reported by: | Hervé Cauwelier | Owned by: | nobody |
---|---|---|---|
Component: | Translations | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Aymeric Augustin | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Using pgettext you can specify a contextual marker:
https://docs.djangoproject.com/en/1.3/topics/i18n/internationalization/#contextual-markers
But there is nothing in templates to call such translations.
Proposal:
{% trans "May" "month name" %}
{% blocktrans msgctxt="month name" %}May{% endblocktrans %}
Note:
See TracTickets
for help on using tickets.