Locale variable wasn't correctly set

It will contain now the currently selected language code