Language switcher: change the way a language-choice is written?
-
In the language switcher (either in the primary menu or in the shortcode) the languages are shown in very specific ways:
– the short name version is always in capitals, e.g.: EN (for English (UK))
– the long name version always contains the country indication when applicable, e.g.: English (UK).
This poses some stylistic problems. When the rest of the primary menu is not in capitals, the all-caps version of the language-item looks very out of style. It would much better to write the language in under-cast as well (so: ‘En‘ instead of ‘EN’).
Similarly: adding the ‘UK’ to the long version in English is unnecessary most of the times and looks redundant in the menu. Just ‘English’ would be sufficient.
My question therefor is: can we alter the way languages are referred to in the language switchers? Perhaps there is some php code that we can add to alter certain strings?
I looked through the documentation, but couldn’t find any information about these matters.
Sorry if I overlooked something!
Cheers!
The topic ‘Language switcher: change the way a language-choice is written?’ is closed to new replies.