Improve the parts of language selection

- on index.php show only languages used in at least one reign and
if only one language is used set it and redirect to home page
- on home page show the link to other languages only if two or more
language are used and show the links only of languages used