Changeset 709
- Timestamp:
- 01/20/09 12:04:23 (14 years ago)
- Location:
- plugins/subscribeToComments
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/subscribeToComments/_admin.php
r626 r709 36 36 $core->addBehavior('coreAfterCommentCreate',array('subscribeToComments', 37 37 'coreAfterCommentCreate')); 38 $core->addBehavior('adminAfterCommentDesc',array('subscribeToComments',39 'adminAfterCommentDesc'));40 38 # when a comment is published 41 39 $core->addBehavior('coreAfterCommentUpdate',array('subscribeToComments', 42 40 'coreAfterCommentUpdate')); 41 $core->addBehavior('adminAfterCommentDesc',array('subscribeToCommentsAdmin', 42 'adminAfterCommentDesc')); 43 43 } 44 44 45 45 # import/Export 46 # from /dotclear/plugins/metadata/_admin.php, modified 46 47 47 48 $core->addBehavior('exportFull', … … 62 63 class subscribeToCommentsAdmin 63 64 { 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 64 99 public static function exportFull(&$core,&$exp) 65 100 { … … 76 111 public static function importInit(&$bk,&$core) 77 112 { 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'); 79 115 } 80 116 81 117 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 83 124 if ($line->__name == 'comment_subscriber') 84 125 { … … 86 127 87 128 $bk->cur_comment_subscriber->id = (integer) $line->id; 88 89 129 $bk->cur_comment_subscriber->email = (string) $line->email; 90 130 $bk->cur_comment_subscriber->user_key = (string) $line->user_key; 91 131 $bk->cur_comment_subscriber->temp_key = (string) $line->temp_key; 92 132 $bk->cur_comment_subscriber->temp_expire = (string) $line->temp_expire; 93 94 133 $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(); 106 136 } 107 137 } … … 120 150 121 151 $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.'\');'); 123 154 if ($rs->isEmpty()) 124 155 { … … 127 158 else 128 159 { 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).'\')'); 130 162 } 131 163 } -
plugins/subscribeToComments/_define.php
r626 r709 30 30 /* Description*/ "Subscribe to comments", 31 31 /* Author */ "Moe (http://gniark.net/)", 32 /* Version */ '1.3-alpha 1',32 /* Version */ '1.3-alpha2', 33 33 /* Permissions */ 'admin' 34 34 ); -
plugins/subscribeToComments/_install.php
r534 r709 24 24 # ***** END LICENSE BLOCK ***** 25 25 26 if (!defined('DC_CONTEXT_ADMIN')) { return;}26 if (!defined('DC_CONTEXT_ADMIN')) {return;} 27 27 28 28 # On lit la version du plugin -
plugins/subscribeToComments/_prepend.php
r534 r709 30 30 31 31 $core->url->register('subscribetocomments','subscribetocomments', 32 '^subscribetocomments( /.+)?$',array('subscribeToCommentsDocument','page'));32 '^subscribetocomments(?:/(.+))?$',array('subscribeToCommentsDocument','page')); 33 33 34 34 ?> -
plugins/subscribeToComments/_public.php
r534 r709 24 24 # ***** END LICENSE BLOCK ***** 25 25 26 if (!defined('DC_RC_PATH')) { return; } 26 if (!defined('DC_RC_PATH')) {return;} 27 28 29 $core->tpl->addBlock('SubscribeToCommentsIsActive', 30 'subscribeToCommentsIsActive'); 27 31 28 32 function subscribeToCommentsIsActive($attr,$content) … … 32 36 '<?php endif; ?>'; 33 37 } 34 $core->tpl->addBlock('SubscribeToCommentsIsActive',35 'subscribeToCommentsIsActive');36 37 38 # load locales for the blog language39 l10n::set(dirname(__FILE__).'/locales/'.$core->blog->settings->lang.'/public');40 38 41 39 /** … … 48 46 serve the document 49 47 */ 50 public static function page( )48 public static function page($args) 51 49 { 52 50 global $core; … … 58 56 59 57 $_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 61 64 try { 62 65 subscribeToComments::cleanKeys(); … … 116 119 subscribeToComments::redirect('updatedemail'); 117 120 } 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 142 122 # email address 143 $_ctx->subscribeToComments Email = '';123 $_ctx->subscribeToComments->email = ''; 144 124 if (isset($_COOKIE['comment_info'])) 145 125 { 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); 148 129 } 149 130 150 131 # subscriber is logged in 151 if (subscriber::checkCookie()) 132 $_ctx->subscribeToComments->checkCookie = subscriber::checkCookie(); 133 if ($_ctx->subscribeToComments->checkCookie) 152 134 { 153 135 $subscriber = new subscriber(subscriber::getCookie('email')); 154 $_ctx->subscribeToComments Email = $subscriber->email;136 $_ctx->subscribeToComments->email = $subscriber->email; 155 137 156 138 if ((isset($_POST['requestChangeEmail'])) AND (isset($_POST['new_email']))) … … 186 168 catch (Exception $e) 187 169 { 188 $_ctx-> subscribeToCommentsError = $e->getMessage();170 $_ctx->form_error = $e->getMessage(); 189 171 } 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/'); 192 219 193 220 self::serveDocument('subscribetocomments.html','text/html',false,false); … … 229 256 } 230 257 } 231 232 /** 233 if there is a n error234 @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 if Error($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) 239 266 { 240 267 return 241 "<?php if (\$_ctx->subscribeToComments Error!== null) : ?>"."\n".268 "<?php if (\$_ctx->subscribeToComments->message !== null) : ?>"."\n". 242 269 $content. 243 270 "<?php endif; ?>"; … … 245 272 246 273 /** 247 display an error248 @return <b>string</b> PHP block249 */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 message260 @param attr <b>array</b> Attribute261 @param content <b>string</b> Content262 @return <b>string</b> PHP block263 */264 public static function ifMessage($attr,$content)265 {266 return267 "<?php if (\$_ctx->subscribeToCommentsMessage !== null) : ?>"."\n".268 $content.269 "<?php endif; ?>";270 }271 272 /**273 274 display a message 274 275 @return <b>string</b> PHP block … … 276 277 public static function message() 277 278 { 278 return("<?php if (\$_ctx->subscribeToComments Message !== null) :"."\n".279 "echo(\$_ctx->subscribeToComments Message);".279 return("<?php if (\$_ctx->subscribeToComments->message !== null) :"."\n". 280 "echo(\$_ctx->subscribeToComments->message);". 280 281 "endif; ?>"); 281 282 } … … 321 322 public static function loggedIfNot($attr,$content) 322 323 { 323 return('<?php if (! subscriber::checkCookie()) : ?>'."\n".324 return('<?php if (!$_ctx->subscribeToComments->checkCookie) : ?>'."\n". 324 325 $content."\n". 325 326 "<?php endif; ?>"); … … 334 335 public static function loggedIf($attr,$content) 335 336 { 336 return('<?php if ( subscriber::checkCookie()) : ?>'."\n".337 return('<?php if ($_ctx->subscribeToComments->checkCookie) : ?>'."\n". 337 338 $content."\n". 338 339 "<?php endif; ?>"); … … 347 348 public static function blockedIfNot($attr,$content) 348 349 { 349 return('<?php if (! subscriber::blocked()) : ?>'."\n".350 return('<?php if (!$_ctx->subscribeToComments->blocked) : ?>'."\n". 350 351 $content."\n". 351 352 "<?php endif; ?>"); … … 360 361 public static function blockedIf($attr,$content) 361 362 { 362 return('<?php if ( subscriber::blocked()) : ?>'."\n".363 return('<?php if ($_ctx->subscribeToComments->blocked) : ?>'."\n". 363 364 $content."\n". 364 365 "<?php endif; ?>"); … … 395 396 public static function email() 396 397 { 397 return('<?php echo($_ctx->subscribeToComments Email); ?>');398 return('<?php echo($_ctx->subscribeToComments->email); ?>'); 398 399 } 399 400 … … 420 421 421 422 # if checkbox is unchecked, don't check it 422 if (isset($_POST['subscribeToComments'])) 423 if (isset($_POST['subscribeToComments'])) 423 424 {$checked = true;} 424 425 elseif (isset($_COOKIE['subscribetocomments'])) … … 435 436 echo '<p>'. 436 437 '<input type="checkbox" name="subscribeToComments" '. 437 'id="subscribeToComments"'.$checked.' /> '.438 'id="subscribeToComments"'.$checked.' /> '. 438 439 '<label for="subscribeToComments">'. 439 440 __('Receive following comments by email').'</label>'. … … 531 532 $core->tpl->addBlock('SubscribeToCommentsEntryIf', 532 533 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 540 535 # message 541 536 $core->tpl->addBlock('SubscribeToCommentsIfMessage', -
plugins/subscribeToComments/class.subscriber.php
r626 r709 24 24 # ***** END LICENSE BLOCK ***** 25 25 26 if (!defined('DC_RC_PATH')) {return;} 26 27 27 28 /** … … 390 391 header('Content-Type: text/html'); 391 392 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>'; 393 395 exit; 394 396 } … … 439 441 public static function getCookie($value) 440 442 { 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 } 443 448 444 449 $id = substr($_COOKIE['subscribetocomments'],40); -
plugins/subscribeToComments/default-templates/subscribetocomments.html
r608 r709 63 63 </div> 64 64 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> 70 68 71 69 <div id="comments"> … … 84 82 <fieldset> 85 83 <!-- #<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 86 88 <p class="field"> 87 89 <label for="email">{{tpl:lang Email address}} :</label> … … 97 99 </tpl:EntryIf> 98 100 </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 103 102 <p><input type="submit" class="submit" name="resend" 104 103 value="{{tpl:lang Resend account informations to this … … 164 163 </p> 165 164 <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.}} 168 166 </p> 169 167 <p> -
plugins/subscribeToComments/index.php
r626 r709 24 24 # ***** END LICENSE BLOCK ***** 25 25 26 if (!defined('DC_CONTEXT_ADMIN')) { return;}26 if (!defined('DC_CONTEXT_ADMIN')) {return;} 27 27 28 28 # format tables' tbody … … 308 308 309 309 <?php 310 if (!empty($msg)) {echo '< div class="message"><p>'.$msg.'</p></div>';}310 if (!empty($msg)) {echo '<p class="message">'.$msg.'</p>';} 311 311 if (!$core->plugins->moduleExists('metadata')) { 312 312 echo -
plugins/subscribeToComments/lib.subscribeToComments.php
r626 r709 23 23 # 24 24 # ***** END LICENSE BLOCK ***** 25 26 if (!defined('DC_RC_PATH')) {return;} 25 27 26 28 /** … … 353 355 self::send($cur,$rs->comment_id); 354 356 } 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 384 358 /** 385 359 send emails … … 488 462 public static function redirect($get='') 489 463 { 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); 496 465 exit(); 497 466 } -
plugins/subscribeToComments/locales/fr/main.po
r600 r709 3 3 "Project-Id-Version: Subscribe to comments\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 200 8-12-01 20:13+0100\n"6 "PO-Revision-Date: 200 8-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" 7 7 "Last-Translator: Moe <poedit@gniark.net>\n" 8 8 "Language-Team: Moe <poedit@gniark.net>\n" … … 17 17 "X-Poedit-SearchPath-0: .\n" 18 18 19 #: _public.php:6 620 #: class.subscriber.php:14 719 #: _public.php:69 20 #: class.subscriber.php:149 21 21 msgid "Invalid post ID." 22 22 msgstr "Identifiant du billet invalide." 23 23 24 #: _public.php:1 2424 #: _public.php:180 25 25 msgid "Account informations sent" 26 26 msgstr "Informations sur le compte envoyées" 27 27 28 #: _public.php:1 2528 #: _public.php:183 29 29 msgid "Subscriptions removed" 30 30 msgstr "Abonnements effacés" 31 31 32 #: _public.php:1 2632 #: _public.php:186 33 33 msgid "Logged out" 34 34 msgstr "Déconnecté" 35 35 36 #: _public.php:1 2737 #: _public.php:43 236 #: _public.php:189 37 #: _public.php:433 38 38 msgid "Logged in" 39 39 msgstr "Connecté" 40 40 41 #: _public.php:1 2841 #: _public.php:192 42 42 msgid "Emails blocked" 43 43 msgstr "Emails bloqués" 44 44 45 #: _public.php:1 2945 #: _public.php:195 46 46 msgid "Emails allowed" 47 47 msgstr "Emails autorisés" 48 48 49 #: _public.php:1 3149 #: _public.php:198 50 50 msgid "An email has been sent to the new email address" 51 51 msgstr "Un email a été envoyé à la nouvelle adresse email" 52 52 53 #: _public.php: 13253 #: _public.php:201 54 54 msgid "Email address changed" 55 55 msgstr "Adresse email changée" 56 56 57 #: _public.php: 13357 #: _public.php:204 58 58 msgid "Account deleted" 59 59 msgstr "Compte supprimé" 60 60 61 #: _public.php: 13461 #: _public.php:207 62 62 msgid "Subscribed to the entry" 63 63 msgstr "Abonné au billet" 64 64 65 #: _public.php:4 3965 #: _public.php:440 66 66 #: index.php:508 67 #: index.php:52 168 #: index.php:5 2867 #: index.php:523 68 #: index.php:530 69 69 msgid "Receive following comments by email" 70 70 msgstr "Recevoir les commentaires suivants par email" 71 71 72 #: _public.php:49 872 #: _public.php:499 73 73 msgid "Subscribe to receive following comments by email or manage subscriptions" 74 74 msgstr "S'abonner pour recevoir les commentaires suivants par email ou modifier les abonnements" 75 75 76 #: _public.php: 49976 #: _public.php:500 77 77 msgid "Subscribe to receive following comments by email" 78 78 msgstr "S'abonner pour recevoir les commentaires suivants par email" 79 79 80 #: lib.subscribeToComments.php:4 180 #: lib.subscribeToComments.php:43 81 81 msgid "Invalid email address." 82 82 msgstr "Adresse email invalide." 83 83 84 #: lib.subscribeToComments.php:5 485 #: class.subscriber.php:4 8084 #: lib.subscribeToComments.php:56 85 #: class.subscriber.php:493 86 86 msgid "Invalid key." 87 87 msgstr "Clé invalide." 88 88 89 #: lib.subscribeToComments.php:16 689 #: lib.subscribeToComments.php:168 90 90 msgid "Hello [email]," 91 91 msgstr "" 92 92 93 #: lib.subscribeToComments.php:1 6893 #: lib.subscribeToComments.php:170 94 94 msgid "To manage your subscriptions, change your email address or block emails, click here : [manageurl]" 95 95 msgstr "" 96 96 97 #: lib.subscribeToComments.php:17 297 #: lib.subscribeToComments.php:174 98 98 msgid "Your account on [blogname]" 99 99 msgstr "" 100 100 101 #: lib.subscribeToComments.php:1 79101 #: lib.subscribeToComments.php:181 102 102 msgid "here are some informations about your account on [blogname] :" 103 103 msgstr "" 104 104 105 #: lib.subscribeToComments.php:18 1105 #: lib.subscribeToComments.php:183 106 106 msgid "Email address : [email]" 107 107 msgstr "" 108 108 109 #: lib.subscribeToComments.php:19 2109 #: lib.subscribeToComments.php:194 110 110 msgid "Subscribed to [posttitle] - [blogname]" 111 111 msgstr "" 112 112 113 #: lib.subscribeToComments.php: 198113 #: lib.subscribeToComments.php:200 114 114 msgid "you subscribed to [posttitle] : [posturl]" 115 115 msgstr "" 116 116 117 #: lib.subscribeToComments.php:20 7117 #: lib.subscribeToComments.php:209 118 118 msgid "New comment on [posttitle] - [blogname]" 119 119 msgstr "" 120 120 121 #: lib.subscribeToComments.php:21 3121 #: lib.subscribeToComments.php:215 122 122 msgid "a new comment has been posted by [commentauthor] on [posttitle] :" 123 123 msgstr "" 124 124 125 #: lib.subscribeToComments.php:2 18125 #: lib.subscribeToComments.php:220 126 126 msgid "View the comment : [commenturl]" 127 127 msgstr "" 128 128 129 #: lib.subscribeToComments.php:2 19129 #: lib.subscribeToComments.php:221 130 130 msgid "View the post : [posturl]" 131 131 msgstr "" 132 132 133 #: lib.subscribeToComments.php:2 28133 #: lib.subscribeToComments.php:230 134 134 msgid "Change email address on [blogname]" 135 135 msgstr "" 136 136 137 #: lib.subscribeToComments.php:23 4137 #: lib.subscribeToComments.php:236 138 138 msgid "you have requested to change the email address of your subscriptions to [newemail], click on this link : [emailurl]" 139 139 msgstr "" 140 140 141 #: lib.subscribeToComments.php:23 6141 #: lib.subscribeToComments.php:238 142 142 msgid "This link is valid for 24 hours." 143 143 msgstr "" 144 144 145 #: lib.subscribeToComments.php:372146 #, php-format147 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:372151 msgid "not sent"152 msgstr "non envoyé"153 154 #: lib.subscribeToComments.php:372155 msgid "save"156 msgstr ""157 158 #: lib.subscribeToComments.php:376159 #, php-format160 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:376164 msgid "sent"165 msgstr "envoyé"166 167 #: lib.subscribeToComments.php:378168 #: public_l10n.php:22169 145 #: _admin.php:28 146 #: _admin.php:96 170 147 #: index.php:79 171 148 #: index.php:157 … … 176 153 #: index.php:351 177 154 #: index.php:502 178 #: index.php:544 179 #: index.php:579 155 #: index.php:548 156 #: index.php:585 157 #: public_l10n.php:24 180 158 msgid "Subscribe to comments" 181 159 msgstr "Abonnement aux commentaires" 182 160 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 163 msgid "<img src=\"images/check-off.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email not sent, click on <strong>%2$s</strong>." 164 msgstr "<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 167 msgid "not sent" 168 msgstr "non envoyé" 169 170 #: _admin.php:88 171 msgid "save" 172 msgstr "" 173 174 #: _admin.php:93 175 #, php-format 176 msgid "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Notification email sent." 177 msgstr "<img src=\"images/check-on.png\" alt=\"%1$s\" title=\"%1$s\" /> Email de notification envoyé." 178 179 #: _admin.php:94 180 msgid "sent" 181 msgstr "envoyé" 182 183 #: class.subscriber.php:63 184 #: class.subscriber.php:313 272 185 msgid "Invalid email address or key." 273 186 msgstr "Adresse email ou clé invalide." 274 187 275 #: class.subscriber.php:15 2188 #: class.subscriber.php:154 276 189 msgid "Invalid post." 277 190 msgstr "Billet invalide." 278 191 279 #: class.subscriber.php:19 6280 #: class.subscriber.php: 485192 #: class.subscriber.php:198 193 #: class.subscriber.php:500 281 194 msgid "This email address already exists." 282 195 msgstr "Cette adresse email existe déjà." 283 196 284 #: class.subscriber.php:489 197 #: class.subscriber.php:394 198 msgid "Reload the page" 199 msgstr "Recharger la page" 200 201 #: class.subscriber.php:504 285 202 msgid "Link expired, request another email." 286 203 msgstr "Lien périmé, demandez un autre email." … … 293 210 msgid "Blog URL" 294 211 msgstr "URL du blog" 212 213 #: index.php:77 214 #: index.php:596 215 #: public_l10n.php:12 216 msgid "Email address" 217 msgstr "Adresse email" 295 218 296 219 #: index.php:79 … … 321 244 msgstr "Contenu du commentaire" 322 245 246 #: index.php:95 247 #: public_l10n.php:19 248 msgid "New email address" 249 msgstr "Nouvelle adresse email" 250 323 251 #: index.php:97 324 252 msgid "URL to confirm the change of email address" … … 355 283 356 284 #: index.php:313 285 #: public_l10n.php:14 357 286 msgid "Error:" 358 287 msgstr "Erreur:" … … 374 303 #: index.php:330 375 304 #: index.php:487 376 #: index.php:5 57305 #: index.php:563 377 306 msgid "Save configuration" 378 307 msgstr "Enregistrer la configuration" … … 506 435 507 436 #: index.php:512 508 #: index.php:53 2509 #: index.php:5 48437 #: index.php:534 438 #: index.php:554 510 439 msgid "or" 511 440 msgstr "ou" … … 515 444 msgstr "insérez ceci dans le formulaire de commentaire (suggestion : dans le <code><fieldset></code> avant la balise <code></form></code>) :" 516 445 517 #: index.php:52 0446 #: index.php:522 518 447 #, php-format 519 448 msgid "If the <strong>%s</strong> checkbox is not displayed correctly and the blog use Blowup or Blue Silence theme, check this :" 520 449 msgstr "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 :" 521 450 522 #: index.php:52 7451 #: index.php:529 523 452 #, php-format 524 453 msgid "Add a CSS rule to style the <strong>%1$s</strong> checkbox" 525 454 msgstr "Ajouter une règle CSS pour styler la case <strong>%1$s</strong>" 526 455 527 #: index.php:53 3456 #: index.php:535 528 457 msgid "add this CSS rule at the end of the file <strong>style.css</strong>" 529 458 msgstr "ajoutez cette règle CSS à la fin du fichier <strong>style.css</strong>" 530 459 531 #: index.php:54 3460 #: index.php:547 532 461 #, php-format 533 462 msgid "Add a link to the <strong>%s</strong> page between the comments and the trackbacks" 534 463 msgstr "Ajouter un lien vers la page <strong>%s</strong> entre les commentaires et les rétroliens" 535 464 536 #: index.php:549 465 #: index.php:551 466 #, php-format 467 msgid "The code will appear after the %s tag." 468 msgstr "Le code apparaîtra après la balise %s." 469 470 #: index.php:555 537 471 msgid "insert this anywhere on the page (suggestion : just after the <code></form></code> tag) :" 538 472 msgstr "insérez ceci n'importe où dans la page (suggestion : juste après la balise <code></form></code>) :" 539 473 540 #: index.php:56 1474 #: index.php:567 541 475 msgid "Restore" 542 476 msgstr "Restaurer" 543 477 544 #: index.php:56 2545 #: index.php:57 2478 #: index.php:568 479 #: index.php:578 546 480 msgid "Restore default settings" 547 481 msgstr "Restaurer les paramètres par défaut" 548 482 549 #: index.php:5 66483 #: index.php:572 550 484 msgid "Language:" 551 485 msgstr "Langue :" 552 486 553 #: index.php:5 76554 #: index.php:5 78487 #: index.php:582 488 #: index.php:584 555 489 msgid "Help" 556 490 msgstr "" 557 491 558 #: index.php:5 79492 #: index.php:585 559 493 #, php-format 560 494 msgid "%s send notification emails to the subscribers of a post when :" 561 495 msgstr "%s envoie des emails de notification aux abonnés d'un billet quand :" 562 496 563 #: index.php:58 1497 #: index.php:587 564 498 msgid "a comment is posted and published immediatly" 565 499 msgstr "un commentaire est posté et publié immédiatement" 566 500 567 #: index.php:58 2501 #: index.php:588 568 502 msgid "a pending comment is published" 569 503 msgstr "un commentaire en attente est publié à partir de l'interface d'administation" 570 504 571 #: index.php:5 84505 #: index.php:590 572 506 msgid "If this weblog is hosted by free.fr, create a <code>/sessions/</code> directory in the root directory of the website." 573 507 msgstr "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." 574 508 575 #: index.php:5 85509 #: index.php:591 576 510 msgid "To use this plugin, you have to test if the server can send emails :" 577 511 msgstr "Pour utiliser ce plugin, vous devez tester si le serveur peut envoyer des emails :" 578 512 579 #: index.php:5 88513 #: index.php:594 580 514 msgid "Test" 581 515 msgstr "Test" 582 516 583 #: index.php: 595517 #: index.php:601 584 518 #, php-format 585 519 msgid "This will send a email, if you don't receive it, try to <a href=\"%s\">change the way Dotclear send emails</a>." 586 520 msgstr "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>" 587 521 588 #: index.php: 598522 #: index.php:604 589 523 msgid "Try to send an email" 590 524 msgstr "Essayer d'envoyer un email" 591 525 592 #: index.php:60 2526 #: index.php:608 593 527 #, php-format 594 528 msgid "Inspired by <a href=\"%1$s\">%2$s</a>" 595 529 msgstr "Inspiré par <a href=\"%1$s\">%2$s</a>" 596 530 597 #: index.php:6 04531 #: index.php:610 598 532 msgid "Subscribe to comments for WordPress" 599 533 msgstr "Subscribe to comments pour WordPress" 600 534 535 #: public_l10n.php:2 536 msgid "Account" 537 msgstr "Compte" 538 539 #: public_l10n.php:3 540 msgid "Allow emails ?" 541 msgstr "Autoriser les emails ?" 542 543 #: public_l10n.php:4 544 msgid "Allow emails" 545 msgstr "Autoriser les emails" 546 547 #: public_l10n.php:5 548 msgid "Archives" 549 msgstr "" 550 551 #: public_l10n.php:6 552 msgid "Block emails ?" 553 msgstr "Bloquer les emails ?" 554 555 #: public_l10n.php:7 556 msgid "Block emails" 557 msgstr "Bloquer les emails" 558 559 #: public_l10n.php:8 560 msgid "Change email address" 561 msgstr "Changer l'adresse email" 562 563 #: public_l10n.php:9 564 msgid "Click on the button below to resend informations to your email address." 565 msgstr "Cliquez sur le bouton ci-dessous pour renvoyer les informations à votre adresse email." 566 567 #: public_l10n.php:10 568 msgid "Delete all subscriptions and the account" 569 msgstr "Supprimer tous les abonnements et le compte" 570 571 #: public_l10n.php:11 572 msgid "Delete the account ?" 573 msgstr "Supprimer le compte ?" 574 575 #: public_l10n.php:13 576 msgid "Entries" 577 msgstr "Billets" 578 579 #: public_l10n.php:15 580 msgid "Get back to" 581 msgstr "Revenir à" 582 583 #: public_l10n.php:16 584 msgid "Home" 585 msgstr "Accueil" 586 587 #: public_l10n.php:17 588 msgid "invert selection" 589 msgstr "inverser la sélection" 590 591 #: public_l10n.php:18 592 msgid "Logout" 593 msgstr "Déconnexion" 594 595 #: public_l10n.php:20 596 msgid "Remove selected subscriptions" 597 msgstr "Supprimer les abonnements sélectionnés" 598 599 #: public_l10n.php:21 600 msgid "Remove subscriptions" 601 msgstr "Supprimer des abonnements" 602 603 #: public_l10n.php:22 604 msgid "select all" 605 msgstr "tout sélectionner" 606 607 #: public_l10n.php:23 608 msgid "Subscribe to" 609 msgstr "S'abonner à" 610 611 #: public_l10n.php:25 612 msgid "Subscribe to one entry" 613 msgstr "S'abonner à un billet" 614 615 #: public_l10n.php:26 616 msgid "To login, you have to click on the link given in previously sent emails." 617 msgstr "Pour vous connecter, vous devez cliquer sur le lien donné dans les emails envoyés précédemment." 618 619 #: public_l10n.php:27 620 msgid "You'll have 24 hours to click on the link sent to the new email address to confirm the change." 621 msgstr "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 7 7 __("Block emails"); 8 8 __("Change email address"); 9 __("Click on the button below to resend informations to your email address."); 9 10 __("Delete all subscriptions and the account"); 10 11 __("Delete the account ?"); 11 12 __("Email address"); 12 13 __("Entries"); 14 __("Error:"); 13 15 __("Get back to"); 14 16 __("Home"); … … 22 24 __("Subscribe to comments"); 23 25 __("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."); 24 28 ?>
Note: See TracChangeset
for help on using the changeset viewer.