I read all the questions regarding not working language detection but couldn’t find any solution.
So the browser seems to always use the language set as ‘default’ = > true (in my case English) when I change it to German the website always opens up in German. The strange thing is when I use <?php echo $site->detectedLanguage() ?> it always gives me back the correct language of the system. So why is the language result from detectedLanguage() different from c::set(‘language.detect’, true); ? And how can I make it work to display the language of the OS language which is visiting my site?
For the language testing I have set my iPhone to German and my Mac is set to English and I also use a Chrome AddOn (https://chrome.google.com/webstore/detail/quick-language-switcher/pmjbhfmaphnpbehdanbjphdcniaelfie?hl=de)
c::set('languages', array( array( 'code' => 'en', 'name' => 'EN', 'default' => true, 'locale' => 'en_US', 'url' => '/en', ), array( 'code' => 'de', 'name' => 'DE', 'locale' => 'de_DE', 'url' => '/de', ), )); c::set('language.detect', true);