diff options
| author | Martin Trigaux <mat@odoo.com> | 2019-08-07 10:09:09 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2019-08-13 14:12:17 +0000 |
| commit | bdec8efabf4b77cf75aec83cc96d01384f6c978b (patch) | |
| tree | 748adc84372b1541a3d079b207147cba7dac3be0 /addons/web/models | |
| parent | 2347b84c66b1d6519f5be4689082da22bfc624f6 (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/models')
| -rw-r--r-- | addons/web/models/ir_http.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/models/ir_http.py b/addons/web/models/ir_http.py index 5d1ac1aac11..f5a9f922abf 100644 --- a/addons/web/models/ir_http.py +++ b/addons/web/models/ir_http.py @@ -33,6 +33,7 @@ class Http(models.AbstractModel): lang = user_context.get("lang") translations_per_module, lang_params = request.env['ir.translation'].get_translations_for_webclient(mods, lang) translation_cache = { + 'lang': lang, 'lang_parameters': lang_params, 'modules': translations_per_module, 'multi_lang': len(request.env['res.lang'].sudo().get_installed()) > 1, |
