summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-08-07 10:09:09 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-13 14:12:17 +0000
commitbdec8efabf4b77cf75aec83cc96d01384f6c978b (patch)
tree748adc84372b1541a3d079b207147cba7dac3be0 /addons/web/controllers
parent2347b84c66b1d6519f5be4689082da22bfc624f6 (diff)
[ADD] web: add the language code in the translation widget
The planet icon is not very clear for translation feature. Replace it with the code of the current language. Task-id: 2028152
Diffstat (limited to 'addons/web/controllers')
-rw-r--r--addons/web/controllers/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 1487fbdeba9..10e350fbd0a 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -793,6 +793,7 @@ class WebClient(http.Controller):
translations_per_module, lang_params = request.env["ir.translation"].get_translations_for_webclient(mods, lang)
body = json.dumps({
+ 'lang': lang,
'lang_parameters': lang_params,
'modules': translations_per_module,
'multi_lang': len(request.env['res.lang'].sudo().get_installed()) > 1,