Project

General

Profile

Bug #17424 » no_setup_installed.diff

Administrator Admin, 2007-07-01 17:20

View differences:

class.em_index.php (copie de travail)
$selectedLanguages = unserialize($this->MOD_SETTINGS['selectedLanguages']);
if(count($selectedLanguages)==1 && empty($selectedLanguages[0])) $selectedLanguages = array();
$theLanguages = t3lib_div::trimExplode('|',TYPO3_languages);
$opt = array();
foreach($theLanguages as $val) {
if ($val!='default') {
$localLabel = ' - ['.htmlspecialchars($GLOBALS['LOCAL_LANG']['default']['lang_'.$val]).']';
$selected = (is_array($selectedLanguages) && in_array($val, $selectedLanguages)) ? ' selected="selected"' : '';
$opt[$GLOBALS['LOCAL_LANG']['default']['lang_'.$val].'--'.$val]='
<option value="'.$val.'"'.$selected.'>'.$LANG->getLL('lang_'.$val,1).$localLabel.'</option>';
$langText = $LANG->getLL('lang_'.$val,1);
if ($langText) {
$opt[$GLOBALS['LOCAL_LANG']['default']['lang_'.$val].'--'.$val]='
<option value="'.$val.'"'.$selected.'>'.$langText.$localLabel.'</option>';
}
}
}
ksort($opt);
(3-3/4)