How to detect language automatically?

I’m trying to build a publication with multi-language support and would like to select one automatically based on user’s operating system or browser language.

In a web PHP script, one can use $_SERVER[‘HTTP_ACCEPT_LANGUAGE’] (returns “en-US” for example).

In a local browser, there are variables like window.navigator.languages (Chrome) and window.navigator.userLanguage (IE), etc.

What environment variables with language data are actually accessible with ExeOutput or can be passed to ExeOutput somehow?

This is not possible but we’ll see if we can return the LCID of the user. See LCID here: https://msdn.microsoft.com/en-us/library/cc233966.aspx

You mean in EXO 2 Beta 3 and newer? Or 1.7 can be somehow modified to return LCID?

It will be in ExeOutput 2 not 1.7.