Opencart 2.3.0.2 multistore with multiple languages.
I only want 1 language displayed in the front-end per store. However the browser automatic language detection changes the language to an undesired language. I.e. I have a Swedish site in Swedish language. However if I'm using an "English browser" site will change language to English.
Anyone knows how to change the code to disable the automatic browser language detection?
Sometimes finding the answer to stuff like this can be done by asking the Linux command line in the right way:
So to explain the above I just searched the whole codebase for "detect language" and it shows this is done in:
/catalog/controller/startup/startup.php
Code: Select all
paul@ant$ grep -r -i -E 'detect.*language' .
./catalog/controller/startup/startup.php: // Try using local to detect the language
./catalog/controller/startup/startup.php: // Try using language folder to detect the language
./catalog/controller/startup/startup.php: $detect = strtolower($browser_language);
/catalog/controller/startup/startup.php
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Hi JockePocke,
Did you able to disable it?
Please share how to.
Auto detection is probably the stupidest "feature"implemented!
Did you able to disable it?
Please share how to.
Auto detection is probably the stupidest "feature"implemented!
Pottery Glaze shop
Who is online
Users browsing this forum: No registered users and 40 guests