Opened 14 years ago
Closed 14 years ago
#17045 closed New feature (duplicate)
Provide the equivalent of pgettext in the translation template tags — at Version 1
| 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 (last modified by )
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 %}
Change History (1)
comment:1 by , 14 years ago
| Description: | modified (diff) |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
| Summary: | trans tag and msgctxt → Provide the equivalent of pgettext in the translation template tags |
Note:
See TracTickets
for help on using tickets.
This is a duplicate of #14806. And yes, it's annoying.