|
From: Lo?c C. <lo...@us...> - 2001-04-10 16:59:08
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/localization
In directory usw-pr-cvs1:/tmp/cvs-serv8429/chat/localization
Modified Files:
admin.lib.php3 languages.lib.php3 tutorial.lib.php3
Log Message:
The name of translations have been changed
Index: admin.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/admin.lib.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** admin.lib.php3 2001/04/03 20:10:14 1.1
--- admin.lib.php3 2001/04/10 16:58:35 1.2
***************
*** 71,75 ****
{
if (is_dir('./localization/' . $name)
! && file_exists('./localization/' . $name . '/localized.admin.' . C_EXTENSION)
{
list($key) = file('./localization/' . $name . '/regex.txt');
--- 71,75 ----
{
if (is_dir('./localization/' . $name)
! && file_exists('./localization/' . $name . '/admin.loc')
{
list($key) = file('./localization/' . $name . '/regex.txt');
***************
*** 99,103 ****
// If a language is defined in a cookie, ensures the translation exists
if (isset($cookieLang)
! && file_exists('./localization/' . $cookieLang . '/localized.admin.' . C_EXTENSION))
{
$lang = $cookieLang;
--- 99,103 ----
// If a language is defined in a cookie, ensures the translation exists
if (isset($cookieLang)
! && file_exists('./localization/' . $cookieLang . '/admin.loc'))
{
$lang = $cookieLang;
***************
*** 121,125 ****
// If no translation has been retained, uses the default one
if (!isset($lang))
! $lang = (file_exists('./localization/' . C_LANGUAGE . '/localized.admin.' . C_EXTENSION))
? C_LANGUAGE
: 'english';
--- 121,125 ----
// If no translation has been retained, uses the default one
if (!isset($lang))
! $lang = (file_exists('./localization/' . C_LANGUAGE . '/admin.loc'))
? C_LANGUAGE
: 'english';
Index: languages.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/languages.lib.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** languages.lib.php3 2001/04/03 20:10:14 1.1
--- languages.lib.php3 2001/04/10 16:58:35 1.2
***************
*** 76,80 ****
if (is_dir('./' . _CHAT_PATH . 'localization/' . $name)
&& file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/regex.txt')
! && file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/localized.chat.' . C_EXTENSION)
&& file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/flag.gif'))
{
--- 76,80 ----
if (is_dir('./' . _CHAT_PATH . 'localization/' . $name)
&& file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/regex.txt')
! && file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/chat.loc')
&& file_exists('./' . _CHAT_PATH . 'localization/' . $name . '/flag.gif'))
{
***************
*** 111,115 ****
// If a language is defined in a cookie, ensures the translation exists
else if (isset($cookieLang)
! && file_exists('./' . _CHAT_PATH . 'localization/' . $cookieLang . '/localized.chat.' . C_EXTENSION))
{
$dbSessionVars['lang'] = $cookieLang;
--- 111,115 ----
// If a language is defined in a cookie, ensures the translation exists
else if (isset($cookieLang)
! && file_exists('./' . _CHAT_PATH . 'localization/' . $cookieLang . '/chat.loc'))
{
$dbSessionVars['lang'] = $cookieLang;
Index: tutorial.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/localization/tutorial.lib.php3,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** tutorial.lib.php3 2001/04/03 20:17:39 1.1
--- tutorial.lib.php3 2001/04/10 16:58:35 1.2
***************
*** 70,74 ****
{
if (is_dir('./localization/' . $name)
! && file_exists('./localization/' . $name . '/localized.tutorial.' . C_EXTENSION))
{
list($key) = file('./localization/' . $name . '/regex.txt');
--- 70,74 ----
{
if (is_dir('./localization/' . $name)
! && file_exists('./localization/' . $name . '/tutorial.loc'))
{
list($key) = file('./localization/' . $name . '/regex.txt');
***************
*** 98,102 ****
// If a language is defined in a cookie, ensures the translation exists
if (isset($cookieLang)
! && file_exists('./localization/' . $cookieLang . '/localized.tutorial.' . C_EXTENSION))
{
$lang = $cookieLang;
--- 98,102 ----
// If a language is defined in a cookie, ensures the translation exists
if (isset($cookieLang)
! && file_exists('./localization/' . $cookieLang . '/tutorial.loc'))
{
$lang = $cookieLang;
|