Modify ↓
Opened 6 years ago
Closed 6 years ago
#13052 closed defect (fixed)
No extracted strings from report_view.html
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.3.3 |
Component: | i18n | Version: | |
Severity: | normal | Keywords: | jinja2 |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
report_view.html has several _('...')
to translate the string, but messages.pot has no strings from the template file.
$ git grep '\<_(' -- trac/ticket/templates/report_view.html trac/ticket/templates/report_view.html: ${_("Max items per page")} trac/ticket/templates/report_view.html: <legend class="foldable">${_("Arguments")}</legend> trac/ticket/templates/report_view.html: <table summary="${_('Report arguments')}"> trac/ticket/templates/report_view.html: <input type="submit" value="${_('Update')}" /> trac/ticket/templates/report_view.html: <input type="submit" value="${_('Edit report')}" ${accesskey("e")}/> trac/ticket/templates/report_view.html: <input type="submit" value="${_('Copy report')}" /> trac/ticket/templates/report_view.html: <input type="submit" value="${_('Delete report')}" /> trac/ticket/templates/report_view.html: ${_("Results")} trac/ticket/templates/report_view.html: <a href="${row_group[0]['__grouplink__']}">${value_for_group or _("(empty)")}</a> trac/ticket/templates/report_view.html: ${value_for_group or _("(empty)")} trac/ticket/templates/report_view.html: else _("No matches found.")}) trac/ticket/templates/report_view.html: <a title="${_('View report')}" trac/ticket/templates/report_view.html: <a title="${_('View %(realm)s', realm=row.resource.realm)}" trac/ticket/templates/report_view.html: <a title="${_('View %(realm)s', realm=row.resource.realm)}" trac/ticket/templates/report_view.html: <a title="${_('View milestone')}" trac/ticket/templates/report_view.html: <div id="report-notfound">${_("No matches found.")}</div> $ grep -c '/report_view' trac/locale/messages.pot 0 $ grep -c 'Copy report' trac/locale/messages.pot 0
Attachments (0)
Change History (3)
comment:1 by , 6 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:3 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
After
silent = no
option is added in messages.cfg, I get the following error:It seems that Jinja2 extractor cannot understand
do
keyword which is introduced in r16361.Ah, that's my wrong!
The strings from report_view.html would be extracted by the following changes:
messages.cfg
with_with_