|
From: Lo?c C. <lo...@us...> - 2001-06-02 06:40:57
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization
In directory usw-pr-cvs1:/tmp/cvs-serv17233/chat/localization
Modified Files:
tutorial.lib.php3 languages.lib.php3 admin.lib.php3
Log Message:
Fixed some errors with php3
Index: tutorial.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/tutorial.lib.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** tutorial.lib.php3 2001/05/05 17:24:18 1.7
--- tutorial.lib.php3 2001/06/02 06:40:54 1.8
***************
*** 83,88 ****
// Sorts the $availableTutorials array in a convenient order
! if (!function_exists('krsort'))
include('./localization/sort_languages.lib.' . C_EXTENSION);
krsort($availableTutorials);
--- 83,90 ----
// Sorts the $availableTutorials array in a convenient order
! if (!@function_exists('krsort'))
! {
include('./localization/sort_languages.lib.' . C_EXTENSION);
+ }
krsort($availableTutorials);
***************
*** 92,96 ****
--- 94,100 ----
*/
if (isset($HTTP_COOKIE_VARS['cookieLang']))
+ {
$cookieLang = $HTTP_COOKIE_VARS['cookieLang'];
+ }
pmcGrabGlobals('HTTP_ACCEPT_LANGUAGE');
pmcGrabGlobals('HTTP_USER_AGENT');
Index: languages.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** languages.lib.php3 2001/05/05 17:24:18 1.8
--- languages.lib.php3 2001/06/02 06:40:54 1.9
***************
*** 89,94 ****
// Sorts the $availableLanguages array in a convenient order
! if (!function_exists('krsort'))
include($localizationPath . 'sort_languages.lib.' . C_EXTENSION);
krsort($availableLanguages);
--- 89,96 ----
// Sorts the $availableLanguages array in a convenient order
! if (!@function_exists('krsort'))
! {
include($localizationPath . 'sort_languages.lib.' . C_EXTENSION);
+ }
krsort($availableLanguages);
***************
*** 98,102 ****
--- 100,106 ----
*/
if (isset($HTTP_COOKIE_VARS['cookieLang']))
+ {
$cookieLang = $HTTP_COOKIE_VARS['cookieLang'];
+ }
pmcGrabGlobals('HTTP_ACCEPT_LANGUAGE');
pmcGrabGlobals('HTTP_USER_AGENT');
***************
*** 148,152 ****
--- 152,158 ----
// If no translation has been retained, uses the default one
if (!dbSessionIsRegistered('lang'))
+ {
$dbSessionVars['lang'] = C_LANGUAGE;
+ }
// Puts the language retained in a cookie that will expire in one year
Index: admin.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/admin.lib.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** admin.lib.php3 2001/05/05 17:24:18 1.7
--- admin.lib.php3 2001/06/02 06:40:54 1.8
***************
*** 84,89 ****
// Sorts the $availableAdmins array in a convenient order
! if (!function_exists('krsort'))
include('./localization/sort_languages.lib.' . C_EXTENSION);
krsort($availableAdmins);
--- 84,91 ----
// Sorts the $availableAdmins array in a convenient order
! if (!@function_exists('krsort'))
! {
include('./localization/sort_languages.lib.' . C_EXTENSION);
+ }
krsort($availableAdmins);
***************
*** 93,97 ****
--- 95,101 ----
*/
if (isset($HTTP_COOKIE_VARS['cookieLang']))
+ {
$cookieLang = $HTTP_COOKIE_VARS['cookieLang'];
+ }
pmcGrabGlobals('HTTP_ACCEPT_LANGUAGE');
pmcGrabGlobals('HTTP_USER_AGENT');
|