Edgewall Software

Opened 7 years ago

Last modified 6 years ago

#12866 closed defect

String isn't extraced from _("...") in py:with attribute — at Version 1

Reported by: Jun Omae Owned by:
Priority: normal Milestone: 1.0.17
Component: i18n Version: 1.0
Severity: normal Keywords: genshi
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

tags/trac-1.0.15/trac/ticket/templates/milestone_view.html@:73#L72 has _('...') in py:with attribute:

Line 
72 <xi:include href="progress_bar_grouped.html" py:if="groups"
73 py:with="summary = _('Shows the milestone completion status grouped by %(grouped_by)s',
74 grouped_by=grouped_by)"/>

However, a string in the gettext keyword is not extracted.

$ git grep -c '%(grouped_by)s' trac-1.0.15 trac/ticket/templates/milestone_view.html
trac-1.0.15:trac/ticket/templates/milestone_view.html:1
$ echo $?
0
$ git grep -c '%(grouped_by)s' trac-1.0.15 trac/locale/*.pot
$ echo $?
1

That string is extracted in Jinja2 template on trunk.

Change History (1)

comment:1 by Jun Omae, 7 years ago

Description: modified (diff)
Keywords: genshi added
Note: See TracTickets for help on using tickets.