← Back to team overview

openerp-india team mailing list archive

[Bug 1027761] Re: report_webkit setLang Translations

 

I made a mistake. I was missing the fonts. I can confirm that this works
just fine.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1027761

Title:
  report_webkit setLang Translations

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  It seems that the original setLang method that was in 6.0, is now gone
  and now it looks like there is a setLang in mako that now handles
  this? In either case, I have manually set the language to zh_HK for HK
  Chinese, but it is of no use. EVERYTHING still comes out in English. I
  have actually also added BACK in a method we wrote for the 6.0 version
  of report_webkit:

  def setLang(self, lang, bo=None):
      if not lang:
          lang = 'en_US'
      self.parser_instance.localcontext['lang'] = lang
      if bo:
          bo._context['lang'] = lang
          bo._data = {bo.id:{}}
      for obj in self.parser_instance.objects:
          obj._context['lang'] = lang

  This method worked great in 6.0, but it seems as though some
  architectural changes in the 6.1 ORM have made this method impossible
  to use, so I tried to use the original setLang that you can see inside
  of the report_webkit_sample module, but that doesn't seem to make a
  difference.

  Has anyone able to get translations working properly for browse object
  in OpenERP inside of report_webkit?

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1027761/+subscriptions


References