Use local names for the language selector

Also dropping creation of the two variables LANGUAGES and LANGUAGE_CODE
because they already exists.
Use correct indents
Merge