openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #21417
[Bug 1096138] Re: Generated PO(T) file does not contain all terms for mako files
The contributed fix was applied in server 7.0 at revision 4785 rev-id:
odo@xxxxxxxxxxx-20130114112831-87gmdtqzaa55zssf, credited to you.
Thanks for reporting and providing a working patch!
** Changed in: openobject-server
Importance: Undecided => Low
** Changed in: openobject-server
Status: New => Fix Released
** Changed in: openobject-server
Milestone: None => 7.0
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1096138
Title:
Generated PO(T) file does not contain all terms for mako files
Status in OpenERP Server:
Fix Released
Bug description:
We found that using the babel.message.extract method with a
parser_method of 'python' seems to skip certain terms in a mako file.
Specifying the parser_method='mako' seems to correct this.
I was unable to discover how this "magic" worked or why from the
following piece of html code the "Document" tag was not recognized for
translation (when using the 'python' method)
----- SNIPPET -----
<table class="basic_table" width="90%">
<tr>
<td>${_("Document")}</td>
<td>${_("Invoice Date")}</td>
<td>${_("Due Date")}</td>
</tr>
<tr>
<td>${inv.name or ''}</td>
<td>${formatLang(inv.date_invoice, date=True)|entity}</td>
<td>${formatLang(inv.date_due, date=True)|entity}</td>
</tr>
</table>
----- END OF SNIPPET -----
When I parse this via 'mako' all terms are correctly recognized.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1096138/+subscriptions
References