summaryrefslogtreecommitdiff
path: root/addons/base/controllers/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/base/controllers/main.py')
-rw-r--r--addons/base/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/base/controllers/main.py b/addons/base/controllers/main.py
index 0379628fa1e..08c1851b85e 100644
--- a/addons/base/controllers/main.py
+++ b/addons/base/controllers/main.py
@@ -159,7 +159,7 @@ class WebClient(openerpweb.Controller):
return r
@openerpweb.jsonrequest
- def translations(self, mods, lang):
+ def translations(self, req, mods, lang):
transs = {}
for addon_name in mods:
transl = {"messages":[]}
@@ -175,7 +175,7 @@ class WebClient(openerpweb.Controller):
for x in po:
if x.id:
transl["messages"].append({'id': x.id, 'string': x.string})
- return transs
+ return {"modules": transs}
class Database(openerpweb.Controller):