|
From: Lo?c C. <lo...@us...> - 2001-04-20 20:42:48
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv18217/chat/lib
Modified Files:
welcome.lib.php3
Log Message:
Set default welcome messages in the localized translations
Index: welcome.lib.php3
===================================================================
RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/welcome.lib.php3,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** welcome.lib.php3 2001/04/19 21:05:04 1.5
--- welcome.lib.php3 2001/04/20 20:42:46 1.6
***************
*** 27,50 ****
switch ($dbSessionVars['lang'])
{
! case 'english': // For english users
! define('WELCOME_MSG', 'Welcome to our chat. Please obey the net etiquette while chatting: <i>try to be pleasant and polite</i>.');
! break;
! case 'french': // For french users
! define('WELCOME_MSG', 'Bienvenu(e) sur notre chat. N\'oubliez pas les <i>règles de politesse élémentaire</i> au cours de vos discussions.');
! break;
! case 'japanese': // For japan users
! define('WELCOME_MSG', '¥Á¥ã¥Ã¥È¤Ø¤è¤¦¤³¤½¡ª ¾¤Î¥æ¡¼¥¶¡¼¤ËÌÂÏǤò¤«¤±¤º¤Ë¡¢³Ú¤·¤ó¤Ç¤¤¤Ã¤Æ¤¯¤À¤µ¤¤¤Í¡£');
! break;
! case 'spanish': // Para usuarios en Español
! define('WELCOME_MSG', 'Bienvenidos a nuestro chat. El objetivo es conocernos, intercambiar ideas y <i>especialmente, pasar un momento agradable</i>.');
! break;
!
! default: // When there is no translation for the language of the user
! define('WELCOME_MSG', 'Welcome to our chat. Please obey the net etiquette while chatting: <i>try to be pleasant and polite</i>.');
}
--- 27,52 ----
+ /**
+ * Use the switch statement below to have you own made welcome messages in some
+ * languages.
+ * If no translation fits the language of the user the default case at the end
+ * of the switch will get a default welcome message from the translation file
+ * this user has required (ie a 'chat/localization/*/chat.loc' file). You may
+ * bypass this feature by specifying a true message in the default case below.
+ */
switch ($dbSessionVars['lang'])
{
! // case 'english': // For english users
! // define('WELCOME_MSG', 'This is customized english welcome message.');
! // break;
! // case 'french': // For french users
! // define('WELCOME_MSG', 'Ceci est un message d\'accueil personnalisé.');
! // break;
! // ... other cases here ...
! default: // When there is no translation for the language of the user here
! define('WELCOME_MSG', L_WELCOME);
}
|