From: <ral...@us...> - 2003-09-23 13:08:44
|
Update of /cvsroot/egroupware/setup/inc In directory sc8-pr-cvs1:/tmp/cvs-serv7671/inc Modified Files: functions.inc.php Log Message: some fixes for setup: - back-button for manage-header - header-update shows lang-selection - lang-selection is sorted now alphabetical - lang-selection in header-admin shows up only if called the first time (without login) - manage-languages and add-applications respekt now different translations for the same phrase in different apps Index: functions.inc.php =================================================================== RCS file: /cvsroot/egroupware/setup/inc/functions.inc.php,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** functions.inc.php 28 Aug 2003 14:30:37 -0000 1.48 --- functions.inc.php 23 Sep 2003 13:08:40 -0000 1.49 *************** *** 104,114 **** } ! function lang_select($onChange=False) { ! $ConfigLang = get_var('ConfigLang',Array('POST','COOKIE')); ! $select = '<select name="ConfigLang"'.($onChange ? ' onChange="this.form.submit();"' : '').'>' . "\n"; $languages = get_langs(); ! while(list($null,$data) = each($languages)) { if($data['available'] && !empty($data['lang'])) --- 104,117 ---- } ! function lang_select($onChange=False,$ConfigLang='') { ! if (!$ConfigLang) ! { ! $ConfigLang = get_var('ConfigLang',Array('POST','COOKIE')); ! } $select = '<select name="ConfigLang"'.($onChange ? ' onChange="this.form.submit();"' : '').'>' . "\n"; $languages = get_langs(); ! usort($languages,create_function('$a,$b','return strcmp($a[\'descr\'],$b[\'descr\']);')); ! foreach($languages as $data) { if($data['available'] && !empty($data['lang'])) |