Home arrow Forum Mettre discussbot en français
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 10:26:09 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  International Forum
| |-+  French Forum
| | |-+  Mettre discussbot en français
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Mettre discussbot en français  (Read 1338 times)
tostiere
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Mettre discussbot en français
« on: February 11, 2007, 08:45:18 AM »

Bonjour,
j'ai un site où j'ai installé JSMF 2.0 et discussbot 2.3, tout marche nickel, seul problème : lorsque discussbot recopie le texte dans le forum, les caractères en français (accents et autres) n'apparaissent pas correctement.
Exemple : le "è" s'affiche comme ceci : "è"

Y a t-il un moyen d'y remedier ? Une traduction de discussbot ou autre ? Merci.
Logged
TheShift
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Re: Mettre discussbot en français
« Reply #1 on: March 24, 2007, 05:53:12 AM »

Salut Tostiere,

J'ai le même souci que toi mais j'en ai résolu une partie en éditant le fichier mos_smf_discussbot.php situé dans /mambots/content/

pour mettre les liens en français, retrouver le ligne 540 :

Code:
            //Post the reply button
            if ($auto_reply) {
                if ($auto_reply_img) {
                    $showlink = '<a class="link_pos" href="'. $jsmf->fixLink('index.php?action=post;topic='. $topicOptions['id'] . ';num_replies=' . $topic->numReplies) . '"><img border="0" src="' . $settings['images_url'] . '/topic/my_veryhot_post.gif" alt="Ajouter un commentaire" /> ('.$topic->numReplies.') '.$link_text.'</a>';
                } else {
                    $showlink = '<a class="link_pos" href="'. $jsmf->fixLink('index.php?action=post;topic='. $topicOptions['id'] . ';num_replies=' . $topic->numReplies) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$topic->numReplies.') '.$link_text.'</a>';
                }
            } else {
                $showlink = '<a class="link_pos" href="' . $jsmf->fixLink('index.php?topic=' . $topicOptions['id'] . $smf_location) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$topic->numReplies.') '.$link_text.'</a>';
            }



puis retrouver le ligne 591
Code:
        if ($auto_reply) {
            if ($auto_reply_img) {
                $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img border="0" src="' . $settings['images_url'] . '/topic/my_veryhot_post.gif" alt="Ajouter un commentaire" /> ('.$replies.') '.$link_text.'</a></div>';
            } else {
            $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$replies.') '.$link_text.'</a></div>';
            }
        } else {
            $showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?topic=' . $resultid . $smf_location) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$replies.') '.$link_text.'</a></div>';
        }
    }
    return $showlink;
} //end of make_smfforumlink

pour avoir les accents correctement renseignés, à partir de la ligne 604 :
Code:
/**
 * Replaces functionality normally found in htmlentities
 *
 * @param string $str
 * @return string
 */
function jsmf_htmlentities($str)
{
$search  = array("&", "'", '"', '<', '>', 'à', 'é', 'è', 'ê', 'â', 'ô');
    $replace = array('&amp;', '´', '&quot;', '&lt;', '&gt;', '&agrave;', '&eacute;', '&egrave;', '&ecirc;' , '&acirc;', '&ocirc');
    return str_replace($search, $replace, $str);
   
}
/**
 * Replaces functionality normally found in html_entity_decode
 *
 * @param string $str
 * @return string
 */
function jsmf_html_entity_decode($str)
{
    $search  = array('&amp;', '´', '&quot;', '&lt;', '&gt;', '&agrave;', '&eacute;', '&egrave;', '&ecirc;' , '&acirc;', '&ocirc');
    $replace = array("&", "'", '"', '<', '>', 'à', 'é', 'è', 'ê', 'â', 'ô');
    return str_replace($search, $replace, $str);   
}

Il me reste à trouver pourquoi l'apostrophe ne fonctionne pas ... si ça peut t'aider

TheShift
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login