Dotclear

Changeset 709


Ignore:
Timestamp:
01/20/09 12:04:23 (14 years ago)
Author:
Moe
Message:

Subscribe to comments 1.3-alpha2 :

  • switched error display to <tpl:SysIfFormError>
  • new URLs for messages
  • moved adminAfterCommentDesc behavior in _admin.php
  • delete the table in importFull (thanks to Olivier)
  • using email instead of id as the identifier when importing a single blog
Location:
plugins/subscribeToComments
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • plugins/subscribeToComments/_admin.php

    r626 r709  
    3636     $core->addBehavior('coreAfterCommentCreate',array('subscribeToComments', 
    3737          'coreAfterCommentCreate')); 
    38      $core->addBehavior('adminAfterCommentDesc',array('subscribeToComments', 
    39           'adminAfterCommentDesc')); 
    4038     # when a comment is published 
    4139     $core->addBehavior('coreAfterCommentUpdate',array('subscribeToComments', 
    4240          'coreAfterCommentUpdate')); 
     41     $core->addBehavior('adminAfterCommentDesc',array('subscribeToCommentsAdmin', 
     42          'adminAfterCommentDesc')); 
    4343} 
    4444 
    4545# import/Export 
     46# from /dotclear/plugins/metadata/_admin.php, modified 
    4647 
    4748$core->addBehavior('exportFull', 
     
    6263class subscribeToCommentsAdmin 
    6364{ 
     65     protected static $delete = true; 
     66      
     67     /** 
     68     display informations on the admin comment form 
     69     @param    rs <b>recordset</b> Recordset 
     70     @return   <b>string</b>  String 
     71     */ 
     72     public static function adminAfterCommentDesc($rs) 
     73     { 
     74          global $core; 
     75 
     76          # ignore trackbacks 
     77          if ($rs->comment_trackback == 1) {return;} 
     78 
     79          $rs = $core->con->select( 
     80               'SELECT notification_sent FROM '.$core->prefix.'comment '. 
     81               'WHERE (comment_id = '.$core->con->escape($rs->comment_id).') '. 
     82               'AND (notification_sent = 1);' 
     83          ); 
     84          if ($rs->isEmpty()) 
     85          { 
     86               $string = sprintf( 
     87                    __('<img src="images/check-off.png" alt="%1$s" title="%1$s" /> Notification email not sent, click on <strong>%2$s</strong>.'), 
     88                    __('not sent'),__('save')); 
     89          } 
     90          else 
     91          { 
     92               $string = sprintf( 
     93                    __('<img src="images/check-on.png" alt="%1$s" title="%1$s" /> Notification email sent.'), 
     94                    __('sent')); 
     95          } 
     96          return('<p><strong>'.__('Subscribe to comments').'</strong> : '.$string.'</p>'); 
     97     } 
     98      
    6499     public static function exportFull(&$core,&$exp) 
    65100     { 
     
    76111     public static function importInit(&$bk,&$core) 
    77112     { 
    78           $bk->cur_comment_subscriber = $core->con->openCursor($core->prefix.'comment_subscriber'); 
     113          $bk->cur_comment_subscriber = 
     114               $core->con->openCursor($core->prefix.'comment_subscriber'); 
    79115     } 
    80116      
    81117     public static function importFull(&$line,&$bk,&$core) 
    82      { 
     118     {     
     119          if (self::$delete) { 
     120               $core->con->execute('DELETE FROM '.$core->prefix.'comment_subscriber'); 
     121               self::$delete = false; 
     122          } 
     123 
    83124          if ($line->__name == 'comment_subscriber') 
    84125          { 
     
    86127                
    87128               $bk->cur_comment_subscriber->id = (integer) $line->id; 
    88                 
    89129               $bk->cur_comment_subscriber->email = (string) $line->email; 
    90130               $bk->cur_comment_subscriber->user_key = (string) $line->user_key; 
    91131               $bk->cur_comment_subscriber->temp_key = (string) $line->temp_key; 
    92132               $bk->cur_comment_subscriber->temp_expire = (string) $line->temp_expire; 
    93                 
    94133               $bk->cur_comment_subscriber->status = (integer) $line->status; 
    95                 
    96                $rs = $core->con->select('SELECT id FROM '. 
    97                     $core->prefix.'comment_subscriber WHERE (id = \''.$line->id.'\');'); 
    98                if ($rs->isEmpty()) 
    99                { 
    100                     $bk->cur_comment_subscriber->insert(); 
    101                } 
    102                else 
    103                { 
    104                     $bk->cur_comment_subscriber->update('WHERE (id = '.$core->con->escape($line->id).')'); 
    105                } 
     134                               
     135               $bk->cur_comment_subscriber->insert(); 
    106136          } 
    107137     } 
     
    120150                
    121151               $rs = $core->con->select('SELECT id FROM '. 
    122                     $core->prefix.'comment_subscriber WHERE (id = \''.$line->id.'\');'); 
     152                    $core->prefix.'comment_subscriber '. 
     153                    'WHERE (email = \''.$line->email.'\');'); 
    123154               if ($rs->isEmpty()) 
    124155               { 
     
    127158               else 
    128159               { 
    129                     $cur->update('WHERE (id = '.$core->con->escape($line->id).')'); 
     160                    # if the email already exist, update it 
     161                    $cur->update('WHERE (email = \''.$core->con->escape($line->email).'\')'); 
    130162               } 
    131163          } 
  • plugins/subscribeToComments/_define.php

    r626 r709  
    3030     /* Description*/                "Subscribe to comments", 
    3131     /* Author */                    "Moe (http://gniark.net/)", 
    32      /* Version */                   '1.3-alpha1', 
     32     /* Version */                   '1.3-alpha2', 
    3333     /* Permissions */               'admin' 
    3434); 
  • plugins/subscribeToComments/_install.php

    r534 r709  
    2424# ***** END LICENSE BLOCK ***** 
    2525 
    26 if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     26if (!defined('DC_CONTEXT_ADMIN')) {return;} 
    2727 
    2828# On lit la version du plugin 
  • plugins/subscribeToComments/_prepend.php

    r534 r709  
    3030 
    3131$core->url->register('subscribetocomments','subscribetocomments', 
    32      '^subscribetocomments(/.+)?$',array('subscribeToCommentsDocument','page')); 
     32     '^subscribetocomments(?:/(.+))?$',array('subscribeToCommentsDocument','page')); 
    3333 
    3434?> 
  • plugins/subscribeToComments/_public.php

    r534 r709  
    2424# ***** END LICENSE BLOCK ***** 
    2525 
    26 if (!defined('DC_RC_PATH')) { return; } 
     26if (!defined('DC_RC_PATH')) {return;} 
     27 
     28 
     29$core->tpl->addBlock('SubscribeToCommentsIsActive', 
     30          'subscribeToCommentsIsActive'); 
    2731 
    2832function subscribeToCommentsIsActive($attr,$content) 
     
    3236          '<?php endif; ?>'; 
    3337} 
    34 $core->tpl->addBlock('SubscribeToCommentsIsActive', 
    35           'subscribeToCommentsIsActive'); 
    36  
    37  
    38 # load locales for the blog language 
    39 l10n::set(dirname(__FILE__).'/locales/'.$core->blog->settings->lang.'/public'); 
    4038 
    4139/** 
     
    4846     serve the document 
    4947     */ 
    50      public static function page() 
     48     public static function page($args) 
    5149     { 
    5250          global $core; 
     
    5856           
    5957          $_ctx =& $GLOBALS['_ctx']; 
    60  
     58           
     59          $_ctx->subscribeToComments = new ArrayObject(); 
     60          $_ctx->subscribeToComments->email = ''; 
     61          $_ctx->subscribeToComments->checkCookie = false; 
     62          $_ctx->subscribeToComments->blocked = false; 
     63           
    6164          try { 
    6265               subscribeToComments::cleanKeys(); 
     
    116119                    subscribeToComments::redirect('updatedemail'); 
    117120               } 
    118  
    119                # messages 
    120                $_ctx->subscribeToCommentsMessage = null;  
    121                if (isset($_GET['message'])) 
    122                { 
    123                     $messages = array( 
    124                      'informationsresent' => __('Account informations sent'), 
    125                      'removedsubscriptions' => __('Subscriptions removed'), 
    126                      'loggedout' => __('Logged out'), 
    127                      'loggedin' => __('Logged in'), 
    128                      'emailsblocked' => __('Emails blocked'), 
    129                      'emailsallowed' => __('Emails allowed'), 
    130                      'requestsent' =>  
    131                          __('An email has been sent to the new email address'), 
    132                      'updatedemail' => __('Email address changed'), 
    133                      'accountdeleted' => __('Account deleted'), 
    134                      'subscribed' => __('Subscribed to the entry') 
    135                   ); 
    136                     if (array_key_exists($_GET['message'],$messages)) 
    137                     { 
    138                          $_ctx->subscribeToCommentsMessage = $messages[$_GET['message']]; 
    139                     } 
    140                } 
    141  
     121                
    142122               # email address 
    143                $_ctx->subscribeToCommentsEmail = ''; 
     123               $_ctx->subscribeToComments->email = ''; 
    144124               if (isset($_COOKIE['comment_info'])) 
    145125               { 
    146                     $_ctx->subscribeToCommentsEmail = explode("\n",$_COOKIE['comment_info']); 
    147                     $_ctx->subscribeToCommentsEmail = $_ctx->subscribeToCommentsEmail['1']; 
     126                    $email = explode("\n",$_COOKIE['comment_info']); 
     127                    $_ctx->subscribeToComments->email = $email['1']; 
     128                    unset($email); 
    148129               } 
    149130 
    150131               # subscriber is logged in 
    151                if (subscriber::checkCookie()) 
     132               $_ctx->subscribeToComments->checkCookie = subscriber::checkCookie(); 
     133               if ($_ctx->subscribeToComments->checkCookie) 
    152134               { 
    153135                    $subscriber = new subscriber(subscriber::getCookie('email')); 
    154                     $_ctx->subscribeToCommentsEmail = $subscriber->email; 
     136                    $_ctx->subscribeToComments->email = $subscriber->email; 
    155137      
    156138                    if ((isset($_POST['requestChangeEmail'])) AND (isset($_POST['new_email']))) 
     
    186168          catch (Exception $e) 
    187169          { 
    188                $_ctx->subscribeToCommentsError = $e->getMessage(); 
     170               $_ctx->form_error = $e->getMessage(); 
    189171          } 
    190  
    191           $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates/'); 
     172           
     173          $_ctx->subscribeToComments->blocked = subscriber::blocked(); 
     174           
     175          # message 
     176          # inspirated by contactMe/_public.php 
     177          switch($args) 
     178          { 
     179               case 'informationsresent' : 
     180                    $msg = __('Account informations sent'); 
     181                    break; 
     182               case 'removedsubscriptions' : 
     183                    $msg = __('Subscriptions removed'); 
     184                    break; 
     185               case 'loggedout' : 
     186                    $msg = __('Logged out'); 
     187                    break; 
     188               case 'loggedin' : 
     189                    $msg = __('Logged in'); 
     190                    break; 
     191               case 'emailsblocked' : 
     192                    $msg = __('Emails blocked'); 
     193                    break; 
     194               case 'emailsallowed' : 
     195                    $msg = __('Emails allowed'); 
     196                    break; 
     197               case 'requestsent' : 
     198                    $msg = __('An email has been sent to the new email address'); 
     199                    break; 
     200               case 'updatedemail' : 
     201                    $msg = __('Email address changed'); 
     202                    break; 
     203               case 'accountdeleted' : 
     204                    $msg = __('Account deleted'); 
     205                    break; 
     206               case 'subscribed' : 
     207                    $msg = __('Subscribed to the entry'); 
     208                    break; 
     209                default : 
     210                    $msg = null; 
     211                    break; 
     212          } 
     213           
     214          $_ctx->subscribeToComments->message = $msg; 
     215          # /message 
     216           
     217          $core->tpl->setPath($core->tpl->getPath(), 
     218               dirname(__FILE__).'/default-templates/'); 
    192219 
    193220          self::serveDocument('subscribetocomments.html','text/html',false,false); 
     
    229256          } 
    230257     } 
    231  
    232      /** 
    233      if there is an error 
    234      @param    attr <b>array</b>   Attribute 
    235      @param    content   <b>string</b>  Content 
    236      @return   <b>string</b> PHP block 
    237      */ 
    238      public static function ifError($attr,$content) 
     258           
     259     /** 
     260     if there is a message 
     261     @param    attr <b>array</b>   Attribute 
     262     @param    content   <b>string</b>  Content 
     263     @return   <b>string</b> PHP block 
     264     */ 
     265     public static function ifMessage($attr,$content) 
    239266     { 
    240267          return 
    241           "<?php if (\$_ctx->subscribeToCommentsError !== null) : ?>"."\n". 
     268          "<?php if (\$_ctx->subscribeToComments->message !== null) : ?>"."\n". 
    242269          $content. 
    243270          "<?php endif; ?>"; 
     
    245272 
    246273     /** 
    247      display an error 
    248      @return   <b>string</b> PHP block 
    249      */ 
    250      public static function error() 
    251      { 
    252           return("<?php if (\$_ctx->subscribeToCommentsError !== null) :"."\n". 
    253           "echo(\$_ctx->subscribeToCommentsError);". 
    254           "endif; ?>"); 
    255      } 
    256  
    257       
    258      /** 
    259      if there is a message 
    260      @param    attr <b>array</b>   Attribute 
    261      @param    content   <b>string</b>  Content 
    262      @return   <b>string</b> PHP block 
    263      */ 
    264      public static function ifMessage($attr,$content) 
    265      { 
    266           return 
    267           "<?php if (\$_ctx->subscribeToCommentsMessage !== null) : ?>"."\n". 
    268           $content. 
    269           "<?php endif; ?>"; 
    270      } 
    271  
    272      /** 
    273274     display a message 
    274275     @return   <b>string</b> PHP block 
     
    276277     public static function message() 
    277278     { 
    278           return("<?php if (\$_ctx->subscribeToCommentsMessage !== null) :"."\n". 
    279           "echo(\$_ctx->subscribeToCommentsMessage);". 
     279          return("<?php if (\$_ctx->subscribeToComments->message !== null) :"."\n". 
     280          "echo(\$_ctx->subscribeToComments->message);". 
    280281          "endif; ?>"); 
    281282     } 
     
    321322     public static function loggedIfNot($attr,$content) 
    322323     { 
    323           return('<?php if (!subscriber::checkCookie()) : ?>'."\n". 
     324          return('<?php if (!$_ctx->subscribeToComments->checkCookie) : ?>'."\n". 
    324325          $content."\n". 
    325326          "<?php endif; ?>"); 
     
    334335     public static function loggedIf($attr,$content) 
    335336     { 
    336           return('<?php if (subscriber::checkCookie()) : ?>'."\n". 
     337          return('<?php if ($_ctx->subscribeToComments->checkCookie) : ?>'."\n". 
    337338          $content."\n". 
    338339          "<?php endif; ?>"); 
     
    347348     public static function blockedIfNot($attr,$content) 
    348349     { 
    349           return('<?php if (!subscriber::blocked()) : ?>'."\n". 
     350          return('<?php if (!$_ctx->subscribeToComments->blocked) : ?>'."\n". 
    350351          $content."\n". 
    351352          "<?php endif; ?>"); 
     
    360361     public static function blockedIf($attr,$content) 
    361362     { 
    362           return('<?php if (subscriber::blocked()) : ?>'."\n". 
     363          return('<?php if ($_ctx->subscribeToComments->blocked) : ?>'."\n". 
    363364          $content."\n". 
    364365          "<?php endif; ?>"); 
     
    395396     public static function email() 
    396397     { 
    397           return('<?php echo($_ctx->subscribeToCommentsEmail); ?>');   
     398          return('<?php echo($_ctx->subscribeToComments->email); ?>');      
    398399     } 
    399400 
     
    420421 
    421422          # if checkbox is unchecked, don't check it 
    422           if (isset($_POST['subscribeToComments'])) 
     423          if (isset($_POST['subscribeToComments']))  
    423424               {$checked = true;} 
    424425          elseif (isset($_COOKIE['subscribetocomments'])) 
     
    435436          echo '<p>'. 
    436437          '<input type="checkbox" name="subscribeToComments" '. 
    437           'id="subscribeToComments"'.$checked.' />'. 
     438          'id="subscribeToComments"'.$checked.' /> '. 
    438439          '<label for="subscribeToComments">'. 
    439440          __('Receive following comments by email').'</label>'. 
     
    531532     $core->tpl->addBlock('SubscribeToCommentsEntryIf', 
    532533          array('subscribeToCommentsTpl','entryIf')); 
    533  
    534      # error 
    535      $core->tpl->addBlock('SubscribeToCommentsIfError', 
    536           array('subscribeToCommentsTpl','ifError')); 
    537      $core->tpl->addValue('SubscribeToCommentsError', 
    538           array('subscribeToCommentsTpl','error')); 
    539  
     534      
    540535     # message 
    541536     $core->tpl->addBlock('SubscribeToCommentsIfMessage', 
  • plugins/subscribeToComments/class.subscriber.php

    r626 r709  
    2424# ***** END LICENSE BLOCK ***** 
    2525 
     26if (!defined('DC_RC_PATH')) {return;} 
    2627 
    2728/** 
     
    390391               header('Content-Type: text/html'); 
    391392               echo 'Precondition Failed'; 
    392                echo '<br /><a href="'.subscribeToComments::url().'">Reload the page</a>'; 
     393               echo '<br /><a href="'.subscribeToComments::url().'">'. 
     394                    __('Reload the page').'</a>'; 
    393395               exit; 
    394396          } 
     
    439441     public static function getCookie($value) 
    440442     { 
    441           if (!isset($_COOKIE['subscribetocomments'])) {return(false);} 
    442           if (strlen($_COOKIE['subscribetocomments']) != 104) {return(false);} 
     443          if ((!isset($_COOKIE['subscribetocomments'])) 
     444               || (strlen($_COOKIE['subscribetocomments']) != 104)) 
     445          { 
     446               return(false); 
     447          } 
    443448 
    444449          $id = substr($_COOKIE['subscribetocomments'],40); 
  • plugins/subscribeToComments/default-templates/subscribetocomments.html

    r608 r709  
    6363     </div> 
    6464 
    65      <tpl:SubscribeToCommentsIfError> 
    66           <div class="error"> 
    67                {{tpl:SubscribeToCommentsError}} 
    68           </div> 
    69      </tpl:SubscribeToCommentsIfError> 
     65     <tpl:SysIfFormError> 
     66          <div class="error">{{tpl:lang Error:}} {{tpl:SysFormError}}</div> 
     67     </tpl:SysIfFormError> 
    7068 
    7169     <div id="comments"> 
     
    8482               <fieldset> 
    8583                         <!-- #<legend>{{tpl:lang Email address}}</legend>--> 
     84                         <p>{{tpl:lang To login, you have to click on the link given in previously sent emails.}} 
     85                              {{tpl:lang Click on the button below to resend informations to your email address.}} 
     86                         </p> 
     87                          
    8688                    <p class="field"> 
    8789                              <label for="email">{{tpl:lang Email address}}&nbsp;:</label> 
     
    9799                              </tpl:EntryIf> 
    98100                         </tpl:SubscribeToCommentsEntryIf> 
    99                          <p>{{tpl:lang To login, you have to click on the link given  
    100                                    in previously sent emails.}} 
    101                               {{tpl:lang Click on the button below to resend informations  
    102                                    to your email address.}}</p> 
     101                          
    103102                         <p><input type="submit" class="submit" name="resend"  
    104103                              value="{{tpl:lang Resend account informations to this  
     
    164163                         </p> 
    165164                         <p> 
    166                               {{tpl:lang You'll have 24 hours to click on the link sent   
    167                                    to the new email address to confirm the change.}} 
     165                              {{tpl:lang You'll have 24 hours to click on the link sent to the new email address to confirm the change.}} 
    168166                         </p> 
    169167                         <p> 
  • plugins/subscribeToComments/index.php

    r626 r709  
    2424# ***** END LICENSE BLOCK ***** 
    2525 
    26 if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     26if (!defined('DC_CONTEXT_ADMIN')) {return;} 
    2727 
    2828# format tables' tbody 
     
    308308 
    309309     <?php  
    310           if (!empty($msg)) {echo '<div class="message"><p>'.$msg.'</p></div>';} 
     310          if (!empty($msg)) {echo '<p class="message">'.$msg.'</p>';} 
    311311          if (!$core->plugins->moduleExists('metadata')) { 
    312312               echo  
  • plugins/subscribeToComments/lib.subscribeToComments.php

    r626 r709  
    2323# 
    2424# ***** END LICENSE BLOCK ***** 
     25 
     26if (!defined('DC_RC_PATH')) {return;} 
    2527 
    2628/** 
     
    353355          self::send($cur,$rs->comment_id); 
    354356     } 
    355  
    356      /** 
    357      display informations on the admin comment form 
    358      @param    rs <b>recordset</b> Recordset 
    359      @return   <b>string</b>  String 
    360      */ 
    361      public static function adminAfterCommentDesc($rs) 
    362      { 
    363           global $core; 
    364  
    365           # ignore trackbacks 
    366           if ($rs->comment_trackback == 1) {return;} 
    367  
    368           $rs = $core->con->select( 
    369                'SELECT notification_sent FROM '.$core->prefix.'comment '. 
    370                'WHERE (comment_id = '.$core->con->escape($rs->comment_id).') '. 
    371                'AND (notification_sent = 1);' 
    372           ); 
    373           if ($rs->isEmpty()) 
    374           { 
    375                $string = sprintf(__('<img src="images/check-off.png" alt="%1$s" title="%1$s" /> Notification email not sent, click on <strong>%2$s</strong>.'),__('not sent'),__('save')); 
    376           } 
    377           else 
    378           { 
    379                $string = sprintf(__('<img src="images/check-on.png" alt="%1$s" title="%1$s" /> Notification email sent.'),__('sent')); 
    380           } 
    381           return('<p><strong>'.__('Subscribe to comments').'</strong> : '.$string.'</p>'); 
    382      } 
    383  
     357      
    384358     /** 
    385359     send emails 
     
    488462     public static function redirect($get='') 
    489463     { 
    490           global $core; 
    491  
    492           $separator = '?'; 
    493           if ($core->blog->settings->url_scan == 'query_string') {$separator = '&';} 
    494           if (isset($get)) {$get = $separator.'message='.$get;} 
    495           http::redirect(subscribeToComments::url().$get); 
     464          http::redirect(subscribeToComments::url().'/'.$get); 
    496465          exit(); 
    497466     } 
  • plugins/subscribeToComments/locales/fr/main.po

    r600 r709  
    33"Project-Id-Version: Subscribe to comments\n" 
    44"Report-Msgid-Bugs-To: \n" 
    5 "POT-Creation-Date: 2008-12-01 20:13+0100\n" 
    6 "PO-Revision-Date: 2008-12-01 20:16+0100\n" 
     5"POT-Creation-Date: 2009-01-20 11:59+0100\n" 
     6"PO-Revision-Date: 2009-01-20 11:59+0100\n" 
    77"Last-Translator: Moe <poedit@gniark.net>\n" 
    88"Language-Team: Moe <poedit@gniark.net>\n" 
     
    1717"X-Poedit-SearchPath-0: .\n" 
    1818 
    19 #: _public.php:66 
    20 #: class.subscriber.php:147 
     19#: _public.php:69 
     20#: class.subscriber.php:149 
    2121msgid "Invalid post ID." 
    2222msgstr "Identifiant du billet invalide." 
    2323 
    24 #: _public.php:124 
     24#: _public.php:180 
    2525msgid "Account informations sent" 
    2626msgstr "Informations sur le compte envoyées" 
    2727 
    28 #: _public.php:125 
     28#: _public.php:183 
    2929msgid "Subscriptions removed" 
    3030msgstr "Abonnements effacés" 
    3131 
    32 #: _public.php:126 
     32#: _public.php:186 
    3333msgid "Logged out" 
    3434msgstr "Déconnecté" 
    3535 
    36 #: _public.php:127 
    37 #: _public.php:432 
     36#: _public.php:189 
     37#: _public.php:433 
    3838msgid "Logged in" 
    3939msgstr "Connecté" 
    4040 
    41 #: _public.php:128 
     41#: _public.php:192 
    4242msgid "Emails blocked" 
    4343msgstr "Emails bloqués" 
    4444 
    45 #: _public.php:129 
     45#: _public.php:195 
    4646msgid "Emails allowed" 
    4747msgstr "Emails autorisés" 
    4848 
    49 #: _public.php:131 
     49#: _public.php:198 
    5050msgid "An email has been sent to the new email address" 
    5151msgstr "Un email a été envoyé à la nouvelle adresse email" 
    5252 
    53 #: _public.php:132 
     53#: _public.php:201 
    5454msgid "Email address changed" 
    5555msgstr "Adresse email changée" 
    5656 
    57 #: _public.php:133 
     57#: _public.php:204 
    5858msgid "Account deleted" 
    5959msgstr "Compte supprimé" 
    6060 
    61 #: _public.php:134 
     61#: _public.php:207 
    6262msgid "Subscribed to the entry" 
    6363msgstr "Abonné au billet" 
    6464 
    65 #: _public.php:439 
     65#: _public.php:440 
    6666#: index.php:508 
    67 #: index.php:521 
    68 #: index.php:528 
     67#: index.php:523 
     68#: index.php:530 
    6969msgid "Receive following comments by email" 
    7070msgstr "Recevoir les commentaires suivants par email" 
    7171 
    72 #: _public.php:498 
     72#: _public.php:499 
    7373msgid "Subscribe to receive following comments by email or manage subscriptions" 
    7474msgstr "S'abonner pour recevoir les commentaires suivants par email ou modifier les abonnements" 
    7575 
    76 #: _public.php:499 
     76#: _public.php:500 
    7777msgid "Subscribe to receive following comments by email" 
    7878msgstr "S'abonner pour recevoir les commentaires suivants par email" 
    7979 
    80 #: lib.subscribeToComments.php:41 
     80#: lib.subscribeToComments.php:43 
    8181msgid "Invalid email address." 
    8282msgstr "Adresse email invalide." 
    8383 
    84 #: lib.subscribeToComments.php:54 
    85 #: class.subscriber.php:480 
     84#: lib.subscribeToComments.php:56 
     85#: class.subscriber.php:493 
    8686msgid "Invalid key." 
    8787msgstr "Clé invalide." 
    8888 
    89 #: lib.subscribeToComments.php:166 
     89#: lib.subscribeToComments.php:168 
    9090msgid "Hello [email]," 
    9191msgstr "" 
    9292 
    93 #: lib.subscribeToComments.php:168 
     93#: lib.subscribeToComments.php:170 
    9494msgid "To manage your subscriptions, change your email address or block emails, click here : [manageurl]" 
    9595msgstr "" 
    9696 
    97 #: lib.subscribeToComments.php:172 
     97#: lib.subscribeToComments.php:174 
    9898msgid "Your account on [blogname]" 
    9999msgstr "" 
    100100 
    101 #: lib.subscribeToComments.php:179 
     101#: lib.subscribeToComments.php:181 
    102102msgid "here are some informations about your account on [blogname] :" 
    103103msgstr "" 
    104104 
    105 #: lib.subscribeToComments.php:181 
     105#: lib.subscribeToComments.php:183 
    106106msgid "Email address : [email]" 
    107107msgstr "" 
    108108 
    109 #: lib.subscribeToComments.php:192 
     109#: lib.subscribeToComments.php:194 
    110110msgid "Subscribed to [posttitle] - [blogname]" 
    111111msgstr "" 
    112112 
    113 #: lib.subscribeToComments.php:198 
     113#: lib.subscribeToComments.php:200 
    114114msgid "you subscribed to [posttitle] : [posturl]" 
    115115msgstr "" 
    116116 
    117 #: lib.subscribeToComments.php:207 
     117#: lib.subscribeToComments.php:209 
    118118msgid "New comment on [posttitle] - [blogname]" 
    119119msgstr "" 
    120120 
    121 #: lib.subscribeToComments.php:213 
     121#: lib.subscribeToComments.php:215 
    122122msgid "a new comment has been posted by [commentauthor] on [posttitle] :" 
    123123msgstr "" 
    124124 
    125 #: lib.subscribeToComments.php:218 
     125#: lib.subscribeToComments.php:220 
    126126msgid "View the comment : [commenturl]" 
    127127msgstr "" 
    128128 
    129 #: lib.subscribeToComments.php:219 
     129#: lib.subscribeToComments.php:221 
    130130msgid "View the post : [posturl]" 
    131131msgstr "" 
    132132 
    133 #: lib.subscribeToComments.php:228 
     133#: lib.subscribeToComments.php:230 
    134134msgid "Change email address on [blogname]" 
    135135msgstr "" 
    136136 
    137 #: lib.subscribeToComments.php:234 
     137#: lib.subscribeToComments.php:236 
    138138msgid "you have requested to change the email address of your subscriptions to [newemail], click on this link : [emailurl]" 
    139139msgstr "" 
    140140 
    141 #: lib.subscribeToComments.php:236 
     141#: lib.subscribeToComments.php:238 
    142142msgid "This link is valid for 24 hours." 
    143143msgstr "" 
    144144 
    145 #: lib.subscribeToComments.php:372 
    146 #, php-format 
    147 msgid "<img src=\"images/check-off.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email not sent, click on <strong>%2$s</strong>." 
    148 msgstr "<img src=\"images/check-off.png\" alt=\"%1$s\" title=\"%1$s\" /> Email de notification non envoyé, cliquez sur <strong>%2$s</strong>." 
    149  
    150 #: lib.subscribeToComments.php:372 
    151 msgid "not sent" 
    152 msgstr "non envoyé" 
    153  
    154 #: lib.subscribeToComments.php:372 
    155 msgid "save" 
    156 msgstr "" 
    157  
    158 #: lib.subscribeToComments.php:376 
    159 #, php-format 
    160 msgid "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email sent." 
    161 msgstr "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Email de notification envoyé." 
    162  
    163 #: lib.subscribeToComments.php:376 
    164 msgid "sent" 
    165 msgstr "envoyé" 
    166  
    167 #: lib.subscribeToComments.php:378 
    168 #: public_l10n.php:22 
    169145#: _admin.php:28 
     146#: _admin.php:96 
    170147#: index.php:79 
    171148#: index.php:157 
     
    176153#: index.php:351 
    177154#: index.php:502 
    178 #: index.php:544 
    179 #: index.php:579 
     155#: index.php:548 
     156#: index.php:585 
     157#: public_l10n.php:24 
    180158msgid "Subscribe to comments" 
    181159msgstr "Abonnement aux commentaires" 
    182160 
    183 #: public_l10n.php:2 
    184 msgid "Account" 
    185 msgstr "Compte" 
    186  
    187 #: public_l10n.php:3 
    188 msgid "Allow emails ?" 
    189 msgstr "Autoriser les emails ?" 
    190  
    191 #: public_l10n.php:4 
    192 msgid "Allow emails" 
    193 msgstr "Autoriser les emails" 
    194  
    195 #: public_l10n.php:5 
    196 msgid "Archives" 
    197 msgstr "" 
    198  
    199 #: public_l10n.php:6 
    200 msgid "Block emails ?" 
    201 msgstr "Bloquer les emails ?" 
    202  
    203 #: public_l10n.php:7 
    204 msgid "Block emails" 
    205 msgstr "Bloquer les emails" 
    206  
    207 #: public_l10n.php:8 
    208 msgid "Change email address" 
    209 msgstr "Changer l'adresse email" 
    210  
    211 #: public_l10n.php:9 
    212 msgid "Delete all subscriptions and the account" 
    213 msgstr "Supprimer tous les abonnements et le compte" 
    214  
    215 #: public_l10n.php:10 
    216 msgid "Delete the account ?" 
    217 msgstr "Supprimer le compte ?" 
    218  
    219 #: public_l10n.php:11 
    220 #: index.php:77 
    221 #: index.php:590 
    222 msgid "Email address" 
    223 msgstr "Adresse email" 
    224  
    225 #: public_l10n.php:12 
    226 msgid "Entries" 
    227 msgstr "Billets" 
    228  
    229 #: public_l10n.php:13 
    230 msgid "Get back to" 
    231 msgstr "Revenir à" 
    232  
    233 #: public_l10n.php:14 
    234 msgid "Home" 
    235 msgstr "Accueil" 
    236  
    237 #: public_l10n.php:15 
    238 msgid "invert selection" 
    239 msgstr "inverser la sélection" 
    240  
    241 #: public_l10n.php:16 
    242 msgid "Logout" 
    243 msgstr "Déconnexion" 
    244  
    245 #: public_l10n.php:17 
    246 #: index.php:95 
    247 msgid "New email address" 
    248 msgstr "Nouvelle adresse email" 
    249  
    250 #: public_l10n.php:18 
    251 msgid "Remove selected subscriptions" 
    252 msgstr "Supprimer les abonnements sélectionnés" 
    253  
    254 #: public_l10n.php:19 
    255 msgid "Remove subscriptions" 
    256 msgstr "Supprimer des abonnements" 
    257  
    258 #: public_l10n.php:20 
    259 msgid "select all" 
    260 msgstr "tout sélectionner" 
    261  
    262 #: public_l10n.php:21 
    263 msgid "Subscribe to" 
    264 msgstr "S'abonner à" 
    265  
    266 #: public_l10n.php:23 
    267 msgid "Subscribe to one entry" 
    268 msgstr "S'abonner à un billet" 
    269  
    270 #: class.subscriber.php:62 
    271 #: class.subscriber.php:308 
     161#: _admin.php:87 
     162#, php-format 
     163msgid "<img src=\"images/check-off.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email not sent, click on <strong>%2$s</strong>." 
     164msgstr "<img src=\"images/check-off.png\" alt=\"%1$s\" title=\"%1$s\" /> Email de notification non envoyé, cliquez sur <strong>%2$s</strong>." 
     165 
     166#: _admin.php:88 
     167msgid "not sent" 
     168msgstr "non envoyé" 
     169 
     170#: _admin.php:88 
     171msgid "save" 
     172msgstr "" 
     173 
     174#: _admin.php:93 
     175#, php-format 
     176msgid "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email sent." 
     177msgstr "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Email de notification envoyé." 
     178 
     179#: _admin.php:94 
     180msgid "sent" 
     181msgstr "envoyé" 
     182 
     183#: class.subscriber.php:63 
     184#: class.subscriber.php:313 
    272185msgid "Invalid email address or key." 
    273186msgstr "Adresse email ou clé invalide." 
    274187 
    275 #: class.subscriber.php:152 
     188#: class.subscriber.php:154 
    276189msgid "Invalid post." 
    277190msgstr "Billet invalide." 
    278191 
    279 #: class.subscriber.php:196 
    280 #: class.subscriber.php:485 
     192#: class.subscriber.php:198 
     193#: class.subscriber.php:500 
    281194msgid "This email address already exists." 
    282195msgstr "Cette adresse email existe déjà." 
    283196 
    284 #: class.subscriber.php:489 
     197#: class.subscriber.php:394 
     198msgid "Reload the page" 
     199msgstr "Recharger la page" 
     200 
     201#: class.subscriber.php:504 
    285202msgid "Link expired, request another email." 
    286203msgstr "Lien périmé, demandez un autre email." 
     
    293210msgid "Blog URL" 
    294211msgstr "URL du blog" 
     212 
     213#: index.php:77 
     214#: index.php:596 
     215#: public_l10n.php:12 
     216msgid "Email address" 
     217msgstr "Adresse email" 
    295218 
    296219#: index.php:79 
     
    321244msgstr "Contenu du commentaire" 
    322245 
     246#: index.php:95 
     247#: public_l10n.php:19 
     248msgid "New email address" 
     249msgstr "Nouvelle adresse email" 
     250 
    323251#: index.php:97 
    324252msgid "URL to confirm the change of email address" 
     
    355283 
    356284#: index.php:313 
     285#: public_l10n.php:14 
    357286msgid "Error:" 
    358287msgstr "Erreur:" 
     
    374303#: index.php:330 
    375304#: index.php:487 
    376 #: index.php:557 
     305#: index.php:563 
    377306msgid "Save configuration" 
    378307msgstr "Enregistrer la configuration" 
     
    506435 
    507436#: index.php:512 
    508 #: index.php:532 
    509 #: index.php:548 
     437#: index.php:534 
     438#: index.php:554 
    510439msgid "or" 
    511440msgstr "ou" 
     
    515444msgstr "insérez ceci dans le formulaire de commentaire (suggestion : dans le <code>&lt;fieldset&gt;</code> avant la balise <code>&lt;/form&gt;</code>) :" 
    516445 
    517 #: index.php:520 
     446#: index.php:522 
    518447#, php-format 
    519448msgid "If the <strong>%s</strong> checkbox is not displayed correctly and the blog use Blowup or Blue Silence theme, check this :" 
    520449msgstr "Si la case <strong>%s</strong> n'est pas affichée correctement et que le blog utilise le thème Blowup ou Blue Silence, cochez ceci :" 
    521450 
    522 #: index.php:527 
     451#: index.php:529 
    523452#, php-format 
    524453msgid "Add a CSS rule to style the <strong>%1$s</strong> checkbox" 
    525454msgstr "Ajouter une règle CSS pour styler la case <strong>%1$s</strong>" 
    526455 
    527 #: index.php:533 
     456#: index.php:535 
    528457msgid "add this CSS rule at the end of the file <strong>style.css</strong>" 
    529458msgstr "ajoutez cette règle CSS à la fin du fichier <strong>style.css</strong>" 
    530459 
    531 #: index.php:543 
     460#: index.php:547 
    532461#, php-format 
    533462msgid "Add a link to the <strong>%s</strong> page between the comments and the trackbacks" 
    534463msgstr "Ajouter un lien vers la page <strong>%s</strong> entre les commentaires et les rétroliens" 
    535464 
    536 #: index.php:549 
     465#: index.php:551 
     466#, php-format 
     467msgid "The code will appear after the %s tag." 
     468msgstr "Le code apparaîtra après la balise %s." 
     469 
     470#: index.php:555 
    537471msgid "insert this anywhere on the page (suggestion : just after the <code>&lt;/form&gt;</code> tag) :" 
    538472msgstr "insérez ceci n'importe où dans la page (suggestion : juste après la balise <code>&lt;/form&gt;</code>) :" 
    539473 
    540 #: index.php:561 
     474#: index.php:567 
    541475msgid "Restore" 
    542476msgstr "Restaurer" 
    543477 
    544 #: index.php:562 
    545 #: index.php:572 
     478#: index.php:568 
     479#: index.php:578 
    546480msgid "Restore default settings" 
    547481msgstr "Restaurer les paramètres par défaut" 
    548482 
    549 #: index.php:566 
     483#: index.php:572 
    550484msgid "Language:" 
    551485msgstr "Langue&nbsp;:" 
    552486 
    553 #: index.php:576 
    554 #: index.php:578 
     487#: index.php:582 
     488#: index.php:584 
    555489msgid "Help" 
    556490msgstr "" 
    557491 
    558 #: index.php:579 
     492#: index.php:585 
    559493#, php-format 
    560494msgid "%s send notification emails to the subscribers of a post when :" 
    561495msgstr "%s envoie des emails de notification aux abonnés d'un billet quand :" 
    562496 
    563 #: index.php:581 
     497#: index.php:587 
    564498msgid "a comment is posted and published immediatly" 
    565499msgstr "un commentaire est posté et publié immédiatement" 
    566500 
    567 #: index.php:582 
     501#: index.php:588 
    568502msgid "a pending comment is published" 
    569503msgstr "un commentaire en attente est publié à partir de l'interface d'administation" 
    570504 
    571 #: index.php:584 
     505#: index.php:590 
    572506msgid "If this weblog is hosted by free.fr, create a <code>/sessions/</code> directory in the root directory of the website." 
    573507msgstr "Si ce blog est hébergé chez free.fr, créez un répertoire <code>/sessions/</code> dans le répertoire racine de ce site." 
    574508 
    575 #: index.php:585 
     509#: index.php:591 
    576510msgid "To use this plugin, you have to test if the server can send emails :" 
    577511msgstr "Pour utiliser ce plugin, vous devez tester si le serveur peut envoyer des emails :" 
    578512 
    579 #: index.php:588 
     513#: index.php:594 
    580514msgid "Test" 
    581515msgstr "Test" 
    582516 
    583 #: index.php:595 
     517#: index.php:601 
    584518#, php-format 
    585519msgid "This will send a email, if you don't receive it, try to <a href=\"%s\">change the way Dotclear send emails</a>." 
    586520msgstr "Ceci enverra un email, si vous ne le recevez pas, essayez de <a href=\"%s\">changer la façon dont Dotclear envoie les emails</a>" 
    587521 
    588 #: index.php:598 
     522#: index.php:604 
    589523msgid "Try to send an email" 
    590524msgstr "Essayer d'envoyer un email" 
    591525 
    592 #: index.php:602 
     526#: index.php:608 
    593527#, php-format 
    594528msgid "Inspired by <a href=\"%1$s\">%2$s</a>" 
    595529msgstr "Inspiré par <a href=\"%1$s\">%2$s</a>" 
    596530 
    597 #: index.php:604 
     531#: index.php:610 
    598532msgid "Subscribe to comments for WordPress" 
    599533msgstr "Subscribe to comments pour WordPress" 
    600534 
     535#: public_l10n.php:2 
     536msgid "Account" 
     537msgstr "Compte" 
     538 
     539#: public_l10n.php:3 
     540msgid "Allow emails ?" 
     541msgstr "Autoriser les emails ?" 
     542 
     543#: public_l10n.php:4 
     544msgid "Allow emails" 
     545msgstr "Autoriser les emails" 
     546 
     547#: public_l10n.php:5 
     548msgid "Archives" 
     549msgstr "" 
     550 
     551#: public_l10n.php:6 
     552msgid "Block emails ?" 
     553msgstr "Bloquer les emails ?" 
     554 
     555#: public_l10n.php:7 
     556msgid "Block emails" 
     557msgstr "Bloquer les emails" 
     558 
     559#: public_l10n.php:8 
     560msgid "Change email address" 
     561msgstr "Changer l'adresse email" 
     562 
     563#: public_l10n.php:9 
     564msgid "Click on the button below to resend informations to your email address." 
     565msgstr "Cliquez sur le bouton ci-dessous pour renvoyer les informations à votre adresse email." 
     566 
     567#: public_l10n.php:10 
     568msgid "Delete all subscriptions and the account" 
     569msgstr "Supprimer tous les abonnements et le compte" 
     570 
     571#: public_l10n.php:11 
     572msgid "Delete the account ?" 
     573msgstr "Supprimer le compte ?" 
     574 
     575#: public_l10n.php:13 
     576msgid "Entries" 
     577msgstr "Billets" 
     578 
     579#: public_l10n.php:15 
     580msgid "Get back to" 
     581msgstr "Revenir à" 
     582 
     583#: public_l10n.php:16 
     584msgid "Home" 
     585msgstr "Accueil" 
     586 
     587#: public_l10n.php:17 
     588msgid "invert selection" 
     589msgstr "inverser la sélection" 
     590 
     591#: public_l10n.php:18 
     592msgid "Logout" 
     593msgstr "Déconnexion" 
     594 
     595#: public_l10n.php:20 
     596msgid "Remove selected subscriptions" 
     597msgstr "Supprimer les abonnements sélectionnés" 
     598 
     599#: public_l10n.php:21 
     600msgid "Remove subscriptions" 
     601msgstr "Supprimer des abonnements" 
     602 
     603#: public_l10n.php:22 
     604msgid "select all" 
     605msgstr "tout sélectionner" 
     606 
     607#: public_l10n.php:23 
     608msgid "Subscribe to" 
     609msgstr "S'abonner à" 
     610 
     611#: public_l10n.php:25 
     612msgid "Subscribe to one entry" 
     613msgstr "S'abonner à un billet" 
     614 
     615#: public_l10n.php:26 
     616msgid "To login, you have to click on the link given in previously sent emails." 
     617msgstr "Pour vous connecter, vous devez cliquer sur le lien donné dans les emails envoyés précédemment." 
     618 
     619#: public_l10n.php:27 
     620msgid "You'll have 24 hours to click on the link sent to the new email address to confirm the change." 
     621msgstr "Vous aurez 24 heures pour cliquer sur le lien envoyé à la nouvelle adresse email pour confirmer le changement." 
     622 
  • plugins/subscribeToComments/public_l10n.php

    r600 r709  
    77__("Block emails"); 
    88__("Change email address"); 
     9__("Click on the button below to resend informations to your email address."); 
    910__("Delete all subscriptions and the account"); 
    1011__("Delete the account ?"); 
    1112__("Email address"); 
    1213__("Entries"); 
     14__("Error:"); 
    1315__("Get back to"); 
    1416__("Home"); 
     
    2224__("Subscribe to comments"); 
    2325__("Subscribe to one entry"); 
     26__("To login, you have to click on the link given in previously sent emails."); 
     27__("You'll have 24 hours to click on the link sent to the new email address to confirm the change."); 
    2428?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map