add translated string to returned values
Bug #858276 reported by
ViktorNagy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openerp-client-lib |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm using openerp clientlib to add openerp as a backend storage for getting things gnome, and my problem is that it always returns the main language's text, instead of per-user translated text.
(e.g context values in project.task)
would it be possible to add translations as given by uid?
Related branches
lp://staging/~toolpart/openerp-client-lib/default_context
Rejected
for merging
into
lp://staging/openerp-client-lib
- Nicolas Vanhoren (OpenERP): Disapprove
-
Diff: 159 lines (+37/-17)1 file modifiedopenerplib/main.py (+37/-17)
To post a comment you must log in.
Hello,
The texts in openerp are not implicitly translated using the uid. Translation are done according to the "lang" key if that key exists in the context given to each method call.
So the correct way to handle translations is to maintain a context containing the language.
Best regards.