[imp] added translation database

bzr revid: nicolas.vanhoren@openerp.com-20110812151736-ycx4jejdj0rpep5j
This commit is contained in:
niv-openerp
2011-08-12 17:17:36 +02:00
parent fb29f3a97e
commit eca2d44bba
3 changed files with 48 additions and 12 deletions
+2 -2
View File
@@ -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):