Problem with langauge switcher block
Permalink
The language switcher block that comes with the internationalization add on is doing something strange.
If you want to display text instead of flags it translates the different language names into the current locale. This is absolutely not what you would expect, and makes it unusable for the users of the site. Each language option instead needs to appear in its own locale.
To clarify the problem: if you have a site where the default language is chinese then all the language choices appear in the dropdown in chinese. This means that our poor english user has no idea which one to pick!
Or have I missed something?
If you want to display text instead of flags it translates the different language names into the current locale. This is absolutely not what you would expect, and makes it unusable for the users of the site. Each language option instead needs to appear in its own locale.
To clarify the problem: if you have a site where the default language is chinese then all the language choices appear in the dropdown in chinese. This means that our poor english user has no idea which one to pick!
Or have I missed something?
To fix this, copy this file:
here:
And open the copied file for editing. Find line 40 that looks like this:
and change it to this (if you're running the LATEST github version):
if that throws an error, you can try this:
Hope it helps! I think the main issue here is what the developers of the multilingual add-on have thought is something different than you think. I think that might be an option when adding the block?
Antti / Mainio