← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 724057] Re: translation needs context but it doesn't always exist

 

One question.

I'm agreed with Albert, BTW why xrg don't take a branch and try with
test.openobject.com a look for some broken in the middle? on V5.0 Albert
is saying that it is not broking anything, don't yo think you can try it
as we (community) are doing?, some times is better try this kind of
changes before post for a milestones (i'm agreed with xrg in this
point), BUT Albert (the creator ) try it already, you (quality team)
without try yet, only for a conceptual  rule are saying NO,

IMHO quality team needs to try things before say "No because it _can_
brake something" if you try before answer it, and post your results, I
think (Albert correct me please if i'm wrong) Albert can extend the
patch and you apply it in a really generic way.

Thanks.

-- 
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:
  Confirmed

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



References