summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2016-10-27 16:50:03 +0200
committerNicolas Lempereur <nle@odoo.com>2016-10-31 13:43:01 +0100
commitd05136a0b2e7bea1ff9ef6eb48759cdc2070da5e (patch)
tree8312466a11b5df0dc9551e3c22146663e8924cfc /addons/web_editor/static/src/js
parent002d7a342a4eb36a6a00f155d80d5cc6c03a883c (diff)
[IMP] website: use default language for some bots
Currently when using a language on the website, the following is done in this order to choose which one will be used: 1) use a language code if present in the url (eg. /fr_BE/), 2) use a language similar to the one in the url, 3) use a previously choosed language (saved in cookie), 4) use the browser language if available on website, 5) use a language similar to the browser language, 6) use the default website language When a bot is requesting a page, he could either not specify a browser language (en_US is set as default) or sometimes specify english erroneously. In these instance, we will then never use the default website language if an english language is installed. This fix changes this behaviour so if a bot is visiting a page, the 4th and 5th steps are skipped and the default website language is used instead of using the browser language. closes #14033 opw-690910
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions