Opened 19 years ago

Closed 19 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 }}">&lsaquo; {% 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") }} &rsaquo;</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() %}

Change History (1)

comment:1 by hugo, 19 years ago

Resolution: fixed
Status: newclosed

fixed in [852]. It looking for the wrong termination char sequence (only } and % instead of }} and %})

Note: See TracTickets for help on using tickets.
Back to Top