Thread:Extension talk:UniversalLanguageSelector/Modifying Default Settings/reply (10)

Edit the file UniversalLangauageSelector.hooks.php

Find the function addVariables. (Line 248)

public static function addVariables( &$vars, OutputPage $out ) { // This is the original code //$vars['wgULSLanguages'] = Language::fetchLanguageNames(		//	$out->getLanguage->getCode, 'mwfile'		//); // The following line is a limitation, to two languages. $vars['wgULSLanguages'] = array('en'=>'en', 'hu'=>'hu'); $vars['wgULSAcceptLanguageList'] = array_keys( $out->getRequest->getAcceptLang );

return true; }

It is not perfect, and a bit hackish, but should do the job.