To temporarily remove languages from the language switcher add something like the following to your template.js file. This example will remove Dutch, Finnish and French. Replace the language codes in line 6 as required.
$(document).ready(function(){
// All language codes to be removed (comma separated)
removeLanguages('nl','fi','fr');
function removeLanguages() {
// Loop through all arguments passed to the function and remove corresponding select options
$(arguments).each(function(i){
$('.language-changer option[value$="&lang='+this+'"]').remove();
});
}
});
Here's a list of language codes:
sq --- Albanian
ar --- Arabic
eu --- Basque
be --- Belarusian
bs --- Bosnian
bg --- Bulgarian
ca --- Catalan
zh-Hans --- Chinese (Simplified)
zh-Hant-HK --- Chinese (Traditional; Hong Kong)
zh-Hant-TW --- Chinese (Traditional; Taiwan)
hr --- Croatian
cs --- Czech
da --- Danish
nl --- Dutch
nl-informal --- Dutch Informal
en --- English
et --- Estonian
fi --- Finnish
fr --- French
gl --- Galician
de --- German
de-informal --- German informal
el --- Greek
he --- Hebrew
hi --- Hindi
hu --- Hungarian
is --- Icelandic
id --- Indonesian
ie --- Irish
it --- Italian
it-formal --- Italian (formal)
ja --- Japanese
ko --- Korean
lv --- Latvian
lt --- Lithuanian
mk --- Macedonian
ms --- Malay
mt --- Maltese
nb --- Norwegian (Bokmal)
nn --- Norwegian (Nynorsk)
fa --- Persian
pl --- Polish
pt --- Portuguese
pt-BR --- Portuguese (Brazilian)
pa --- Punjabi
ro --- Romanian
ru --- Russian
sr --- Serbian
si --- Sinhala
sk --- Slovak
sl --- Slovenian
es --- Spanish
es-MX --- Spanish (Mexico)
sv --- Swedish
th --- Thai
tr --- Turkish
ur --- Urdu
vi --- Vietnamese
cy --- Welsh