Automatic Browser Language Detection

I just added a new option for automatic language detection based on the users' browser language (actually, it's an old function from Carl Hasselskog, I just reintigrated it again). If you define "auto" for <defaultLanguage> in conf/config.xml, then it takes the browser language, if it's available from <outputLanguages>.

You need the latest trunk checkouts for that to and should also delete

<constant name="BX_DEFAULT_LANGUAGE">..</constant>

(or set it to "none"), if it's in your conf/config.xml. That constant is deprecated in the config.xml

If the given language can't be found, the first one from outputLanguages is taken.

 Permalink

Comments

No new comments allowed (anymore) on this post.