← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 791771] [NEW] web client translation javascript domain update BUG

 

Public bug reported:

web client 6.0.2 
the javascript locale update file :http://localhost:8080/openerp/j18n/zh_CN
I get no translate data in this file.
the Server return : "openobject.gettext.update({});"

And I found a bug to return the locale's domain_catalog  @file  /openobject/i18n/_gettext.py
maybe  35~39 lines

patch:

-    if locale in domain_catalog:
+    if str(locale) in domain_catalog:
-        return domain_catalog[locale]
+        return domain_catalog[str(locale)]
    return domain_catalog[locale.language]


I hope it will be fixed @next release version. Thanks.

** Affects: openobject-client-web
     Importance: Undecided
         Status: New


** Tags: javascript locale mrshelly translation

-- 
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/791771

Title:
  web client translation javascript domain update BUG

Status in OpenERP Web Client:
  New

Bug description:
  web client 6.0.2 
  the javascript locale update file :http://localhost:8080/openerp/j18n/zh_CN
  I get no translate data in this file.
  the Server return : "openobject.gettext.update({});"

  And I found a bug to return the locale's domain_catalog  @file  /openobject/i18n/_gettext.py
  maybe  35~39 lines

  patch:

  -    if locale in domain_catalog:
  +    if str(locale) in domain_catalog:
  -        return domain_catalog[locale]
  +        return domain_catalog[str(locale)]
      return domain_catalog[locale.language]

  
  I hope it will be fixed @next release version. Thanks.


Follow ups

References