Changed the language toggle handling

The language codes are reserved for i18n and using them results in languages string being overwritten in some languages.