lexi_ Doppel-Null-Agent
![Doppel-Null-Agent Doppel-Null-Agent](images/ranks/rank_stars8_3.gif)
![](images/avatars/gallery/blank.gif)
Offline Dabei seit: Jul 07, 2004 Beiträge: 178
|
Verfasst am: 03.04.2005 14:07 Titel: Sprach anpassungen IRC-Modul |
|
hier die anpassung an ein multilang system:
/modules//IRCChat/index.php
Array:
<?php
/*********************************************
CPG-NUKE: Advanced Content Management System
********************************************
Copyright (c) 2004 by CPG-Nuke Dev Team
http://www.cpgnuke.com
CPG-Nuke is released under the terms and conditions
of the GNU GPL version 2 or any later version
$Source: /cvs/modules/IRCChat/modules/IRCChat/index.php,v $
$Revision: 9.1 $
$Author: djmaze $
$Date: 2005/01/13 04:02:52 $
***********************************************************************/
if (!defined('CPG_NUKE')) { exit; }
$pagetitle .= sprintf(_IRC_CHATROOM, '');
require_once('header.php');
OpenTable();
// port 6660
$result = $db->sql_query('SELECT network, server FROM '.$prefix.'_ircservers WHERE server_id=\''.$MAIN_CFG['IRCChat']['network'].'\'');
list($network, $server) = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
echo '<form name="irc"><table width="100%">
<tr>
<td><h1>'.sprintf(_IRC_CHATROOM, $sitename).'</h1>'.sprintf(_IRC_MESSAGE, $MAIN_CFG['IRCChat']['channel'], $network, $server).'</td>
<td rowspan="3"><a href="http://www.pjirc.com/" target="_blank"><img src="modules/'.$module_name.'/pjirclogo.gif" border="0" alt="" /></a></td>
</tr>
<tr><td><br />
'._SELECT_SERVER.': <select name="host" onchange="window.open(this.options[this.selectedIndex].value,\'_irc\',\'resizable=yes,scrollbars=yes,width=660,height=500,left=50,top=50\');return false">
<option value="'.getlink('&file=popup').'">- '. _CHOOSE_SERV.' -</option>
';
$result = $db->sql_query('SELECT server, region FROM '.$prefix.'_ircservers WHERE network=\''.$network.'\'');
while ($row = $db->sql_fetchrow($result)) {
echo '<option value="'.getlink('&file=popup&host='.$row['server']).'">'.$row['region'].'</option>';
}
$db->sql_freeresult($result);
echo '</select><br />
<span style="color: #FF0000">'._IRC_WARNING.'</span><br />
<em>'. _TRY_A_SERV.'</em></td>
</tr><tr>
<td><br />'.sprintf(_IRC_ALTERNATE, getlink('&file=popup').'" target="_blank" onclick="window.open(\''.getlink('&file=popup').'\',\'_irc\',\'resizable=yes,scrollbars=yes,width=660,height=500,left=50,top=50\');return false').'</td>
</tr>
</table>
</form>
<hr />
<table width="100%">
<tr><th>'. _IRC_COM.'/th><th>Info</th></tr>
<tr><td>/nick ('. _NNAME.') </td><td>'. _CH_NICK.' ('. _NNAME.').</td></tr>
<tr><td>/me ('._MESSAGE.')</td><td>'._SENDS_MESSAGE.'</td></tr>
<tr><td>/join (#'._CHANNEL.')</td><td>'.CH_CHANNEL.'</td></tr>
<tr><td>/clear</td><td>'._CLEAR.'</td></tr>
<tr><td>/msg ('._NNAME.') ('._MESSAGE.')</td><td>'._SEND_PM.'</td></tr>
<tr><td>/ns REGISTER ('._PASSWORD.')</td><td>'._REGISTER_NN.'</td></tr>
';
if (is_admin()) {
echo '<tr><td colspan="2"><hr /></td></tr>
<tr><td>/config</td><td>'._CONFIG_CH.'</td></tr>';
}
echo '
</table>
';
CloseTable();
require('footer.php');
/language/german/ircchat.php
?>
Array:
<?php
/*********************************************
CPG Dragonfly™ CMS
********************************************
Copyright © 2004-2005 by CPG-Nuke Dev Team
http://www.dragonflycms.com
Dragonfly is released under the terms and conditions
of the GNU GPL version 2 or any later version
Modifications made by Ertan at http://cpgnuke.de
$Source: /cvs/l10n/german_du/ircchat.php,v $
$Revision: 9.1 $
$Author: Ertan $
$Date: 2005/02/12 18:22:51 $
Encoding test: n-array summation ? latin ae w/ acute ?
*******************************************************/
if (!defined('CPG_NUKE')) { exit; }
define('_IRC_CONFIG','IRC Chatkonfiguration');
define('_IRC_SETUP','IRC Einstellungen');
define('_IRC_NETWORK','Network');
define('_IRC_CHANNEL','Kanal');
define('_IRC_SERVER','Server');
define('_IRC_QUITMSG','Logout Nachricht');
define('_IRC_ALLOWANON','Anonymous erlauben');
define('_IRC_ADDSERVER','Server hinzufuegen');
define('_IRC_NEWNET','oder neues Netzwerk');
define('_IRC_REGION','Region');
define('_IRC_CHATROOM','%s Chat');
define('_IRC_MESSAGE','Willkommen in unserem Chat<br/>');
define('_IRC_WARNING','Nicht vergessen ! Popup zulassen ( Browser )!');
define('_IRC_ALTERNATE','Wenn die ausgewählte Box nicht funktionoiert <a href="%s">hier klicken</a> um in den Chatraum zu gelangen');
define('_IRC_','');
define ('_SELECT_SERVER','Wähle den Server');
define ('_CHOOSE_SERV','Nutze folgenden Server');
define ('_TRY_A_SERV', 'Wenn es Verbindungsprobleme giebt versuche einen anderen Server');
define ('_IRC_COM','IRC-Kommandos');
define ('_NNAME','Benutzername');
define ('_CH_NICK','Ändert deinene Benutzernamen in');
define ('_MESSAGE','Nachricht');
define ('_SENDS_MESSAGE','Sendet (Nachricht), sagt etwas über Dich.');
define ('_CHANNEL','Raum');
define ('CH_CHANNEL','Du betrittst einen speziellen Raum (z. B. #cpgnuke).');
define ('_CLEAR','Löscht die Einträge im Chatfenster.');
define ('_SEND_PM','Sendet eine Nachricht an den Benutzername.');
define ('_PASSWORD','Passwort');
define ('_REGISTER_NN','Registriert den Benutzername mit dem ausgewählten Passwort (nur möglich sofern er noch nicht Registriert ist).');
define ('_CONFIG_CH','Konfiguriert den Raum durch PJIRC. Änderungen beiben nur solange erhalten bis das Chatfenster geschlossen wird.');
?>
/language/english/ircchat.php
Array:
<?php
/*********************************************
CPG Dragonfly™ CMS
********************************************
Copyright © 2004-2005 by CPG-Nuke Dev Team
http://www.dragonflycms.com
Dragonfly is released under the terms and conditions
of the GNU GPL version 2 or any later version
$Source: /cvs/html/language/english/ircchat.php,v $
$Revision: 9.4 $
$Author: djmaze $
$Date: 2005/02/07 00:33:18 $
Encoding test: n-array summation ∑ latin ae w/ acute ǽ
*******************************************************/
if (!defined('CPG_NUKE')) { exit; }
define('_IRC_CONFIG','IRC Chat configuration');
define('_IRC_SETUP','IRC Settings');
define('_IRC_NETWORK','Network');
define('_IRC_CHANNEL','Channel');
define('_IRC_SERVER','Server');
define('_IRC_QUITMSG','Logout message');
define('_IRC_ALLOWANON','Allow anonymous');
define('_IRC_ADDSERVER','Add server');
define('_IRC_NEWNET','or new network');
define('_IRC_REGION','Region');
define('_IRC_CHATROOM','%s Chatroom');
define('_IRC_MESSAGE','Welcome to our humble IRC chatroom.<br/>If you don\'t like our java based room, you can connect using <a href="http://www.xchat.org/" target="_blank">Xchat</a>, mIRC or Trillian to #%s using the <a href="http://%s/" target="_blank">%s</a> servers.');
define('_IRC_WARNING','Don\'t forget to turn off your popup-blocker first !');
define('_IRC_ALTERNATE','If selection box doesn\'t work <a href="%s">click here</a> to enter the chatroom');
define('_IRC_','');
define ('_SELECT_SERVER','Select server');
define ('_CHOOSE_SERV','Choose a Server');
define ('_TRY_A_SERV', 'If there are connection problems try another server');
define ('_IRC_COM','IRC comman');
define ('_NNAME','NAME');
define ('_CH_NICK','Change your name into');
define ('_MESSAGE','MESSAGE');
define ('_SENDS_MESSAGE','Sends (MESSAGE) telling something about you');
define ('_CHANNEL','Channel');
define ('CH_CHANNEL','Makes you join the specified channel (for ex. #cpgnuke).');
define ('_CLEAR','Clears the entire scrollback buffer of the current window.');
define ('_SEND_PM','Send a private message to this user without opening a query window.');
define ('_PASSWORD','Password');
define ('_REGISTER_NN','Register your current nickname with the given password');
define ('_CONFIG_CH','Configure channel settings through pjirc. Changes are applied upon window closing.');
?>
Die engische Version kann ich leider nicht überprüfen ich hoffe das sie richtig ist.
Im Chatfenster weiß ich noch nicht wie ich es genau ändern kann abba wenn jemand nee idee hat kann er mir ja gerne einen Tip geben.
mfg
Lexi
lexi_'s server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Server SUSE 9.3 / PHP 4.3.10 / Mysql 4.1.10a / cpg 9.2.0.RC2
|
|