Archived
1
0

* made mod work with SMF 1.1.2

+ added French language
* some minor improvements to better filter the "<Enter message..."-string
This commit is contained in:
mbirth 2007-04-11 07:19:46 +00:00
parent ab20b9f533
commit 058dd5c4ca
3 changed files with 60 additions and 10 deletions

View File

@ -6,11 +6,12 @@
<type>modification</type>
<version>1.15</version>
<install for="1.1 RC2, 1.1 RC3">
<install for="1.1, 1.1.1, 1.1.2, 1.1.3">
<require-file name="sbox.php" destination="$sourcedir" />
<require-file name="sboxDB.php" destination="$sourcedir" />
<require-file name="sbox.english.php" destination="$languagedir" />
<require-file name="sbox.german.php" destination="$languagedir" />
<require-file name="sbox.french.php" destination="$languagedir" />
<require-file name="sbox.template.php" destination="$themedir" />
<require-file name="sbox_refresh.gif" destination="$themedir/images" />
<require-file name="chat-inbound_GSM.wav" destination="$boarddir" />
@ -25,7 +26,7 @@
<modification type="file">sbox_latest.xml</modification>
</install>
<upgrade from="1.10" for="1.1 RC2, 1.1 RC3">
<upgrade from="1.10" for="1.1, 1.1.1, 1.1.2, 1.1.3">
<readme type="inline"><![CDATA[Thanks for trying the shiny new update feature. Although the Package manager might show you an error, the upgrade should work.
PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
@ -34,13 +35,14 @@ PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
<require-file name="sboxDB.php" destination="$sourcedir" />
<require-file name="sbox.english.php" destination="$languagedir" />
<require-file name="sbox.german.php" destination="$languagedir" />
<require-file name="sbox.french.php" destination="$languagedir" />
<require-file name="sbox.template.php" destination="$themedir" />
<require-file name="sbox_refresh.gif" destination="$themedir/images" />
<require-file name="chat-inbound_GSM.wav" destination="$boarddir" />
<code type="file">sbox_upgrade.php</code>
<modification type="file">sbox_latest.xml</modification>
</upgrade>
<upgrade from="1.11" for="1.1 RC2, 1.1 RC3">
<upgrade from="1.11" for="1.1, 1.1.1, 1.1.2, 1.1.3">
<readme type="inline"><![CDATA[Thanks for trying the shiny new update feature. Although the Package manager might show you an error, the upgrade should work.
PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
@ -49,13 +51,14 @@ PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
<require-file name="sboxDB.php" destination="$sourcedir" />
<require-file name="sbox.english.php" destination="$languagedir" />
<require-file name="sbox.german.php" destination="$languagedir" />
<require-file name="sbox.french.php" destination="$languagedir" />
<require-file name="sbox.template.php" destination="$themedir" />
<require-file name="sbox_refresh.gif" destination="$themedir/images" />
<require-file name="chat-inbound_GSM.wav" destination="$boarddir" />
<code type="file">sbox_upgrade.php</code>
<modification type="file">sbox_latest.xml</modification>
</upgrade>
<upgrade from="1.12" for="1.1 RC2, 1.1 RC3">
<upgrade from="1.12" for="1.1, 1.1.1, 1.1.2, 1.1.3">
<readme type="inline"><![CDATA[Thanks for trying the shiny new update feature. Although the Package manager might show you an error, the upgrade should work.
PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
@ -64,13 +67,14 @@ PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
<require-file name="sboxDB.php" destination="$sourcedir" />
<require-file name="sbox.english.php" destination="$languagedir" />
<require-file name="sbox.german.php" destination="$languagedir" />
<require-file name="sbox.french.php" destination="$languagedir" />
<require-file name="sbox.template.php" destination="$themedir" />
<require-file name="sbox_refresh.gif" destination="$themedir/images" />
<require-file name="chat-inbound_GSM.wav" destination="$boarddir" />
<code type="file">sbox_upgrade.php</code>
<modification type="file">sbox_latest.xml</modification>
</upgrade>
<upgrade from="1.13" for="1.1 RC2, 1.1 RC3">
<upgrade from="1.13" for="1.1, 1.1.1, 1.1.2, 1.1.3">
<readme type="inline"><![CDATA[Thanks for trying the shiny new update feature. Although the Package manager might show you an error, the upgrade should work.
PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
@ -79,27 +83,30 @@ PLEASE UNINSTALL ANY LANGUAGE PACK FOR SHOUTBOX BEFORE UPGRADING!]]></readme>
<require-file name="sboxDB.php" destination="$sourcedir" />
<require-file name="sbox.english.php" destination="$languagedir" />
<require-file name="sbox.german.php" destination="$languagedir" />
<require-file name="sbox.french.php" destination="$languagedir" />
<require-file name="sbox.template.php" destination="$themedir" />
<require-file name="sbox_refresh.gif" destination="$themedir/images" />
<require-file name="chat-inbound_GSM.wav" destination="$boarddir" />
<code type="file">sbox_upgrade.php</code>
<modification type="file">sbox_latest.xml</modification>
</upgrade>
<upgrade from="1.14" for="1.1 RC2, 1.1 RC3">
<upgrade from="1.14" for="1.1, 1.1.1, 1.1.2, 1.1.3">
<readme type="inline"><![CDATA[Thanks for trying the shiny new update feature. Although the Package manager might show you an error, the upgrade should work.]]></readme>
<require-file name="sboxDB.php" destination="$sourcedir" />
<require-file name="sbox.english.php" destination="$languagedir" />
<require-file name="sbox.german.php" destination="$languagedir" />
<require-file name="sbox.french.php" destination="$languagedir" />
<require-file name="sbox.template.php" destination="$themedir" />
</upgrade>
<uninstall for="1.1 RC2, 1.1 RC3">
<uninstall for="1.1, 1.1.1, 1.1.2, 1.1.3">
<readme type="inline">Uninstall will remove all the changes made by the shoutbox.</readme>
<modification type="file" reverse="true">sbox_latest.xml</modification>
<remove-file name="$sourcedir/sbox.php" />
<remove-file name="$sourcedir/sboxDB.php" />
<remove-file name="$languagedir/sbox.english.php" />
<remove-file name="$languagedir/sbox.german.php" />
<remove-file name="$languagedir/sbox.french.php" />
<remove-file name="$themedir/sbox.template.php" />
<remove-file name="$themedir/images/sbox_refresh.gif" />
<remove-file name="$boarddir/chat-inbound_GSM.wav" />

43
sbox.french.php Normal file
View File

@ -0,0 +1,43 @@
<?php
//SMF Shoutbox
$txt['sbox_ModTitle'] = 'SMF Shoutbox';
$txt['sbox_KillShout'] = 'Supprimer cette ligne ?';
$txt['sbox_Refresh'] = 'Actualiser';
$txt['sbox_RefreshEnable'] = '<b>ACTIVER l\'actualisation</b>';
$txt['sbox_RefreshDisable'] = 'Désactiver l\'actualisation';
$txt['sbox_RefreshBlocked'] = '[<span class="Kill">Le rafraîchissement automatique est désactivé pour cause d\'inactivité</span>]';
$txt['sbox_History'] = 'Historique';
$txt['sbox_HistoryClear'] = 'Effacer l\'historique';
$txt['sbox_HistoryNotFound'] = 'Pas d\'historique disponible.';
$txt['sbox_Guest'] = 'Invité';
$txt['sbox_TypeShout'] = '<Saisis ton message et appuie sur ENTREE>';
$txt['sbox_Login'] = 'Tu dois <a href="' . $scripturl . '?action=login">t\'identifier</a> ou <a href="' . $scripturl . '?action=register">t\'inscrire</a> pour participer.';
// Settings
$txt['sbox_Visible'] = 'La Shoutbox est visible';
$txt['sbox_ModsRule'] = 'Les modérateurs peuvent effacer les shouts';
$txt['sbox_DoHistory'] = 'Créer un historique des shouts';
$txt['sbox_GuestVisible'] = 'Rendre la Shoutbox visible aux invités';
$txt['sbox_GuestAllowed'] = 'Les invités peuvent utiliser la Shoutbox';
$txt['sbox_GuestBBC'] = 'Autoriser le BBCode dans la Shoutbox pour les invités*';
$txt['sbox_SmiliesVisible'] = 'La barre d\'émoticônes est visible';
$txt['sbox_UserLinksVisible'] = 'Voir les liens vers les profiles';
$txt['sbox_AllowBBC'] = 'Autoriser le BBCode';
$txt['sbox_NewShoutsBar'] = 'Afficher les lignes de démarcation';
$txt['sbox_MaxLines'] = 'Nombre maximum de shouts affichés';
$txt['sbox_Height'] = 'Hauteur de la Shoutbox (px)';
$txt['sbox_RefreshTime'] = 'Temps de rafraîchissement (secs)';
$txt['sbox_BlockRefresh'] = 'Bloquer le rafraîchissement après (' . $modSettings['lastActive'] . ' mins) d\'inactivité';
$txt['sbox_EnableSounds'] = 'Activer les sons';
$txt['sbox_FontFamily'] = 'Police';
$txt['sbox_TextSize'] = 'Taille';
$txt['sbox_TextColor1'] = '2. Couleur du texte pour les thèmes clairs';
$txt['sbox_DarkThemes'] = 'Liste des thèmes sombres<div class="smalltext">(Séparer les noms de dossiers par une barre vertical, ex. "BlackDaySMF1|blood_and_black")</div>';
$txt['sbox_TextColor2'] = '2. Couleur dutexte pour les thèmes sombres';
?>

View File

@ -39,10 +39,10 @@ function template_shout_box() {
function submitSbox() {
pretxt = \'' . $txt['sbox_TypeShout'] . '\';
prelen = pretxt.length;
if (document.sbox.sboxText.value == pretxt) return false;
xval = document.sbox.sboxText.value;
while (xval.indexOf(pretxt) >= 0) {
xpos = xval.indexOf(pretxt);
if (xval.toLowerCase() == pretxt.toLowerCase()) return false;
while (xval.toLowerCase().indexOf(pretxt.toLowerCase()) >= 0) {
xpos = xval.toLowerCase().indexOf(pretxt.toLowerCase());
xval = xval.substring(0, xpos) + xval.substring(xpos+prelen, xval.length);
}
document.sbox.sboxText.value = xval;