Dotclear

Changeset 906


Ignore:
Timestamp:
03/18/09 18:19:38 (14 years ago)
Author:
kwon
Message:

Newsletter 3.5.5rc2

Location:
plugins/newsletter/trunk
Files:
3 deleted
5 edited
1 copied

Legend:

Unmodified
Added
Removed
  • plugins/newsletter/trunk/_admin.php

    r898 r906  
    1515 
    1616// intégration au menu d'administration 
    17 $_menu['Plugins']->addItem(('Newsletter'), 'plugin.php?p='.newsletterPlugin::pname(), newsletterPlugin::urldatas().'/inc/icon.png', 
     17$_menu['Plugins']->addItem(('Newsletter'), 'plugin.php?p='.newsletterPlugin::pname(), newsletterPlugin::urldatas().'/icon.png', 
    1818    preg_match('/plugin.php\?p='.newsletterPlugin::pname().'(&.*)?$/', $_SERVER['REQUEST_URI']), 
    1919    $core->auth->check('usage,admin', $core->blog->id)); 
  • plugins/newsletter/trunk/_public.php

    r898 r906  
    1414 
    1515// chargement des librairies 
     16require_once dirname(__FILE__).'/inc/class.captcha.php'; 
    1617require_once dirname(__FILE__).'/inc/class.newsletter.plugin.php'; 
    1718require_once dirname(__FILE__).'/inc/class.newsletter.core.php'; 
    1819 
    19 require_once dirname(__FILE__).'/_public_tpl.php'; 
    20 require_once dirname(__FILE__).'/_public_widgets.php'; 
    21 require_once dirname(__FILE__).'/_public_urlhandlers.php'; 
     20// ajout des templates 
     21$core->tpl->addValue('Newsletter', array('tplNewsletter', 'Newsletter')); 
     22$core->tpl->addValue('NewsletterPageTitle', array('tplNewsletter', 'NewsletterPageTitle')); 
     23$core->tpl->addValue('NewsletterTemplateNotSet', array('tplNewsletter', 'NewsletterTemplateNotSet')); 
     24$core->tpl->addBlock('NewsletterBlock', array('tplNewsletter', 'NewsletterBlock')); 
     25$core->tpl->addBlock('NewsletterMessageBlock', array('tplNewsletter', 'NewsletterMessageBlock')); 
     26$core->tpl->addBlock('NewsletterFormBlock', array('tplNewsletter', 'NewsletterFormBlock')); 
     27$core->tpl->addValue('NewsletterFormSubmit', array('tplNewsletter', 'NewsletterFormSubmit')); 
     28$core->tpl->addValue('NewsletterFormRandom', array('tplNewsletter', 'NewsletterFormRandom')); 
     29$core->tpl->addValue('NewsletterFormCaptchaImg', array('tplNewsletter', 'NewsletterFormCaptchaImg')); 
     30$core->tpl->addValue('NewsletterFormCaptchaInput', array('tplNewsletter', 'NewsletterFormCaptchaInput')); 
     31$core->tpl->addValue('NewsletterFormLabel', array('tplNewsletter', 'NewsletterFormLabel')); 
     32$core->tpl->addValue('NewsletterMsgPresentationForm', array('tplNewsletter', 'NewsletterMsgPresentationForm')); 
     33 
     34class tplNewsletter 
     35{ 
     36     /** 
     37      * Select the newsletter to send 
     38      * 
     39      * @return:    string    msg 
     40      */ 
     41     public static function Newsletter() 
     42     { 
     43          global $core; 
     44           
     45          if (isset($GLOBALS['newsletter']['cmd']))  
     46               $cmd = (string) html::clean($GLOBALS['newsletter']['cmd']); 
     47          else  
     48               $cmd = 'about'; 
     49       
     50          if (isset($GLOBALS['newsletter']['email']))  
     51               $email = (string) html::clean($GLOBALS['newsletter']['email']); 
     52          else  
     53               $email = null; 
     54       
     55          if (isset($GLOBALS['newsletter']['code']))  
     56               $code = (string) html::clean($GLOBALS['newsletter']['code']); 
     57          else  
     58               $code = null; 
     59 
     60          if (isset($GLOBALS['newsletter']['modesend']))  
     61               $modesend = (string) html::clean($GLOBALS['newsletter']['modesend']); 
     62          else  
     63               $modesend = null; 
     64 
     65          switch ($cmd) { 
     66               case 'test': 
     67                    $msg = __('Test display template.'); 
     68                    break; 
     69 
     70               case 'about': 
     71                    $msg = __('About Newsletter ...'); 
     72                    //$msg = __('About'). ' ' . newsletterPlugin::dcName() . ' ...' ; 
     73                    $msg .= '<br />'. __('Version'). ' : ' . newsletterPlugin::dcVersion(); 
     74                    $msg .= '<br />'. __('Authors'). ' : ' . newsletterPlugin::dcAuthor(); 
     75                    $msg .= '<br />'. __('Description'). ' : ' . newsletterPlugin::dcDesc(); 
     76                    break; 
     77 
     78               case 'confirm': 
     79                    if ($email == null || $code == null) 
     80                         $msg = __('Missing informations. '); 
     81                    else { 
     82                         $rs = newsletterCore::getemail($email); 
     83                         if ($rs == null || $rs->regcode != $code)  
     84                              $msg = __('Your subscription code is invalid.'); 
     85                         else if ($rs->state == 'enabled')  
     86                              $msg = __('Account already confirmed.'); 
     87                         else { 
     88                              newsletterCore::sendEnable($rs->subscriber_id); 
     89                              $msg = __('Your subscription is confirmed.').'<br />'.__('You will soon receive an email.'); 
     90                         } 
     91                    } 
     92                    break; 
     93 
     94               case 'enable': 
     95                    if ($email == null) 
     96                         $msg = __('Missing informations. '); 
     97                    else { 
     98                         $rs = newsletterCore::getemail($email); 
     99                         if ($rs == null)  
     100                              $msg = __('Unable to find you account informations.'); 
     101                         else if ($rs->state == 'enabled')  
     102                              $msg = __('Account already enabled.'); 
     103                         else { 
     104                              newsletterCore::sendEnable($rs->subscriber_id); 
     105                              $msg = __('Your account is enabled.').'<br />'.__('You will soon receive an email.'); 
     106                         } 
     107                    } 
     108                    break; 
     109 
     110               case 'disable': 
     111                    if ($email == null) 
     112                         $msg = __('Missing informations. '); 
     113                    else { 
     114                         $rs = newsletterCore::getemail($email); 
     115                         if ($rs == null)  
     116                              $msg = __('Unable to find you account informations.'); 
     117                         else if ($rs->state == 'disabled')  
     118                              $msg = __('Account already disabled.'); 
     119                         else { 
     120                              newsletterCore::sendDisable($rs->subscriber_id); 
     121                              $msg = __('Your account is disabled.').'<br />'.__('You will soon receive an email.'); 
     122                         } 
     123                    } 
     124                    break; 
     125 
     126               case 'suspend': 
     127                    if ($email == null) 
     128                         $msg = __('Missing informations. '); 
     129                    else { 
     130                         $rs = newsletterCore::getemail($email); 
     131                         if ($rs == null)  
     132                              $msg = __('Unable to find you account informations.'); 
     133                         else if ($rs->state == 'suspended')  
     134                              $msg = __('Account already suspended.'); 
     135                         else { 
     136                              newsletterCore::sendSuspend($rs->subscriber_id); 
     137                              $msg = __('Your account is suspended.').'<br />'.__('You will soon receive an email.'); 
     138                         } 
     139                    } 
     140                    break; 
     141 
     142               case 'changemode': 
     143                    if ($email == null) 
     144                         $msg = __('Missing informations. '); 
     145                    else { 
     146                         $rs = newsletterCore::getemail($email); 
     147                         if ($rs == null)  
     148                              $msg = __('Unable to find you account informations.'); 
     149                         else { 
     150                              newsletterCore::sendChangeMode($rs->subscriber_id); 
     151                              $msg = __('Your sending format is').$modesend.'<br />'.__('You will soon receive an email.'); 
     152                         } 
     153                    } 
     154                    break; 
     155 
     156               case 'submit': 
     157                    $email = (string)html::clean($_POST['nl_email']); 
     158                    $option = (string)html::clean($_POST['nl_option']); 
     159                    $modesend = (string)html::clean($_POST['nl_modesend']); 
     160                    $check = true; 
     161                    if (newsletterPlugin::getCaptcha()) { 
     162                         $captcha = (string)html::clean($_POST['nl_captcha']); 
     163                         require_once dirname(__FILE__).'/inc/class.captcha.php'; 
     164                         $read = Captcha::read(); 
     165                         if ($read != $captcha)  
     166                              $check = false; 
     167                    } 
     168 
     169                    if (!$check)  
     170                         $msg = __('Bad captcha code.'); 
     171                    else switch ($option) { 
     172                         case 'subscribe': 
     173                              $msg = newsletterCore::accountCreate($email,null,$modesend); 
     174                              break; 
     175                          
     176                         case 'unsubscribe': 
     177                              $msg = newsletterCore::accountDelete($email); 
     178                              break; 
     179 
     180                         case 'suspend': 
     181                              $msg = newsletterCore::accountSuspend($email); 
     182                              break; 
     183 
     184                         case 'resume': 
     185                              $msg = newsletterCore::accountResume($email); 
     186                              break; 
     187 
     188                         case 'changemode': 
     189                              $msg = newsletterCore::accountChangeMode($email,$modesend); 
     190                              break; 
     191 
     192                         default: 
     193                              $msg = __('Error in formular.'); 
     194                              break; 
     195                    } 
     196                    break; 
     197 
     198               default: 
     199                    $msg = ''; 
     200                    break; 
     201          } 
     202           
     203          // ajout d'un bouton retour quelque soit l'evenement 
     204          $msg .= '<p>'; 
     205          $msg .= '<br /><br />'; 
     206          $msg .= '<form action="'.newsletterCore::url('form').'" method="post" id="comment-form" class="newsletter">'; 
     207          $msg .= ''.$core->formNonce().''; 
     208          $msg .= '<label for="nl_back">{{tpl:NewsletterFormLabel id="nl_back"}}</label>'; 
     209          $msg .= '<input type="submit" name="nl_back" id="nl_back" value="{{tpl:NewsletterFormLabel id="back"}}" class="submit" />'; 
     210          $msg .= '</form>'; 
     211          $msg .= '</p>'; 
     212 
     213          return $msg; 
     214     } 
     215 
     216     /** 
     217     * titre de la page html 
     218     */ 
     219     public static function NewsletterPageTitle() 
     220     { 
     221          return __('Newsletter'); 
     222     }     
     223 
     224     /** 
     225     * indication à l'utilisateur que la page newsletter n'a pas été initialisée 
     226     */ 
     227     public static function NewsletterTemplateNotSet() 
     228     { 
     229          return '<?php echo newsletterCore::TemplateNotSet(); ?>'; 
     230     } 
     231 
     232     public static function NewsletterBlock($attr, $content) 
     233     { 
     234          return $content; 
     235     } 
     236 
     237     public static function NewsletterMessageBlock($attr, $content) 
     238     { 
     239          return '<?php if (!empty($GLOBALS[\'newsletter\'][\'msg\'])) { ?>'.$content.'<?php } ?>'; 
     240     } 
     241 
     242     public static function NewsletterFormBlock($attr, $content) 
     243     { 
     244          if (!empty($GLOBALS['newsletter']['form'])) 
     245          { 
     246               if (newsletterPlugin::getCaptcha()) { 
     247                    require_once dirname(__FILE__).'/inc/class.captcha.php'; 
     248                    $ca = new Captcha(80, 30, 5); 
     249                    $ca->generate(); 
     250                    $ca->file(); 
     251                    $ca->write(); 
     252               } 
     253          } 
     254          return '<?php  if (!empty($GLOBALS[\'newsletter\'][\'form\'])) { ?>'.$content.'<?php } ?>'; 
     255     } 
     256 
     257     /** 
     258     * adresse de soumission du formulaire 
     259     */ 
     260     public static function NewsletterFormSubmit() 
     261     { 
     262          return '<?php echo newsletterCore::url(\'submit\'); ?>'; 
     263     } 
     264 
     265    public static function NewsletterFormRandom() 
     266    { 
     267        return '<?php  echo "'.newsletterCore::getRandom().'" ?>'; 
     268    } 
     269 
     270     public static function NewsletterFormCaptchaImg() 
     271     { 
     272          if (!newsletterPlugin::getCaptcha()) { 
     273               return ''; 
     274          } else { 
     275               require_once dirname(__FILE__).'/inc/class.captcha.php'; 
     276               return '<?php echo "<img src=\"'.Captcha::www().'/captcha.img.png\" style=\"vertical-align: middle;\" alt=\"'.__('Captcha').'\" />" ?>'; 
     277          } 
     278     } 
     279 
     280    public static function NewsletterFormCaptchaInput() 
     281    { 
     282         if (!newsletterPlugin::getCaptcha())  
     283          return ''; 
     284         else  
     285          return '<?php echo "<input type=\"text\" name=\"nl_captcha\" id=\"nl_captcha\" value=\"\" style=\"width:90px; vertical-align:top;\" />" ?>'; 
     286    } 
     287 
     288     /*  
     289      * labels du formulaire  
     290      */   
     291     public static function NewsletterFormLabel($attr, $content) 
     292     { 
     293          switch ($attr['id']) 
     294          { 
     295               case 'ok': 
     296                    return '<?php echo __(\'Send\') ?>'; 
     297 
     298               case 'subscribe': 
     299                    return '<?php echo __(\'Subscribe\') ?>'; 
     300 
     301               case 'unsubscribe': 
     302                    return '<?php echo __(\'Unsubscribe\') ?>'; 
     303 
     304               case 'suspend': 
     305                    return '<?php echo __(\'Suspend\') ?>'; 
     306                    // __('Suspend')  
     307 
     308               case 'resume': 
     309                    return '<?php echo __(\'Resume\') ?>'; 
     310                    // __('Resume')  
     311 
     312               case 'nl_email': 
     313                    return '<?php echo __(\'Email\') ?>'; 
     314 
     315               case 'nl_option': 
     316                    return '<?php echo __(\'Action\') ?>'; 
     317 
     318               case 'nl_captcha': 
     319                    if (!newsletterPlugin::getCaptcha())  
     320                         return ''; 
     321                    else  
     322                         return '<?php echo  \'<label for="nl_captcha">\'. __(\'Captcha\') .\'</label>\' ?>'; 
     323 
     324               case 'nl_submit': 
     325                    return ''; 
     326 
     327               case 'html': 
     328                    return '<?php echo __(\'html\') ?>'; 
     329 
     330               case 'text': 
     331                    return '<?php echo __(\'text\') ?>'; 
     332                    // __('text')  
     333 
     334               case 'nl_modesend': 
     335                    return '<?php echo __(\'Format\') ?>'; 
     336 
     337               case 'changemode': 
     338                    return '<?php echo __(\'Change format\') ?>'; 
     339                    // __('Change format')  
     340 
     341               case 'back': 
     342                    return '<?php echo __(\'Back\') ?>'; 
     343 
     344          } 
     345     } 
     346 
     347     /*  
     348      * message de présentation du formulaire  
     349      */ 
     350     public static function NewsletterMsgPresentationForm() 
     351     { 
     352          return newsletterPlugin::getMsgPresentationForm(); 
     353     } 
     354 
     355} 
     356 
     357/*  
     358 * classe pour l'affichage du widget public 
     359 */ 
     360class publicWidgetsNewsletter 
     361{ 
     362     /** 
     363     * initialisation du widget 
     364     */ 
     365     public static function initWidgets(&$w) 
     366     { 
     367          global $core; 
     368          try { 
     369               // prise en compte de l'état d'activation du plugin 
     370               if (!newsletterPlugin::isActive())  
     371                    return; 
     372 
     373               // prise en compte paramètre: uniquement sur la page d'accueil 
     374               $url = &$core->url; 
     375               if ($w->homeonly && $url->type != 'default')  { 
     376                    return; 
     377               } 
     378 
     379               // paramétrage des variables 
     380               $plugin_name = __('Newsletter'); 
     381               $title = ($w->title) ? html::escapeHTML($w->title) : $plugin_name; 
     382               $showTitle = ($w->showtitle) ? true : false; 
     383               $subscription_link = ($w->subscription_link) ? html::escapeHTML($w->subscription_link) : __('Subscription link'); 
     384                
     385               $text = ''; 
     386 
     387               // mise en place du contenu du widget dans $text 
     388               if ($w->inwidget) { 
     389                    $link = newsletterCore::url('submit'); 
     390                    $text .= 
     391                    '<form action="'.$link.'" method="post" id="nl_form">'. 
     392                    $core->formNonce(). 
     393                    form::hidden(array('nl_random'),newsletterCore::getRandom()). 
     394                    '<ul>'. 
     395                    '<li><label for="nl_email">'.__('Email').'</label>&nbsp;:&nbsp;'. 
     396                    form::field(array('nl_email','nl_email'),15,255). 
     397                    '</li>'. 
     398                    '<li><label for="nl_modesend">'.__('Format').'</label>&nbsp;:&nbsp;'. 
     399                    '<select style="border:1px inset silver; width:140px;" name="nl_modesend" id="nl_modesend" size="1" maxlength="255">'. 
     400                         '<option value="html" selected="selected">'.__('html').'</option>'. 
     401                         '<option value="text">'.__('text').'</option>'. 
     402                    '</select>'. 
     403                    '<li><label for="nl_submit">'.__('Actions').'</label>&nbsp;:&nbsp;'. 
     404                    '<select style="border:1px inset silver; width:140px;" name="nl_option" id="nl_option" size="1" maxlength="255">'. 
     405                         '<option value="subscribe" selected="selected">'.__('Subscribe').'</option>'. 
     406                         '<option value="changemode">'.__('Change format').'</option>'. 
     407                         '<option value="suspend">'.__('Suspend').'</option>'. 
     408                         '<option value="resume">'.__('Resume').'</option>'. 
     409                         '<option value="">---</option>'. 
     410                         '<option value="unsubscribe">'.__('Unsubscribe').'</option>'. 
     411                    '</select>'. 
     412                    /* 
     413                    '<li><label for="nl_submit">'.__('Actions').'</label>&nbsp;:<br />'. 
     414                    form::radio(array('nl_option'),'subscribe', true).__('Subscribe').'<br />'. 
     415                    form::radio(array('nl_option'),'unsubscribe').__('Unsubscribe').'<br />'. 
     416                    //*/ 
     417                    '</li>'; 
     418 
     419                    if (newsletterPlugin::getCaptcha()) { 
     420                         require_once dirname(__FILE__).'/inc/class.captcha.php';                                   
     421                                    
     422                         $as = new Captcha(80, 30, 5); 
     423                         $as->generate(); 
     424                         $as->file(); 
     425                         $as->write(); 
     426                               
     427                         $text .= 
     428                         //'<p>'. 
     429                         '<li><label for="nl_captcha">'.__('Captcha').'</label>&nbsp;:<br />'. 
     430                         '<img src="'.Captcha::www().'/captcha.img.png" alt="'.__('Captcha').'" /><br />'. 
     431                         form::field(array('nl_captcha','nl_captcha'),9,30). 
     432                         '</li>'; 
     433                         //'</p>'. 
     434                    } 
     435                     
     436                    $text .= 
     437                    '<p><input class="submit" type="submit" name="nl_submit" id="nl_submit" value="'.__('Send').'" /></p>'. 
     438 
     439                    '</ul>'. 
     440                    //'</fieldset>'. 
     441                    '</form>'; 
     442                     
     443               } else { 
     444                    $link = newsletterCore::url('form'); 
     445                    if ($w->insublink) { 
     446                         $title = str_replace('%I', '<img src="?pf=newsletter/icon.png" alt="" width="16" height="16" style="margin: 0 3px; vertical-align: middle;" />', $title); 
     447                         $text = $w->text ? $w->text : ''; 
     448 
     449                         $text .= '<ul><li><a href="'.$link.'">'.$subscription_link.'</a></li></ul>'; 
     450                    } else { 
     451                         $title = '<a href="'.$link.'">'.$title.'</a>'; 
     452                         $title = str_replace('%I', '</a><img src="?pf=newsletter/icon.png" alt="newsletter" width="16" height="16" style="margin:0 3px; vertical-align:middle;" /> <a href="'.$link.'">', $title); 
     453                    } 
     454               } 
     455 
     456               // renvoi du code à afficher pour le widget 
     457               if ($showTitle === true)  
     458                    $title = '<h2>'.$title.'</h2>'; 
     459               else  
     460                    $title = ''; 
     461                
     462               return "\n".'<div class="'.newsletterPlugin::pname().'">'.$title.$text.'</div>'."\n"; 
     463               //return "\n".'<div class="categories">'.$title.$text.'</div>'."\n"; 
     464                
     465 
     466          } catch (Exception $e) {  
     467               $core->error->add($e->getMessage());  
     468          } 
     469     } 
     470} 
     471 
     472// gestionnaire d'url 
     473class urlNewsletter extends dcUrlHandlers 
     474{ 
     475    // gestion des paramètres 
     476    public static function newsletter($args) 
     477    { 
     478          global $core; 
     479          try  { 
     480               // tests des arguments 
     481               if (empty($args) || $args == '') { 
     482                    self::p404(); 
     483               } 
     484 
     485               // initialisation des variables 
     486               $tpl = &$core->tpl; 
     487               $cmd = null; 
     488               $GLOBALS['newsletter']['cmd'] = null; 
     489               $GLOBALS['newsletter']['msg'] = false; 
     490               $GLOBALS['newsletter']['form'] = false; 
     491               $GLOBALS['newsletter']['email'] = null; 
     492               $GLOBALS['newsletter']['code'] = null; 
     493               $GLOBALS['newsletter']['modesend'] = null; 
     494 
     495               // décomposition des arguments et aiguillage 
     496               $params = explode('/', $args); 
     497               if (isset($params[0]) && !empty($params[0]))  
     498                    $cmd = (string)html::clean($params[0]); 
     499               else  
     500                    $cmd = null; 
     501            
     502               if (isset($params[1]) && !empty($params[1])) { 
     503                    $email = base64_decode( (string)html::clean($params[1]) ); 
     504               } 
     505               else  
     506                    $email = null; 
     507            
     508               if (isset($params[2]) && !empty($params[2]))  
     509                    $regcode = (string)html::clean($params[2]); 
     510               else  
     511                    $regcode = null;               
     512 
     513               if (isset($params[3]) && !empty($params[3]))  
     514                    $modesend = base64_decode( (string)html::clean($params[3]) ); 
     515               else  
     516                    $modesend = null;              
     517 
     518          
     519          switch ($cmd) { 
     520                    case 'test': 
     521                    case 'about': 
     522                        $GLOBALS['newsletter']['msg'] = true; 
     523                        break; 
     524 
     525                    case 'form': 
     526                        $GLOBALS['newsletter']['form'] = true; 
     527                        break; 
     528                 
     529                    case 'submit': 
     530                         $GLOBALS['newsletter']['msg'] = true; 
     531                         break; 
     532                          
     533                    case 'confirm': 
     534                    case 'enable': 
     535                    case 'disable': 
     536                    case 'suspend': 
     537                    case 'changemode': 
     538                    case 'resume': 
     539                         { 
     540                              if ($email == null)  
     541                                   self::p404(); 
     542                              $GLOBALS['newsletter']['msg'] = true; 
     543                         } 
     544                         break; 
     545               } 
     546 
     547               $GLOBALS['newsletter']['cmd'] = $cmd; 
     548               $GLOBALS['newsletter']['email'] = $email; 
     549               $GLOBALS['newsletter']['code'] = $regcode; 
     550               $GLOBALS['newsletter']['modesend'] = $modesend; 
     551 
     552               // préparation de l'utilisation du moteur de template 
     553               $tpl->setPath($tpl->getPath(), dirname(__FILE__).'/default-templates'); 
     554               $file = $tpl->getFilePath('subscribe.newsletter.html'); 
     555 
     556               // utilise le moteur de template pour générer la page pour le navigateur 
     557               files::touch($file); 
     558 
     559               header('Pragma: no-cache'); 
     560               header('Cache-Control: no-cache'); 
     561               self::serveDocument('subscribe.newsletter.html','text/html',false,false); 
     562               exit; 
     563          } catch (Exception $e) {  
     564               $core->error->add($e->getMessage());  
     565          } 
     566    } 
     567} 
    22568 
    23569?> 
  • plugins/newsletter/trunk/inc/class.captcha.php

    r898 r906  
    7171          // création de l'image 
    7272          $this->img = imagecreateTRUEcolor($this->width, $this->height); 
    73           imageantialias($this->img, 1); 
     73 
    7474          if(function_exists('imageantialias')) { 
    7575               imageantialias($this->img, 1); 
  • plugins/newsletter/trunk/locales/fr/main.lang.php

    r902 r906  
    77$GLOBALS['__l10n']['Unable to install Newsletter.']='Impossible d\'installer Newsletter'; 
    88 
    9 # _public_tpl.php:60 
     9# _public.php:67 
    1010$GLOBALS['__l10n']['Test display template.']='Test d\'affichage du template.'; 
    1111 
    12 # _public_tpl.php:64 
     12# _public.php:71 
    1313$GLOBALS['__l10n']['About Newsletter ...']='A propos de Newsletter ...'; 
    1414 
    15 # _public_tpl.php:65 
     15# _public.php:72 
    1616$GLOBALS['__l10n']['About']='A propos'; 
    1717 
    18 # _public_tpl.php:67 
     18# _public.php:74 
    1919$GLOBALS['__l10n']['Authors']='Auteurs'; 
    2020 
    21 # _public_tpl.php:73 
    22 # _public_tpl.php:89 
    23 # _public_tpl.php:105 
    24 # _public_tpl.php:121 
    25 # _public_tpl.php:137 
     21# _public.php:80 
     22# _public.php:96 
     23# _public.php:112 
     24# _public.php:128 
     25# _public.php:144 
    2626$GLOBALS['__l10n']['Missing informations. ']='Informations manquantes.'; 
    2727 
    28 # _public_tpl.php:77 
     28# _public.php:84 
    2929$GLOBALS['__l10n']['Your subscription code is invalid.']='Votre code d\'inscription est invalide.'; 
    3030 
    31 # _public_tpl.php:79 
     31# _public.php:86 
    3232$GLOBALS['__l10n']['Account already confirmed.']='Abonnement déja confirmé.'; 
    3333 
    34 # _public_tpl.php:82 
     34# _public.php:89 
    3535$GLOBALS['__l10n']['Your subscription is confirmed.']='Votre inscription est confirmée.'; 
    3636 
    37 # _public_tpl.php:82 
    38 # _public_tpl.php:98 
    39 # _public_tpl.php:114 
    40 # _public_tpl.php:130 
    41 # _public_tpl.php:144 
     37# _public.php:89 
     38# _public.php:105 
     39# _public.php:121 
     40# _public.php:137 
     41# _public.php:151 
    4242$GLOBALS['__l10n']['You will soon receive an email.']='Vous allez bientôt recevoir un email.'; 
    4343 
    44 # _public_tpl.php:93 
    45 # _public_tpl.php:109 
    46 # _public_tpl.php:125 
    47 # _public_tpl.php:141 
     44# _public.php:100 
     45# _public.php:116 
     46# _public.php:132 
     47# _public.php:148 
    4848$GLOBALS['__l10n']['Unable to find you account informations.']='Impossible de trouver les informations de votre compte.'; 
    4949 
    50 # _public_tpl.php:95 
     50# _public.php:102 
    5151$GLOBALS['__l10n']['Account already enabled.']='Abonnement déja activé.'; 
    5252 
    53 # _public_tpl.php:98 
     53# _public.php:105 
    5454# inc/class.newsletter.core.php:1486 
    5555$GLOBALS['__l10n']['Your account is enabled.']='Votre abonnement est activé.'; 
    5656 
    57 # _public_tpl.php:111 
     57# _public.php:118 
    5858$GLOBALS['__l10n']['Account already disabled.']='Abonnement déja désactivé.'; 
    5959 
    60 # _public_tpl.php:114 
     60# _public.php:121 
    6161# inc/class.newsletter.core.php:1479 
    6262$GLOBALS['__l10n']['Your account is disabled.']='Votre abonnement est désactivé.'; 
    6363 
    64 # _public_tpl.php:127 
     64# _public.php:134 
    6565$GLOBALS['__l10n']['Account already suspended.']='Abonnement déja suspendu.'; 
    6666 
    67 # _public_tpl.php:130 
     67# _public.php:137 
    6868# inc/class.newsletter.core.php:1472 
    6969$GLOBALS['__l10n']['Your account is suspended.']='Votre abonnement est suspendu.'; 
    7070 
    71 # _public_tpl.php:144 
     71# _public.php:151 
    7272$GLOBALS['__l10n']['Your sending format is']='Votre format d\'envoi est'; 
    7373 
    74 # _public_tpl.php:163 
     74# _public.php:170 
    7575$GLOBALS['__l10n']['Bad captcha code.']='Mauvais code de vérification.'; 
    7676 
    77 # _public_tpl.php:186 
     77# _public.php:193 
    7878$GLOBALS['__l10n']['Error in formular.']='Erreur dans le formulaire.'; 
    7979 
    80 # _public_tpl.php:214 
    81 # _public_widgets.php:33 
     80# _public.php:221 
     81# _public.php:380 
    8282# _widgets.php:25 
    8383# _widgets.php:27 
     
    8686$GLOBALS['__l10n']['Newsletter']='Lettre d\'informations'; 
    8787 
    88 # _public_tpl.php:269 
    89 # _public_widgets.php:82 
    90 # _public_widgets.php:83 
     88# _public.php:276 
     89# _public.php:429 
     90# _public.php:430 
    9191# inc/class.newsletter.admin.php:462 
    9292$GLOBALS['__l10n']['Captcha']='Code visuel'; 
    9393 
    94 # _public_tpl.php:299 
    95 # _public_widgets.php:60 
     94# _public.php:306 
     95# _public.php:407 
    9696# inc/class.newsletter.admin.php:873 
    9797$GLOBALS['__l10n']['Suspend']='Suspendre'; 
    9898 
    99 # _public_tpl.php:303 
    100 # _public_widgets.php:61 
     99# _public.php:310 
     100# _public.php:408 
    101101$GLOBALS['__l10n']['Resume']='Résumé'; 
    102102 
    103 # _public_tpl.php:325 
    104 # _public_widgets.php:54 
     103# _public.php:332 
     104# _public.php:401 
    105105# inc/class.newsletter.admin.php:341 
    106106# inc/class.newsletter.admin.php:889 
     
    108108$GLOBALS['__l10n']['text']='texte'; 
    109109 
    110 # _public_tpl.php:332 
    111 # _public_widgets.php:59 
     110# _public.php:339 
     111# _public.php:406 
    112112$GLOBALS['__l10n']['Change format']='Changer le format'; 
    113113 
    114 # _public_widgets.php:36 
     114# _public.php:383 
    115115# _widgets.php:32 
    116116$GLOBALS['__l10n']['Subscription link']='S\'abonner'; 
    117117 
    118 # _public_widgets.php:48 
     118# _public.php:395 
    119119$GLOBALS['__l10n']['Email']='Courriel'; 
    120120 
    121 # _public_widgets.php:51 
     121# _public.php:398 
    122122$GLOBALS['__l10n']['Format']='Format'; 
    123123 
    124 # _public_widgets.php:53 
     124# _public.php:400 
    125125# inc/class.newsletter.admin.php:342 
    126126# inc/class.newsletter.admin.php:888 
     
    128128$GLOBALS['__l10n']['html']='html'; 
    129129 
    130 # _public_widgets.php:56 
    131 # _public_widgets.php:66 
     130# _public.php:403 
     131# _public.php:413 
    132132$GLOBALS['__l10n']['Actions']='Actions'; 
    133133 
    134 # _public_widgets.php:63 
    135 # _public_widgets.php:68 
     134# _public.php:410 
     135# _public.php:415 
    136136$GLOBALS['__l10n']['Unsubscribe']='Se désabonner'; 
    137137 
  • plugins/newsletter/trunk/locales/fr/main.po

    r902 r906  
    1010msgstr "Impossible d'installer Newsletter" 
    1111 
    12 #: _public_tpl.php:60 
     12#: _public.php:67 
    1313msgid "Test display template." 
    1414msgstr "Test d'affichage du template." 
    1515 
    16 #: _public_tpl.php:64 
     16#: _public.php:71 
    1717msgid "About Newsletter ..." 
    1818msgstr "A propos de Newsletter ..." 
    1919 
    20 #: _public_tpl.php:65 
     20#: _public.php:72 
    2121msgid "About" 
    2222msgstr "A propos" 
    2323 
    24 #: _public_tpl.php:67 
     24#: _public.php:74 
    2525msgid "Authors" 
    2626msgstr "Auteurs" 
    2727 
    28 #: _public_tpl.php:73 
    29 #: _public_tpl.php:89 
    30 #: _public_tpl.php:105 
    31 #: _public_tpl.php:121 
    32 #: _public_tpl.php:137 
     28#: _public.php:80 
     29#: _public.php:96 
     30#: _public.php:112 
     31#: _public.php:128 
     32#: _public.php:144 
    3333msgid "Missing informations. " 
    3434msgstr "Informations manquantes." 
    3535 
    36 #: _public_tpl.php:77 
     36#: _public.php:84 
    3737msgid "Your subscription code is invalid." 
    3838msgstr "Votre code d'inscription est invalide." 
    3939 
    40 #: _public_tpl.php:79 
     40#: _public.php:86 
    4141msgid "Account already confirmed." 
    4242msgstr "Abonnement déja confirmé." 
    4343 
    44 #: _public_tpl.php:82 
     44#: _public.php:89 
    4545msgid "Your subscription is confirmed." 
    4646msgstr "Votre inscription est confirmée." 
    4747 
    48 #: _public_tpl.php:82 
    49 #: _public_tpl.php:98 
    50 #: _public_tpl.php:114 
    51 #: _public_tpl.php:130 
    52 #: _public_tpl.php:144 
     48#: _public.php:89 
     49#: _public.php:105 
     50#: _public.php:121 
     51#: _public.php:137 
     52#: _public.php:151 
    5353msgid "You will soon receive an email." 
    5454msgstr "Vous allez bientôt recevoir un email." 
    5555 
    56 #: _public_tpl.php:93 
    57 #: _public_tpl.php:109 
    58 #: _public_tpl.php:125 
    59 #: _public_tpl.php:141 
     56#: _public.php:100 
     57#: _public.php:116 
     58#: _public.php:132 
     59#: _public.php:148 
    6060msgid "Unable to find you account informations." 
    6161msgstr "Impossible de trouver les informations de votre compte." 
    6262 
    63 #: _public_tpl.php:95 
     63#: _public.php:102 
    6464msgid "Account already enabled." 
    6565msgstr "Abonnement déja activé." 
    6666 
    67 #: _public_tpl.php:98 
     67#: _public.php:105 
    6868#: inc/class.newsletter.core.php:1486 
    6969msgid "Your account is enabled." 
    7070msgstr "Votre abonnement est activé." 
    7171 
    72 #: _public_tpl.php:111 
     72#: _public.php:118 
    7373msgid "Account already disabled." 
    7474msgstr "Abonnement déja désactivé." 
    7575 
    76 #: _public_tpl.php:114 
     76#: _public.php:121 
    7777#: inc/class.newsletter.core.php:1479 
    7878msgid "Your account is disabled." 
    7979msgstr "Votre abonnement est désactivé." 
    8080 
    81 #: _public_tpl.php:127 
     81#: _public.php:134 
    8282msgid "Account already suspended." 
    8383msgstr "Abonnement déja suspendu." 
    8484 
    85 #: _public_tpl.php:130 
     85#: _public.php:137 
    8686#: inc/class.newsletter.core.php:1472 
    8787msgid "Your account is suspended." 
    8888msgstr "Votre abonnement est suspendu." 
    8989 
    90 #: _public_tpl.php:144 
     90#: _public.php:151 
    9191msgid "Your sending format is" 
    9292msgstr "Votre format d'envoi est" 
    9393 
    94 #: _public_tpl.php:163 
     94#: _public.php:170 
    9595msgid "Bad captcha code." 
    9696msgstr "Mauvais code de vérification." 
    9797 
    98 #: _public_tpl.php:186 
     98#: _public.php:193 
    9999msgid "Error in formular." 
    100100msgstr "Erreur dans le formulaire." 
    101101 
    102 #: _public_tpl.php:214 
    103 #: _public_widgets.php:33 
     102#: _public.php:221 
     103#: _public.php:380 
    104104#: _widgets.php:25 
    105105#: _widgets.php:27 
     
    109109msgstr "Lettre d'informations" 
    110110 
    111 #: _public_tpl.php:269 
    112 #: _public_widgets.php:82 
    113 #: _public_widgets.php:83 
     111#: _public.php:276 
     112#: _public.php:429 
     113#: _public.php:430 
    114114#: inc/class.newsletter.admin.php:462 
    115115msgid "Captcha" 
    116116msgstr "Code visuel" 
    117117 
    118 #: _public_tpl.php:299 
    119 #: _public_widgets.php:60 
     118#: _public.php:306 
     119#: _public.php:407 
    120120#: inc/class.newsletter.admin.php:873 
    121121msgid "Suspend" 
    122122msgstr "Suspendre" 
    123123 
    124 #: _public_tpl.php:303 
    125 #: _public_widgets.php:61 
     124#: _public.php:310 
     125#: _public.php:408 
    126126msgid "Resume" 
    127127msgstr "Résumé" 
    128128 
    129 #: _public_tpl.php:325 
    130 #: _public_widgets.php:54 
     129#: _public.php:332 
     130#: _public.php:401 
    131131#: inc/class.newsletter.admin.php:341 
    132132#: inc/class.newsletter.admin.php:889 
     
    135135msgstr "texte" 
    136136 
    137 #: _public_tpl.php:332 
    138 #: _public_widgets.php:59 
     137#: _public.php:339 
     138#: _public.php:406 
    139139msgid "Change format" 
    140140msgstr "Changer le format" 
    141141 
    142 #: _public_widgets.php:36 
     142#: _public.php:383 
    143143#: _widgets.php:32 
    144144msgid "Subscription link" 
    145145msgstr "S'abonner" 
    146146 
    147 #: _public_widgets.php:48 
     147#: _public.php:395 
    148148msgid "Email" 
    149149msgstr "Courriel" 
    150150 
    151 #: _public_widgets.php:51 
     151#: _public.php:398 
    152152msgid "Format" 
    153153msgstr "Format" 
    154154 
    155 #: _public_widgets.php:53 
     155#: _public.php:400 
    156156#: inc/class.newsletter.admin.php:342 
    157157#: inc/class.newsletter.admin.php:888 
     
    160160msgstr "html" 
    161161 
    162 #: _public_widgets.php:56 
    163 #: _public_widgets.php:66 
     162#: _public.php:403 
     163#: _public.php:413 
    164164msgid "Actions" 
    165165msgstr "Actions" 
    166166 
    167 #: _public_widgets.php:63 
    168 #: _public_widgets.php:68 
     167#: _public.php:410 
     168#: _public.php:415 
    169169msgid "Unsubscribe" 
    170170msgstr "Se désabonner" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map