Changeset 906
- Timestamp:
- 03/18/09 18:19:38 (14 years ago)
- Location:
- plugins/newsletter/trunk
- Files:
-
- 3 deleted
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
plugins/newsletter/trunk/_admin.php
r898 r906 15 15 16 16 // intégration au menu d'administration 17 $_menu['Plugins']->addItem(('Newsletter'), 'plugin.php?p='.newsletterPlugin::pname(), newsletterPlugin::urldatas().'/i nc/icon.png',17 $_menu['Plugins']->addItem(('Newsletter'), 'plugin.php?p='.newsletterPlugin::pname(), newsletterPlugin::urldatas().'/icon.png', 18 18 preg_match('/plugin.php\?p='.newsletterPlugin::pname().'(&.*)?$/', $_SERVER['REQUEST_URI']), 19 19 $core->auth->check('usage,admin', $core->blog->id)); -
plugins/newsletter/trunk/_public.php
r898 r906 14 14 15 15 // chargement des librairies 16 require_once dirname(__FILE__).'/inc/class.captcha.php'; 16 17 require_once dirname(__FILE__).'/inc/class.newsletter.plugin.php'; 17 18 require_once dirname(__FILE__).'/inc/class.newsletter.core.php'; 18 19 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 34 class 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 */ 360 class 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> : '. 396 form::field(array('nl_email','nl_email'),15,255). 397 '</li>'. 398 '<li><label for="nl_modesend">'.__('Format').'</label> : '. 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> : '. 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> :<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> :<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 473 class 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 } 22 568 23 569 ?> -
plugins/newsletter/trunk/inc/class.captcha.php
r898 r906 71 71 // création de l'image 72 72 $this->img = imagecreateTRUEcolor($this->width, $this->height); 73 imageantialias($this->img, 1); 73 74 74 if(function_exists('imageantialias')) { 75 75 imageantialias($this->img, 1); -
plugins/newsletter/trunk/locales/fr/main.lang.php
r902 r906 7 7 $GLOBALS['__l10n']['Unable to install Newsletter.']='Impossible d\'installer Newsletter'; 8 8 9 # _public _tpl.php:609 # _public.php:67 10 10 $GLOBALS['__l10n']['Test display template.']='Test d\'affichage du template.'; 11 11 12 # _public _tpl.php:6412 # _public.php:71 13 13 $GLOBALS['__l10n']['About Newsletter ...']='A propos de Newsletter ...'; 14 14 15 # _public _tpl.php:6515 # _public.php:72 16 16 $GLOBALS['__l10n']['About']='A propos'; 17 17 18 # _public _tpl.php:6718 # _public.php:74 19 19 $GLOBALS['__l10n']['Authors']='Auteurs'; 20 20 21 # _public _tpl.php:7322 # _public _tpl.php:8923 # _public _tpl.php:10524 # _public _tpl.php:12125 # _public _tpl.php:13721 # _public.php:80 22 # _public.php:96 23 # _public.php:112 24 # _public.php:128 25 # _public.php:144 26 26 $GLOBALS['__l10n']['Missing informations. ']='Informations manquantes.'; 27 27 28 # _public _tpl.php:7728 # _public.php:84 29 29 $GLOBALS['__l10n']['Your subscription code is invalid.']='Votre code d\'inscription est invalide.'; 30 30 31 # _public _tpl.php:7931 # _public.php:86 32 32 $GLOBALS['__l10n']['Account already confirmed.']='Abonnement déja confirmé.'; 33 33 34 # _public _tpl.php:8234 # _public.php:89 35 35 $GLOBALS['__l10n']['Your subscription is confirmed.']='Votre inscription est confirmée.'; 36 36 37 # _public _tpl.php:8238 # _public _tpl.php:9839 # _public _tpl.php:11440 # _public _tpl.php:13041 # _public _tpl.php:14437 # _public.php:89 38 # _public.php:105 39 # _public.php:121 40 # _public.php:137 41 # _public.php:151 42 42 $GLOBALS['__l10n']['You will soon receive an email.']='Vous allez bientôt recevoir un email.'; 43 43 44 # _public _tpl.php:9345 # _public _tpl.php:10946 # _public _tpl.php:12547 # _public _tpl.php:14144 # _public.php:100 45 # _public.php:116 46 # _public.php:132 47 # _public.php:148 48 48 $GLOBALS['__l10n']['Unable to find you account informations.']='Impossible de trouver les informations de votre compte.'; 49 49 50 # _public _tpl.php:9550 # _public.php:102 51 51 $GLOBALS['__l10n']['Account already enabled.']='Abonnement déja activé.'; 52 52 53 # _public _tpl.php:9853 # _public.php:105 54 54 # inc/class.newsletter.core.php:1486 55 55 $GLOBALS['__l10n']['Your account is enabled.']='Votre abonnement est activé.'; 56 56 57 # _public _tpl.php:11157 # _public.php:118 58 58 $GLOBALS['__l10n']['Account already disabled.']='Abonnement déja désactivé.'; 59 59 60 # _public _tpl.php:11460 # _public.php:121 61 61 # inc/class.newsletter.core.php:1479 62 62 $GLOBALS['__l10n']['Your account is disabled.']='Votre abonnement est désactivé.'; 63 63 64 # _public _tpl.php:12764 # _public.php:134 65 65 $GLOBALS['__l10n']['Account already suspended.']='Abonnement déja suspendu.'; 66 66 67 # _public _tpl.php:13067 # _public.php:137 68 68 # inc/class.newsletter.core.php:1472 69 69 $GLOBALS['__l10n']['Your account is suspended.']='Votre abonnement est suspendu.'; 70 70 71 # _public _tpl.php:14471 # _public.php:151 72 72 $GLOBALS['__l10n']['Your sending format is']='Votre format d\'envoi est'; 73 73 74 # _public _tpl.php:16374 # _public.php:170 75 75 $GLOBALS['__l10n']['Bad captcha code.']='Mauvais code de vérification.'; 76 76 77 # _public _tpl.php:18677 # _public.php:193 78 78 $GLOBALS['__l10n']['Error in formular.']='Erreur dans le formulaire.'; 79 79 80 # _public _tpl.php:21481 # _public _widgets.php:3380 # _public.php:221 81 # _public.php:380 82 82 # _widgets.php:25 83 83 # _widgets.php:27 … … 86 86 $GLOBALS['__l10n']['Newsletter']='Lettre d\'informations'; 87 87 88 # _public _tpl.php:26989 # _public _widgets.php:8290 # _public _widgets.php:8388 # _public.php:276 89 # _public.php:429 90 # _public.php:430 91 91 # inc/class.newsletter.admin.php:462 92 92 $GLOBALS['__l10n']['Captcha']='Code visuel'; 93 93 94 # _public _tpl.php:29995 # _public _widgets.php:6094 # _public.php:306 95 # _public.php:407 96 96 # inc/class.newsletter.admin.php:873 97 97 $GLOBALS['__l10n']['Suspend']='Suspendre'; 98 98 99 # _public _tpl.php:303100 # _public _widgets.php:6199 # _public.php:310 100 # _public.php:408 101 101 $GLOBALS['__l10n']['Resume']='Résumé'; 102 102 103 # _public _tpl.php:325104 # _public _widgets.php:54103 # _public.php:332 104 # _public.php:401 105 105 # inc/class.newsletter.admin.php:341 106 106 # inc/class.newsletter.admin.php:889 … … 108 108 $GLOBALS['__l10n']['text']='texte'; 109 109 110 # _public _tpl.php:332111 # _public _widgets.php:59110 # _public.php:339 111 # _public.php:406 112 112 $GLOBALS['__l10n']['Change format']='Changer le format'; 113 113 114 # _public _widgets.php:36114 # _public.php:383 115 115 # _widgets.php:32 116 116 $GLOBALS['__l10n']['Subscription link']='S\'abonner'; 117 117 118 # _public _widgets.php:48118 # _public.php:395 119 119 $GLOBALS['__l10n']['Email']='Courriel'; 120 120 121 # _public _widgets.php:51121 # _public.php:398 122 122 $GLOBALS['__l10n']['Format']='Format'; 123 123 124 # _public _widgets.php:53124 # _public.php:400 125 125 # inc/class.newsletter.admin.php:342 126 126 # inc/class.newsletter.admin.php:888 … … 128 128 $GLOBALS['__l10n']['html']='html'; 129 129 130 # _public _widgets.php:56131 # _public _widgets.php:66130 # _public.php:403 131 # _public.php:413 132 132 $GLOBALS['__l10n']['Actions']='Actions'; 133 133 134 # _public _widgets.php:63135 # _public _widgets.php:68134 # _public.php:410 135 # _public.php:415 136 136 $GLOBALS['__l10n']['Unsubscribe']='Se désabonner'; 137 137 -
plugins/newsletter/trunk/locales/fr/main.po
r902 r906 10 10 msgstr "Impossible d'installer Newsletter" 11 11 12 #: _public _tpl.php:6012 #: _public.php:67 13 13 msgid "Test display template." 14 14 msgstr "Test d'affichage du template." 15 15 16 #: _public _tpl.php:6416 #: _public.php:71 17 17 msgid "About Newsletter ..." 18 18 msgstr "A propos de Newsletter ..." 19 19 20 #: _public _tpl.php:6520 #: _public.php:72 21 21 msgid "About" 22 22 msgstr "A propos" 23 23 24 #: _public _tpl.php:6724 #: _public.php:74 25 25 msgid "Authors" 26 26 msgstr "Auteurs" 27 27 28 #: _public _tpl.php:7329 #: _public _tpl.php:8930 #: _public _tpl.php:10531 #: _public _tpl.php:12132 #: _public _tpl.php:13728 #: _public.php:80 29 #: _public.php:96 30 #: _public.php:112 31 #: _public.php:128 32 #: _public.php:144 33 33 msgid "Missing informations. " 34 34 msgstr "Informations manquantes." 35 35 36 #: _public _tpl.php:7736 #: _public.php:84 37 37 msgid "Your subscription code is invalid." 38 38 msgstr "Votre code d'inscription est invalide." 39 39 40 #: _public _tpl.php:7940 #: _public.php:86 41 41 msgid "Account already confirmed." 42 42 msgstr "Abonnement déja confirmé." 43 43 44 #: _public _tpl.php:8244 #: _public.php:89 45 45 msgid "Your subscription is confirmed." 46 46 msgstr "Votre inscription est confirmée." 47 47 48 #: _public _tpl.php:8249 #: _public _tpl.php:9850 #: _public _tpl.php:11451 #: _public _tpl.php:13052 #: _public _tpl.php:14448 #: _public.php:89 49 #: _public.php:105 50 #: _public.php:121 51 #: _public.php:137 52 #: _public.php:151 53 53 msgid "You will soon receive an email." 54 54 msgstr "Vous allez bientôt recevoir un email." 55 55 56 #: _public _tpl.php:9357 #: _public _tpl.php:10958 #: _public _tpl.php:12559 #: _public _tpl.php:14156 #: _public.php:100 57 #: _public.php:116 58 #: _public.php:132 59 #: _public.php:148 60 60 msgid "Unable to find you account informations." 61 61 msgstr "Impossible de trouver les informations de votre compte." 62 62 63 #: _public _tpl.php:9563 #: _public.php:102 64 64 msgid "Account already enabled." 65 65 msgstr "Abonnement déja activé." 66 66 67 #: _public _tpl.php:9867 #: _public.php:105 68 68 #: inc/class.newsletter.core.php:1486 69 69 msgid "Your account is enabled." 70 70 msgstr "Votre abonnement est activé." 71 71 72 #: _public _tpl.php:11172 #: _public.php:118 73 73 msgid "Account already disabled." 74 74 msgstr "Abonnement déja désactivé." 75 75 76 #: _public _tpl.php:11476 #: _public.php:121 77 77 #: inc/class.newsletter.core.php:1479 78 78 msgid "Your account is disabled." 79 79 msgstr "Votre abonnement est désactivé." 80 80 81 #: _public _tpl.php:12781 #: _public.php:134 82 82 msgid "Account already suspended." 83 83 msgstr "Abonnement déja suspendu." 84 84 85 #: _public _tpl.php:13085 #: _public.php:137 86 86 #: inc/class.newsletter.core.php:1472 87 87 msgid "Your account is suspended." 88 88 msgstr "Votre abonnement est suspendu." 89 89 90 #: _public _tpl.php:14490 #: _public.php:151 91 91 msgid "Your sending format is" 92 92 msgstr "Votre format d'envoi est" 93 93 94 #: _public _tpl.php:16394 #: _public.php:170 95 95 msgid "Bad captcha code." 96 96 msgstr "Mauvais code de vérification." 97 97 98 #: _public _tpl.php:18698 #: _public.php:193 99 99 msgid "Error in formular." 100 100 msgstr "Erreur dans le formulaire." 101 101 102 #: _public _tpl.php:214103 #: _public _widgets.php:33102 #: _public.php:221 103 #: _public.php:380 104 104 #: _widgets.php:25 105 105 #: _widgets.php:27 … … 109 109 msgstr "Lettre d'informations" 110 110 111 #: _public _tpl.php:269112 #: _public _widgets.php:82113 #: _public _widgets.php:83111 #: _public.php:276 112 #: _public.php:429 113 #: _public.php:430 114 114 #: inc/class.newsletter.admin.php:462 115 115 msgid "Captcha" 116 116 msgstr "Code visuel" 117 117 118 #: _public _tpl.php:299119 #: _public _widgets.php:60118 #: _public.php:306 119 #: _public.php:407 120 120 #: inc/class.newsletter.admin.php:873 121 121 msgid "Suspend" 122 122 msgstr "Suspendre" 123 123 124 #: _public _tpl.php:303125 #: _public _widgets.php:61124 #: _public.php:310 125 #: _public.php:408 126 126 msgid "Resume" 127 127 msgstr "Résumé" 128 128 129 #: _public _tpl.php:325130 #: _public _widgets.php:54129 #: _public.php:332 130 #: _public.php:401 131 131 #: inc/class.newsletter.admin.php:341 132 132 #: inc/class.newsletter.admin.php:889 … … 135 135 msgstr "texte" 136 136 137 #: _public _tpl.php:332138 #: _public _widgets.php:59137 #: _public.php:339 138 #: _public.php:406 139 139 msgid "Change format" 140 140 msgstr "Changer le format" 141 141 142 #: _public _widgets.php:36142 #: _public.php:383 143 143 #: _widgets.php:32 144 144 msgid "Subscription link" 145 145 msgstr "S'abonner" 146 146 147 #: _public _widgets.php:48147 #: _public.php:395 148 148 msgid "Email" 149 149 msgstr "Courriel" 150 150 151 #: _public _widgets.php:51151 #: _public.php:398 152 152 msgid "Format" 153 153 msgstr "Format" 154 154 155 #: _public _widgets.php:53155 #: _public.php:400 156 156 #: inc/class.newsletter.admin.php:342 157 157 #: inc/class.newsletter.admin.php:888 … … 160 160 msgstr "html" 161 161 162 #: _public _widgets.php:56163 #: _public _widgets.php:66162 #: _public.php:403 163 #: _public.php:413 164 164 msgid "Actions" 165 165 msgstr "Actions" 166 166 167 #: _public _widgets.php:63168 #: _public _widgets.php:68167 #: _public.php:410 168 #: _public.php:415 169 169 msgid "Unsubscribe" 170 170 msgstr "Se désabonner"
Note: See TracChangeset
for help on using the changeset viewer.