Ticket #300 (closed defect: fixed)
i18n:msg element extracted incorrectly
| Reported by: | cboos | Owned by: | palgarvio |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6 |
| Component: | Internationalization | Version: | devel |
| Keywords: | i18n:msg | Cc: | remy.blank@… |
Description
Given the following Genshi i18n:msg element:
<i18n:msg params="date, author">Changed ${dateinfo(change.date)} ago by ${authorinfo(change.author)}</i18n:msg>
the extracted string will be:
#: trac/ticket/templates/ticket.html:224 #, python-format msgid "%(date)s ago by" msgstr ""
Not exactly what expected... "Changed" is missing, as well as the expected "%(author)s" second expression.
This can be seen in context in [T8107].
Tested with advanced-i18n branch, r1028 (r966 tested as well - same extraction). Genshi trunk is not relevant here, as I think it has not the proper support for the i18n:msg element.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
