It tries to detect the cookie or browser language settings and overwrites the given variable when a language is detected. This function is called at startup to set a default language for the visitor
Arguments
contains the current language and will be overwritten if necesary