From: Lo?c C. <lo...@us...> - 2001-05-05 17:24:20
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization In directory usw-pr-cvs1:/tmp/cvs-serv25406/chat/localization Modified Files: tutorial.lib.php3 sort_languages.lib.php3 languages.lib.php3 admin.lib.php3 Log Message: License header was missing Index: tutorial.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/tutorial.lib.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** tutorial.lib.php3 2001/05/02 22:25:23 1.6 --- tutorial.lib.php3 2001/05/05 17:24:18 1.7 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library defines the language that will be used for the tutorial. | // | If there is no language already defined (neither in a cookie, neither | Index: sort_languages.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/sort_languages.lib.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** sort_languages.lib.php3 2001/04/03 20:17:39 1.1 --- sort_languages.lib.php3 2001/05/05 17:24:18 1.2 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library sorts an array by keys in reverse order. It is used for | // | releases of PHP older than 3.0.15. | *************** *** 16,20 **** // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <php...@ya...> | // +--------------------------------------------------------------------------+ // --- 18,22 ---- // | http://www.phpheaven.net/projects/phpMyChat/ | // | | ! // | Authors: the phpHeaven-team <te...@ph...> | // +--------------------------------------------------------------------------+ // Index: languages.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** languages.lib.php3 2001/05/02 22:25:23 1.7 --- languages.lib.php3 2001/05/05 17:24:18 1.8 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library defines the language that will be used during the chat | // | session. If there is no language already defined (neither in a cookie, | Index: admin.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/admin.lib.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** admin.lib.php3 2001/05/02 22:25:23 1.6 --- admin.lib.php3 2001/05/05 17:24:18 1.7 *************** *** 6,9 **** --- 6,11 ---- // | Copyright (c) 2000-2001 The phpHeaven-team | // +--------------------------------------------------------------------------+ + // | License: GNU/GPL - http://www.gnu.org/copyleft/gpl.html | + // +--------------------------------------------------------------------------+ // | This library defines the language that will be used for the | // | administration work. If there is no language already defined (neither in | *************** *** 35,39 **** * * @global array the list of available translations ! * @global string the language to use * * @access private --- 37,41 ---- * * @global array the list of available translations ! * @global string the session data * * @access private *************** *** 42,46 **** { global $availableAdmins; ! global $lang; $notFound = true; --- 44,48 ---- { global $availableAdmins; ! global $dbSessionVars; $notFound = true; *************** *** 56,61 **** || ($envType == 2 && eregi('(\(|\[|;[[:space:]])(' . $key . ')(;|\]|\))', $str))) { ! $dbSessionVars['lang'] = $availableAdmins[$key]; ! $notFound = false; } } --- 58,63 ---- || ($envType == 2 && eregi('(\(|\[|;[[:space:]])(' . $key . ')(;|\]|\))', $str))) { ! $dbSessionVars['adminLang'] = $availableAdmins[$key]; ! $notFound = false; } } *************** *** 112,116 **** $acceptedCnt = count($accepted); reset($accepted); ! for ($i = 0; $i < $acceptedCnt && empty($dbSessionVars['lang']); $i++) { pmcAdminDetect($accepted[$i], 1); --- 114,118 ---- $acceptedCnt = count($accepted); reset($accepted); ! for ($i = 0; $i < $acceptedCnt && empty($dbSessionVars['adminLang']); $i++) { pmcAdminDetect($accepted[$i], 1); *************** *** 126,133 **** // If no translation has been retained, uses the default one ! if (empty($lang)) ! $dbSessionVars['lang'] = (file_exists('./localization/' . C_LANGUAGE . '/admin.loc')) ! ? C_LANGUAGE ! : 'english'; // Clears the table --- 128,137 ---- // If no translation has been retained, uses the default one ! if (empty($dbSessionVars['adminLang'])) ! { ! $dbSessionVars['adminLang'] = (file_exists('./localization/' . C_LANGUAGE . '/admin.loc')) ! ? C_LANGUAGE ! : 'english'; ! } // Clears the table |