c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #30140
[Bug 710061] Re: [webkit] Descriptions don't get translated
Hello,
I have tested reporter_webkit 6.0.0.9 on oe 6.0.2 and as far as I can
diagnose this patch kills the normal functionality of the setLang
parameter in the report. Standard OE labels/text fields are no longer
translated in line with the report definition.
Excerpt from the mako file:
<body>
%for sod in objects :
<% setLang(sod.partner_id.lang) %>
This is my report langue : ${sod.partner_id.lang}
So the intention is to set the report language aligned with the
partner's language.
With 6.0.0.9 where the only main change was (webkit_report.py):
@297
self.parser_instance.localcontext.update({'setLang':self.setLang})
self.parser_instance.localcontext.update({'formatLang':self.formatLang})
the result of this change is for example that the units of measure only
returns the language value of the field in line with the preferred
language of the user (so if user has NL then the result is NL, if en
then en , etc). But not according to the partner's language.
Out comment the lines and the language setting works correctly. So if
the test conditions were OK something was broken here.
Regards,
Eric
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/710061
Title:
[webkit] Descriptions don't get translated
Status in OpenERP Modules (addons):
Fix Released
Bug description:
Descriptions like "Supplier Invoice", "Invoice Date" or "Price" don't
get translated. The customer language is set correctly.
Every description on the sample report is transfered to the output
exactly as it appears within the .mako file. Database translations
don't get fetched apparently. The database translations are stored
under field name
"addons/report_webkit_sample/report/report_webkit_html.mako". This may
be wrong.
Openerp: 6.0.1
Webkit: 6.0.0.9
Webkit sample: 6.0.0.9
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/710061/+subscriptions
References