c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #17313
[Bug 724057] [NEW] translation needs context but it doesn't always exist
Public bug reported:
OpenERP v6:
class GettextAlias in tools/translate.py requires a valid context
available where _() was called. In some cases the context variable does
not exsits or is not properly initialized. The attached patch provides a
workarround by searching current user's language in order to find to
which language it should translate.
The patch is based on a Jay Vora patch provided in a v5 bug report:
https://bugs.launchpad.net/openobject-addons/+bug/432504
** Affects: openobject-server
Importance: Undecided
Status: New
--
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/724057
Title:
translation needs context but it doesn't always exist
Status in OpenERP Server:
New
Bug description:
OpenERP v6:
class GettextAlias in tools/translate.py requires a valid context
available where _() was called. In some cases the context variable
does not exsits or is not properly initialized. The attached patch
provides a workarround by searching current user's language in order
to find to which language it should translate.
The patch is based on a Jay Vora patch provided in a v5 bug report:
https://bugs.launchpad.net/openobject-addons/+bug/432504
Follow ups
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: Jay Vora (OpenERP), 2011-02-27
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: Nhomar Hernández - http : //openerp . com . ve, 2011-02-27
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: Albert Cervera i Areny - http://www.NaN-tic.com, 2011-02-27
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: Raphaël Valyi - http : //www . akretion . com, 2011-02-27
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: xrg, 2011-02-26
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: Albert Cervera i Areny - http://www.NaN-tic.com, 2011-02-26
-
Re: [Bug 724057] [NEW] translation needs context but it doesn't always exist
From: xrg, 2011-02-24
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: Azazahmed Saiyed (OpenERP), 2011-02-24
-
[Bug 724057] Re: translation needs context but it doesn't always exist
From: Albert Cervera i Areny - http://www.NaN-tic.com, 2011-02-24
-
[Bug 724057] [NEW] translation needs context but it doesn't always exist
From: Albert Cervera i Areny - http://www.NaN-tic.com, 2011-02-24
References