Opened 20 years ago
Closed 20 years ago
#621 closed defect (fixed)
[i18n] make-messages don't catch all messages in templates
| Reported by: | nesh <nesh [at] studioquattro [dot] co [dot] yu> | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| Severity: | major | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
For example:
{% if is_paginated %}
<div id="footer_menu">
{% if has_previous %}
<a href="?page=0" class="end">{{ _("First page") }}</a>
<a href="?page={{ previous }}">‹ {% i18n _("Previous page") %}</a>
{% endif %}
{% i18n ngettext('page %(page)s of %(pages)s page', 'page %(page)s of %(pages)s pages', pages) %}
{% if has_next %}
<a href="?page={{ next }}">{{ _("Next page") }} ›</a>
<a href="?page={{ pages|add:"-1" }}" class="end">{{ _("Last page") }}</a>
{% endif %}
</div>
{% endif %}
I get all _() translations but none of {% i18n _() %} or {% i18n gettext() %}
Note:
See TracTickets
for help on using tickets.
fixed in [852]. It looking for the wrong termination char sequence (only } and % instead of }} and %})