Changeset 154447
- Timestamp:
- 09/13/2009 06:20:08 PM (17 years ago)
- Location:
- comment-contest/trunk
- Files:
-
- 11 edited
-
comment-contest.php (modified) (19 diffs)
-
languages/commentContest-en_US.mo (modified) (previous)
-
languages/commentContest-en_US.po (modified) (2 diffs)
-
languages/commentContest-en_US.pot (modified) (2 diffs)
-
languages/commentContest-fr_FR.mo (modified) (previous)
-
languages/commentContest-fr_FR.po (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
screenshot-1.jpg (modified) (previous)
-
screenshot-2.jpg (modified) (previous)
-
screenshot-3.jpg (modified) (previous)
-
screenshot-4.jpg (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
comment-contest/trunk/comment-contest.php
r152584 r154447 2 2 /* 3 3 Plugin Name: Comment Contest 4 Plugin URI: http://www.nozzhy.com/ un-plugin-pour-gerer-un-concours-par-commentaires-sur-votre-blog/4 Plugin URI: http://www.nozzhy.com/plugins/comment-contest-description/ 5 5 Description: If you create a contest on your website, you can draw all comments in a specific post 6 6 Author: Thomas "Zhykos" Cicognani 7 Version: 1. 1.1b7 Version: 1.3 8 8 Author URI: http://www.nozzhy.com 9 */ 10 11 /* Copyright 2009 Comment Contest plugin for Wordpress by Thomas "Zhykos" Cicognani (email : zhykos@nozzhy.com) 12 13 This program is free software; you can redistribute it and/or modify 14 it under the terms of the GNU General Public License as published by 15 the Free Software Foundation; either version 2 of the License, or 16 (at your option) any later version. 17 18 This program is distributed in the hope that it will be useful, 19 but WITHOUT ANY WARRANTY; without even the implied warranty of 20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 GNU General Public License for more details. 22 23 You should have received a copy of the GNU General Public License 24 along with this program; if not, write to the Free Software 25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 9 26 */ 10 27 … … 15 32 */ 16 33 class CommentContest { 17 var $domain = ''; 18 var $version = '1.1.1b'; // Current version 19 var $option_ns = ''; 20 var $options = array (); 21 var $localizationName = "commentContest"; 34 /*private*/var $domain = ''; 35 /*private*/var $version = '1.3'; // Current version 36 /*private*/var $option_ns = ''; 37 /*private*/var $options = array (); 38 /*private*/var $localizationName = "commentContest"; 39 /*private*/var $pluginDir = ''; 22 40 23 41 /** … … 46 64 $this->option_ns = get_class ( $this ); 47 65 66 $this->pluginDir = WP_CONTENT_URL . '/plugins/comment-contest'; 67 48 68 // Get options 49 69 $this->options = get_option ( $this->option_ns ); … … 124 144 * First step<br /> 125 145 * Configure the contest's settings 126 */ 127 private function configure() { 146 * @param $errorCode Error code (it's the message to display). <i>Null</i> means thers's no error 147 * @param $previousContestType Contest Type 148 * @param $numWinners Winners' number 149 * @param $numParticipation Maximum participation's number 150 * @param $numPrizes Prizes' number 151 * @param $ranks Allowed ranks 152 * @param $email Email to send (<i>null</i> means no email to send) 153 */ 154 function configure($errorCode = null, $previousContestType = null, $numWinners = null, $numParticipation = null, $numPrizes = null, $ranks = null, $email = null) { 128 155 $configureContest = __("Configure the contest", $this->localizationName); 129 156 $winnersNumber = __("Winners' number", $this->localizationName); … … 137 164 $user = __("Normal user", $this->localizationName); 138 165 $sendmail = __("Automaticaly send a mail to winners", $this->localizationName); 139 $mailcontent = __("Email's content", $this->localizationName); 166 $mailcontent = __("Email's content (HTML possible)", $this->localizationName); 167 $contestType = __("Contest type", $this->localizationName); 140 168 $ok = __("Ok!", $this->localizationName); 141 142 echo "<h1>Comment Contest - $configureContest</h1> 143 <form action='plugins.php?page=comment-contest.php' method='post'> 144 $winnersNumber: <input type='text' name='winners' value='2' /><br /> 145 $participationsNumber: <input type='text' name='number' value='1' /><br /> 169 $normalContest = __("Normal contest (random winners)", $this->localizationName); 170 $speedContest = __("Speed contest (first comments win)", $this->localizationName); 171 $prizeContest = __("Number of different prizes", $this->localizationName); 172 173 echo "<h1>Comment Contest - $configureContest</h1>"; 174 175 if($errorCode != null) { 176 echo "<div id='message' class='error'><p>$errorCode</p></div>"; 177 } 178 179 $normalType = " checked='checked'"; 180 $speedType = ""; 181 182 if($previousContestType != null) { 183 if($previousContestType == "speed") { 184 $normalType = ""; 185 $speedType = " checked='checked'"; 186 } 187 } 188 189 $winnersValue = ($numWinners == null ? 2 : $numWinners); 190 $participationsValue = ($numParticipation == null ? 1 : $numParticipation); 191 $prizeValue = ($numPrizes == null ? 1 : $numPrizes); 192 $userChecked = " checked='checked'"; 193 194 if($ranks != null) { 195 if(in_array(10, $ranks)) { 196 $adminChecked = " checked='checked'"; 197 } else { 198 $adminChecked = ""; 199 } 200 201 if(in_array(7, $ranks)) { 202 $editorChecked = " checked='checked'"; 203 } else { 204 $editorChecked = ""; 205 } 206 207 if(in_array(2, $ranks)) { 208 $authorChecked = " checked='checked'"; 209 } else { 210 $authorChecked = ""; 211 } 212 213 if(in_array(1, $ranks)) { 214 $contributorChecked = " checked='checked'"; 215 } else { 216 $contributorChecked = ""; 217 } 218 219 if(in_array(0, $ranks)) { 220 $subscriberChecked = " checked='checked'"; 221 } else { 222 $subscriberChecked = ""; 223 } 224 225 if(!in_array(-1, $ranks)) { 226 $userChecked = ""; 227 } 228 } 229 230 if($email != null) { 231 $emailChecked = " checked='checked'"; 232 $mailcontent = stripslashes(html_entity_decode($email)); 233 } else { 234 $emailChecked = ""; 235 } 236 237 echo "<form action='plugins.php?page=comment-contest.php' method='post'> 238 <table style='margin-left: -2px'> 239 <tr style='vertical-align: top'> 240 <td>$contestType:</td> 241 <td> 242 <input type='radio' name='contestType' value='normal'$normalType /> $normalContest<br /> 243 <input type='radio' name='contestType' value='speed'$speedType /> $speedContest 244 </td> 245 </tr> 246 </table><br /> 247 $winnersNumber: <input type='text' name='numWinners' value='$winnersValue' /><br /> 248 $participationsNumber: <input type='text' name='numParticipation' value='$participationsValue' /><br /> 249 $prizeContest: <input type='text' name='numPrizes' value='$prizeValue' /><br /> 146 250 <table style='margin-left: -2px'> 147 251 <tr style='vertical-align: top'> 148 252 <td>$allowedRanks:</td> 149 253 <td> 150 <input type='checkbox' name='rank[]' value='10' /> $administrator<br />151 <input type='checkbox' name='rank[]' value='7' /> $editor<br />152 <input type='checkbox' name='rank[]' value='2' /> $author<br />153 <input type='checkbox' name='rank[]' value='1' /> $contributor<br />154 <input type='checkbox' name='rank[]' value='0' /> $subscriber<br />155 <input type='checkbox' name='rank[]' value='-1' checked='checked'/> $user254 <input type='checkbox' name='rank[]' value='10'$adminChecked /> $administrator<br /> 255 <input type='checkbox' name='rank[]' value='7'$editorChecked /> $editor<br /> 256 <input type='checkbox' name='rank[]' value='2'$authorChecked /> $author<br /> 257 <input type='checkbox' name='rank[]' value='1'$contributorChecked /> $contributor<br /> 258 <input type='checkbox' name='rank[]' value='0'$subscriberChecked /> $subscriber<br /> 259 <input type='checkbox' name='rank[]' value='-1'$userChecked /> $user 156 260 </td> 157 261 </tr> 158 262 </table> 159 263 <br /> 160 <input type='checkbox' name='sendmail' /> $sendmail<br />264 <input type='checkbox' name='sendmail'$emailChecked /> $sendmail<br /> 161 265 <textarea name='mailcontent' rols='10' cols='40'>$mailcontent</textarea> 162 266 <br /><br /><input type='submit' name='features' value='$ok' /></form>"; … … 170 274 * @param $numWinners The winners' number 171 275 * @param $numParticipation The participation's number for each person 172 */ 173 private function choosePost($currentPage, $ranks, $numWinners, $numParticipation, $email) { 276 * @param $email Email's content 277 * @param $type The contest's type 278 * @param $prizes Prizes' number 279 */ 280 /*private */function choosePost($currentPage, $ranks, $numWinners, $numParticipation, $email, $type, $prizes) { 174 281 global $wpdb; 175 282 $maxArticles = 20; … … 180 287 181 288 echo "<h1>Comment Contest - $choosePost</h1><form id='postForm' action='plugins.php?page=comment-contest.php' method='post'>"; 182 $query = "SELECT * FROM $wpdb->posts WHERE post_status = 'publish' AND post_type='post' ORDER BY post_date DESC"; 289 290 $query = "SELECT * FROM $wpdb->posts WHERE (post_status = 'publish' OR post_status = 'private') AND post_type='post' ORDER BY post_date DESC"; 183 291 $posts = $wpdb->get_results ( $query ); 184 292 if ($posts) { … … 193 301 <input type='hidden' name='numParticipation' value='$numParticipation' /> 194 302 <input type='hidden' name='email' value='$email' /> 195 <input type='hidden' name='postnumber' id='postnumber' value='' /></form>"; 303 <input type='hidden' name='contestType' value='$type' /> 304 <input type='hidden' name='numPrizes' value='$prizes' /> 305 <input type='hidden' name='postnumber' id='postnumber' value='' />"; 306 196 307 if (count ( $posts ) > $maxArticles) { 197 echo "<br /><a href='$url/wp-admin/plugins.php?page=comment-contest.php&pagepost=" . ($currentPage + $maxArticles) . "'>$more</a>"; 198 } 308 echo "<br /><input type='hidden' name='pagepost' value='" . ($currentPage + $maxArticles) . "' /> 309 <a href='#' onclick='getElementById(\"postnumber\").value=-1; getElementById(\"postForm\").submit()'>$more</a>"; 310 } 311 312 echo "</form>"; 199 313 } else { 200 314 $this->error ( $noPost, array ("home") ); … … 209 323 * @param $numWinners The winners' number 210 324 * @param $numParticipation The participation's number for each person 211 */ 212 private function chooseComments($idPost, $ranks, $numWinners, $numParticipation, $email) { 325 * @param $email Email's content 326 * @param $type The contest's type 327 * @param $prizes Prizes' number 328 * @param $errorMessage Error message 329 * @param $previousComments Comments previously checked 330 */ 331 /*private */function chooseComments($idPost, $ranks, $numWinners, $numParticipation, $email, $type, $prizes, $errorMessage = null, $previousComments = null) { 213 332 global $wpdb; 214 333 215 334 $chooseComments = __("Choose comments to include in the contest", $this->localizationName); 216 $ launchContest = __("Launch the contest", $this->localizationName);335 $ok = __("Ok!", $this->localizationName); 217 336 $noComment = __("No comment found!", $this->localizationName); 218 337 219 338 echo "<h1>Comment Contest - $chooseComments</h1>"; 339 340 if($errorMessage != null) { 341 echo "<div id='message' class='error'><p>$errorMessage</p></div>"; 342 } 220 343 221 344 $filter = null; … … 251 374 $author = ""; 252 375 $count = 0; 376 253 377 foreach ( $comments as $comment ) { 254 378 $checked = " checked='checked'"; 255 379 $from = stripslashes ( $comment->comment_author ); 380 256 381 if ($author != $from) { 257 382 $count = 0; … … 263 388 } 264 389 } 390 265 391 $comment_content = stripslashes ( $comment->comment_content ); 266 392 $id = stripslashes ( $comment->comment_ID ); 393 394 if($previousComments != null) { 395 if(in_array($id, $previousComments)) { 396 $checked = " checked='checked'"; 397 } else { 398 $checked = ""; 399 } 400 } 267 401 268 402 echo "<input type='checkbox' name='comments[]' value='$id'$checked /> <strong>$from : </strong>" . substr ( strip_tags ( $comment_content ), 0, 100 ) . "<br /><br />"; … … 273 407 <input type='hidden' name='numParticipation' value='$numParticipation' /> 274 408 <input type='hidden' name='email' value='$email' /> 275 <input type='submit' value='$launchContest' /></form>"; 409 <input type='hidden' name='contestType' value='$type' /> 410 <input type='hidden' name='numPrizes' value='$prizes' /> 411 <input type='submit' value='$ok' /></form>"; 276 412 } else { 277 413 $this->error ( $noComment, array ("home") ); … … 280 416 281 417 /** 282 * Laststep<br />283 * Display winners284 * @param $comments <array[<integer>=><integer>]>The complete participants' list (created with all checkboxes)418 * Forth step<br /> 419 * Manage the contest's prizes 420 * @param $comments The complete participants' list (created with all checkboxes) 285 421 * @param $numWinners The winners' number 286 422 * @param $numParticipation The participation's number for each person 287 */ 288 private function displayWinners($comments, $numWinners, $numParticipation, $email) { 423 * @param $email Email's content 424 * @param $type The contest's type 425 * @param $prizes Prizes' number 426 * @param $error Error code 427 * @param $previousNames Prizes' names previously typed 428 * @param $previousTo Prizes' places previously typed 429 */ 430 function choosePrizes($comments, $numWinners, $numParticipation, $email, $type, $prizes, $error = 0, $previousNames = null, $previousTo = null) { 431 $choosePrizes = __("Prizes' choice", $this->localizationName); 432 $launchContest = __("Launch the contest", $this->localizationName); 433 $prizeName = __("Prize name:", $this->localizationName); 434 $start = __("From", $this->localizationName); 435 $end = __("to", $this->localizationName); 436 437 echo "<h1>Comment Contest - $choosePrizes</h1>"; 438 439 if($error == 1) { 440 $errorText = __("Please give all prizes!", $this->localizationName); 441 echo "<div id='message' class='error'><p>$errorText</p></div>"; 442 } elseif($error == 2) { 443 $errorText = __("Please check all places for each prize", $this->localizationName); 444 echo "<div id='message' class='error'><p>$errorText</p></div>"; 445 } 446 447 echo "<script type='text/javascript' src='$this->pluginDir/comment-contest.js'></script> 448 <form action='plugins.php?page=comment-contest.php' method='post'>"; 449 450 if($prizes == 1) { 451 echo "$prizeName <input type='text' name='prizeName' /><br />"; 452 } else { 453 $previousNames = explode(",", $previousNames); 454 $previousTo = explode(",", $previousTo); 455 456 for($i = 0; $i < $prizes; $i++) { 457 if($i == 0) { 458 $beginNumber = 1; 459 } else { 460 if($previousTo != null) { 461 $beginNumber = $previousTo[$i-1] + 1; 462 } else { 463 $beginNumber = null; 464 } 465 } 466 467 if($i == $prizes - 1) { 468 $endField = "readonly='readonly' value='$numWinners'"; 469 } else { 470 $endField = "onkeyup='changePlace(this.value, " . ($i + 1) . ")'"; 471 472 if($previousTo != null) { 473 $endField .= " value='$previousTo[$i]'"; 474 } 475 } 476 477 if($previousNames != null) { 478 $n = " value='" . stripslashes($previousNames[$i]) . "'"; 479 } else { 480 $n = null; 481 } 482 483 echo "$prizeName <input type='text' name='prizeName[]'$n /> $start <input type='text' name='from[]' readonly='readonly' value='$beginNumber' id='to$i' /> $end <input type='text' name='to[]' $endField /><br />"; 484 } 485 } 486 487 echo "<input type='hidden' name='comments' value='$comments' /> 488 <input type='hidden' name='numWinners' value='$numWinners' /> 489 <input type='hidden' name='numParticipation' value='$numParticipation' /> 490 <input type='hidden' name='email' value='$email' /> 491 <input type='hidden' name='contestType' value='$type' /> 492 <input type='hidden' name='numPrizes' value='$prizes' /><br /> 493 <input type='submit' name='prizesSubmit' value='$launchContest' /></form>"; 494 } 495 496 /** 497 * Fifth step<br /> 498 * Display winners 499 * @param $comments The complete participants' list (created with all checkboxes) 500 * @param $numWinners The winners' number 501 * @param $numParticipation The participation's number for each person 502 * @param $email Email's content 503 * @param $type The contest's type 504 * @param $prizes Prizes' names 505 * @param $places Prizes' order 506 */ 507 /*private */function displayWinners($comments, $numWinners, $numParticipation, $email, $type, $prizes, $places) { 289 508 global $wpdb; 290 509 … … 303 522 304 523 $tab = null; 524 $comments = explode(",", $comments); 305 525 foreach ( $comments as $comment => $value ) { 306 526 $tab [] = $value; 307 527 } 308 528 309 shuffle ( $tab ); 529 if($type == "normal") { 530 shuffle ( $tab ); 531 } 532 310 533 echo "<h1>Comment Contest - $winners</h1>"; 311 534 $stop = false; 312 $i = 1; 535 $i = 1; $k = 1; 313 536 $author = ""; 537 $prizeName = __("Prize won:", $this->localizationName); 538 539 if(!is_array($prizes)) { 540 echo "<h2>$prizeName " . stripslashes($prizes) . "</h2>"; 541 } else { 542 echo "<h2>$prizeName " . stripslashes($prizes[0]) . "</h2>"; 543 } 544 314 545 for($j = 0; $j < count ( $tab ) && ! $stop; $j ++) { 315 546 $query = "SELECT * FROM $wpdb->comments WHERE comment_approved = '1' and comment_id='$tab[$j]'"; … … 321 552 $i ++; 322 553 $author = $from; 554 555 if(is_array($prizes) && $j + 1 == $places[$k]) { 556 echo "<h2>$prizeName " . stripslashes($prizes[$k++]) . "</h2>"; 557 } 558 323 559 echo "<strong>$commentWord</strong> $from <strong>$say</strong> $c->comment_content <br /><br />"; 324 560 if($email != null) { 325 @wp_mail($c->comment_author_email, $winSubject, base64_decode($email), $message_headers);561 @wp_mail($c->comment_author_email, $winSubject, html_entity_decode($email), $message_headers); 326 562 } 327 563 } … … 331 567 } 332 568 } 569 570 $allParticipants = __("List of all participants:", $this->localizationName); 571 echo "<br /><br />$allParticipants "; 572 $tabTemp = null; 573 for($j = 0; $j < count ( $tab ); $j ++) { 574 $query = "SELECT comment_author FROM $wpdb->comments WHERE comment_approved = '1' and comment_id='$tab[$j]'"; 575 $tabTemp[] = $wpdb->get_var ( $query ); 576 } 577 array_unique($tabTemp); 578 sort($tabTemp); 579 echo implode(", ", $tabTemp); 333 580 } 334 581 … … 336 583 * Display an error message 337 584 * @param $message The error message 338 * @param $args The message's parameter. <br />$args[0] must be "post"339 */ 340 privatefunction error($message, $args) {585 * @param $args The message's parameter. <code>$args[0]</code> must be <i>"post"</i> or <i>"home"</i> 586 */ 587 /*private */function error($message, $args) { 341 588 $url = get_bloginfo ( 'url' ); 342 589 if ($args [0] == 'post') { … … 349 596 <input type='hidden' name='numWinners' value='$args[3]' /> 350 597 <input type='hidden' name='numParticipation' value='$args[4]' /> 351 <input type='hidden' name=' numParticipation' value='$args[5]' />598 <input type='hidden' name='email' value='$args[5]' /> 352 599 <input type='submit' value='$chooseComment' /></form>" ); 353 600 } elseif ($args [0] == 'home') { … … 359 606 360 607 /** 608 * Check fields' format in the prizes' choice 609 * @param $names The prizes' names 610 * @param $to The places to go 611 * @param $from The places to start from 612 * @return The checks' result : 0 for ok, 1 for names error, 2 for "to" error 613 */ 614 /*private */function checkPrizes(&$names, $to, $from) { 615 // Check names format 616 $test = false; 617 for($i = 0; $i < count($names); $i++) { 618 if($names[$i] == "") { 619 $test = true; 620 } 621 $names[$i] = strip_tags($names[$i]); 622 } 623 624 if($test) { 625 return 1; 626 } else { 627 //Check "To" format 628 $test = false; 629 for($i = 0; $i < count($to) && !$test; $i++) { 630 if(($to[$i] == "") || 631 ($i < count($to) - 1 && $to[$i] > $to[$i + 1]) || 632 ($from[$i] > $to[$i])) { 633 $test = true; 634 } 635 } 636 637 if($test) { 638 return 2; 639 } else { 640 return 0; // Everything is fine 641 } 642 } 643 } 644 645 /** 361 646 * The page to display in the administration menu 362 647 */ 363 648 function AdminHelpPage() { 364 if (isset ( $_POST ['postnumber'] )) { // Step 3 : Choose comments 365 $this->chooseComments ( $_POST ['postnumber'], $_POST ['rank'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'] ); 649 if(isset($_POST['prizesSubmit'])) { // Step 5 : Display winners 650 651 $res = $this->checkPrizes($_POST['prizeName'], $_POST['to'], $_POST['from']); 652 653 if($res == 0) { 654 $this->displayWinners ( $_POST ['comments'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'], $_POST['contestType'], $_POST['prizeName'], $_POST['from'] ); 655 } else { 656 $this->choosePrizes($_POST ['comments'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'], $_POST['contestType'], $_POST['numPrizes'], $res, implode(",", $_POST['prizeName']), implode(",", $_POST['to'])); 657 } 366 658 367 659 // --------------------------------------------------------------------------------- 368 369 } elseif (isset ( $_POST ['post'] )) { // Step 4 : Display winners 660 661 } 662 else if (isset ( $_POST ['postnumber'] ) && $_POST ['postnumber'] != -1) { // Step 3 : Choose comments 663 $this->chooseComments ( $_POST ['postnumber'], $_POST ['rank'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'], $_POST['contestType'], $_POST['numPrizes'] ); 664 665 // --------------------------------------------------------------------------------- 666 667 } elseif (isset ( $_POST ['post'] ) && $_POST ['postnumber'] != -1) { // Step 4 : Choose prizes 370 668 $comments = $_POST ['comments']; 371 669 372 670 if ($comments == null || count ( $comments ) == 0) { 373 671 $selectOneWinner = __("Please select one winner at least!", $this->localizationName); 374 $this-> error ( $selectOneWinner, array ("post", $_POST ['post'], $_POST ['rank'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'] ));375 } elseif (count ( $comments ) < =$_POST ['numWinners']) {672 $this->chooseComments ( $_POST ['post'], $_POST ['rank'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'], $_POST['contestType'], $_POST['numPrizes'], $selectOneWinner, null ); 673 } elseif (count ( $comments ) < $_POST ['numWinners']) { 376 674 $selectMoreWinner = __("Please select more participants than winners!", $this->localizationName); 377 $this->error ( $selectMoreWinner, array ("post", $_POST ['post'], $_POST ['rank'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'] ) ); 378 } else { 379 $this->displayWinners ( $comments, $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'] ); 380 } 381 675 $this->chooseComments ( $_POST ['post'], $_POST ['rank'], $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'], $_POST['contestType'], $_POST['numPrizes'], $selectMoreWinner, $comments ); 676 } else { 677 $this->choosePrizes(implode(",", $comments), $_POST ['numWinners'], $_POST ['numParticipation'], $_POST ['email'], $_POST['contestType'], $_POST['numPrizes']); 678 } 382 679 // --------------------------------------------------------------------------------- 383 680 384 } elseif (isset ( $_POST ['features'] ) || isset ( $_GET ['pagepost'] )) { // Step 2 : Choose an article 385 // Change the page if needed 386 $page = (isset ( $_GET ['pagepost'] ) ? intval ( $_GET ['pagepost'] ) : 0); 681 } elseif (isset ( $_POST ['features'] ) || isset($_POST ['pagepost'])) { // Step 2 : Choose an article 682 $page = (isset ( $_POST ['pagepost'] ) ? intval ( $_POST ['pagepost'] ) : 0); 387 683 $page = ($page > 0 ? $page : 0); 388 684 389 685 // Check list 390 $numWinners = intval ( $_POST ['winners'] ); 391 $numParticipation = intval ( $_POST ['number'] ); 686 $numWinners = intval ( $_POST ['numWinners'] ); 687 $numParticipation = intval ( $_POST ['numParticipation'] ); 688 $numPrizes = intval ( $_POST ['numPrizes'] ); 689 392 690 if(isset($_POST['sendmail'])) { 393 $email = base64_encode($_POST['sendmail']);691 $email = stripslashes(htmlentities($_POST['mailcontent'])); 394 692 } else { 395 693 $email = null; 396 694 } 397 695 398 $emailContentTest = __("Email's content ", $this->localizationName);399 696 $emailContentTest = __("Email's content (HTML possible)", $this->localizationName); 697 400 698 if (count ( $_POST ['rank'] ) == 0) { 401 699 $selectOneRank = __("Please select one rank at least!", $this->localizationName); 402 $this-> error ( $selectOneRank, array ("home"));700 $this->configure ($selectOneRank, $_POST['contestType'], $numWinners, $numParticipation, $numPrizes, null, $email); 403 701 } elseif ($numWinners == null || $numWinners <= 0) { 404 702 $winnerFormat = __("Wrong winners format!", $this->localizationName); 405 $this-> error ( $winnerFormat, array ("home"));703 $this->configure ($winnerFormat, $_POST['contestType'], $numWinners, $numParticipation, $numPrizes, $_POST ['rank'], $email); 406 704 } elseif ($numParticipation == null || $numParticipation <= 0) { 407 705 $participationsFormat = __("Wrong participations format!", $this->localizationName); 408 $this-> error ( $participationsFormat, array ("home"));706 $this->configure ($participationsFormat, $_POST['contestType'], $numWinners, $numParticipation, $numPrizes, $_POST ['rank'], $email); 409 707 } elseif($email == $emailContentTest) { 410 708 $emailContentError = __("Please change the email's content!", $this->localizationName); 411 $this->error ( $emailContentError, array ("home") ); 412 } else { 413 $this->choosePost ( $page, implode ( ",", $_POST ['rank'] ), $numWinners, $numParticipation, $email ); 709 $this->configure ($emailContentError, $_POST['contestType'], $numWinners, $numParticipation, $numPrizes, $_POST ['rank'], $email); 710 } elseif ($numPrizes == null || $numPrizes <= 0 || $numPrizes > $numWinners) { 711 $prizesFormat = __("Wrong prizes number format! Or choose more winners than prizes!", $this->localizationName); 712 $this->configure ($prizesFormat, $_POST['contestType'], $numWinners, $numParticipation, $numPrizes, $_POST ['rank'], $email); 713 } else { 714 if(is_array($_POST ['rank'])) { 715 $tab = implode ( ",", $_POST ['rank'] ); 716 } else { 717 $tab = $_POST ['rank']; 718 } 719 $this->choosePost ( $page, $tab, $numWinners, $numParticipation, $email, $_POST['contestType'], $numPrizes ); 414 720 } 415 721 -
comment-contest/trunk/languages/commentContest-en_US.po
r152584 r154447 3 3 "Project-Id-Version: Comment Contest\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2009-09- 06 21:51+0100\n"5 "POT-Creation-Date: 2009-09-13 20:03+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Zhykos <zhykos@nozzhy.com>\n" … … 18 18 "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress\\wp-content\\plugins\\comment-contest\n" 19 19 20 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 7520 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:95 21 21 msgid "Comment Contest" 22 22 msgstr "Comment Contest" 23 23 24 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 2824 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:155 25 25 msgid "Configure the contest" 26 26 msgstr "Configure the contest" 27 27 28 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 2928 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:156 29 29 msgid "Winners' number" 30 30 msgstr "Winners' number" 31 31 32 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3032 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:157 33 33 msgid "Maximum participations' number per person" 34 34 msgstr "Maximum participations' number per person" 35 35 36 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3136 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:158 37 37 msgid "Allowed ranks to participate" 38 38 msgstr "Allowed ranks to participate" 39 39 40 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3240 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:159 41 41 msgid "Administrator" 42 42 msgstr "Administrator" 43 43 44 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3344 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:160 45 45 msgid "Editor" 46 46 msgstr "Editor" 47 47 48 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3448 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:161 49 49 msgid "Author" 50 50 msgstr "Author" 51 51 52 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3552 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:162 53 53 msgid "Contributor" 54 54 msgstr "Contributor" 55 55 56 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3656 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:163 57 57 msgid "Subscriber" 58 58 msgstr "Subscriber" 59 59 60 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3760 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:164 61 61 msgid "Normal user" 62 62 msgstr "Normal user" 63 63 64 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3864 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:165 65 65 msgid "Automaticaly send a mail to winners" 66 66 msgstr "Automaticaly send a mail to winners" 67 67 68 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:139 69 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:398 70 msgid "Email's content" 71 msgstr "Email's content" 72 73 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:140 68 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:166 69 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:696 70 msgid "Email's content (HTML possible)" 71 msgstr "Email's content (HTML possible)" 72 73 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:167 74 msgid "Contest type" 75 msgstr "Contest type" 76 77 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:168 78 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:432 74 79 msgid "Ok!" 75 80 msgstr "Ok!" 76 81 77 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:177 82 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:169 83 msgid "Normal contest (random winners)" 84 msgstr "Normal contest (random winners)" 85 86 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:170 87 msgid "Speed contest (first comments win)" 88 msgstr "Speed contest (first comments win)" 89 90 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:171 91 msgid "Number of different prizes" 92 msgstr "Number of different prizes" 93 94 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:284 78 95 msgid "Choose a post" 79 96 msgstr "Choose a post" 80 97 81 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 17898 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:285 82 99 msgid "More..." 83 100 msgstr "More..." 84 101 85 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 179102 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:286 86 103 msgid "No post found!" 87 104 msgstr "No post found!" 88 105 89 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 215106 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:334 90 107 msgid "Choose comments to include in the contest" 91 108 msgstr "Choose comments to include in the contest" 92 109 93 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 216110 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:335 94 111 msgid "Launch the contest" 95 112 msgstr "Launch the contest" 96 113 97 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 217114 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:336 98 115 msgid "No comment found!" 99 116 msgstr "No comment found!" 100 117 101 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:291 118 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:431 119 msgid "Prizes' choice" 120 msgstr "Prizes' choice" 121 122 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:433 123 msgid "Prize name:" 124 msgstr "Prize name:" 125 126 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:434 127 msgid "From" 128 msgstr "From" 129 130 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:435 131 msgid "to" 132 msgstr "to" 133 134 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:440 135 msgid "Please give all prizes!" 136 msgstr "Please give all prizes!" 137 138 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:443 139 msgid "Please check all places for each prize" 140 msgstr "Please check all places for each prize" 141 142 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:510 102 143 msgid "Winners" 103 144 msgstr "Winners" 104 145 105 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 292146 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:511 106 147 msgid "Comment" 107 148 msgstr "Comment:" 108 149 109 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 293150 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:512 110 151 msgid "says" 111 152 msgstr "says" 112 153 113 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 294154 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:513 114 155 msgid "You win a contest" 115 156 msgstr "You win a contest" 116 157 117 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:343 158 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:537 159 msgid "Prize won:" 160 msgstr "Prize won:" 161 162 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:570 163 msgid "List of all participants:" 164 msgstr "List of all participants: " 165 166 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:590 118 167 msgid "Choose comments" 119 168 msgstr "Choose comments" 120 169 121 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 354170 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:601 122 171 msgid "Back" 123 172 msgstr "Back" 124 173 125 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 373174 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:671 126 175 msgid "Please select one winner at least!" 127 176 msgstr "Please select one winner at least!" 128 177 129 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 376178 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:674 130 179 msgid "Please select more participants than winners!" 131 180 msgstr "Please select more participants than winners!" 132 181 133 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 401182 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:699 134 183 msgid "Please select one rank at least!" 135 184 msgstr "Please select one rank at least!" 136 185 137 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 404186 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:702 138 187 msgid "Wrong winners format!" 139 188 msgstr "Wrong winners format!" 140 189 141 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 407190 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:705 142 191 msgid "Wrong participations format!" 143 192 msgstr "Wrong participations format!" 144 193 145 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 410194 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:708 146 195 msgid "Please change the email's content!" 147 196 msgstr "Please change the email's content!" 148 197 198 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:711 199 msgid "Wrong prizes number format! Or choose more winners than prizes!" 200 msgstr "Wrong prizes number format! Or choose more winners than prizes!" 201 -
comment-contest/trunk/languages/commentContest-en_US.pot
r152584 r154447 3 3 "Project-Id-Version: Comment Contest\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2009-09- 06 21:51+0100\n"5 "POT-Creation-Date: 2009-09-13 20:03+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Zhykos <zhykos@nozzhy.com>\n" … … 18 18 "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress\\wp-content\\plugins\\comment-contest\n" 19 19 20 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 7520 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:95 21 21 msgid "Comment Contest" 22 22 msgstr "Comment Contest" 23 23 24 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 2824 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:155 25 25 msgid "Configure the contest" 26 26 msgstr "Configure the contest" 27 27 28 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 2928 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:156 29 29 msgid "Winners' number" 30 30 msgstr "Winners' number" 31 31 32 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3032 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:157 33 33 msgid "Maximum participations' number per person" 34 34 msgstr "Maximum participations' number per person" 35 35 36 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3136 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:158 37 37 msgid "Allowed ranks to participate" 38 38 msgstr "Allowed ranks to participate" 39 39 40 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3240 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:159 41 41 msgid "Administrator" 42 42 msgstr "Administrator" 43 43 44 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3344 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:160 45 45 msgid "Editor" 46 46 msgstr "Editor" 47 47 48 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3448 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:161 49 49 msgid "Author" 50 50 msgstr "Author" 51 51 52 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3552 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:162 53 53 msgid "Contributor" 54 54 msgstr "Contributor" 55 55 56 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3656 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:163 57 57 msgid "Subscriber" 58 58 msgstr "Subscriber" 59 59 60 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3760 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:164 61 61 msgid "Normal user" 62 62 msgstr "Normal user" 63 63 64 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3864 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:165 65 65 msgid "Automaticaly send a mail to winners" 66 66 msgstr "Automaticaly send a mail to winners" 67 67 68 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:139 69 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:398 70 msgid "Email's content" 71 msgstr "Email's content" 72 73 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:140 68 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:166 69 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:696 70 msgid "Email's content (HTML possible)" 71 msgstr "Email's content (HTML possible)" 72 73 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:167 74 msgid "Contest type" 75 msgstr "Contest type" 76 77 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:168 78 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:432 74 79 msgid "Ok!" 75 80 msgstr "Ok!" 76 81 77 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:177 82 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:169 83 msgid "Normal contest (random winners)" 84 msgstr "Normal contest (random winners)" 85 86 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:170 87 msgid "Speed contest (first comments win)" 88 msgstr "Speed contest (first comments win)" 89 90 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:171 91 msgid "Number of different prizes" 92 msgstr "Number of different prizes" 93 94 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:284 78 95 msgid "Choose a post" 79 96 msgstr "Choose a post" 80 97 81 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 17898 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:285 82 99 msgid "More..." 83 100 msgstr "More..." 84 101 85 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 179102 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:286 86 103 msgid "No post found!" 87 104 msgstr "No post found!" 88 105 89 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 215106 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:334 90 107 msgid "Choose comments to include in the contest" 91 108 msgstr "Choose comments to include in the contest" 92 109 93 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 216110 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:335 94 111 msgid "Launch the contest" 95 112 msgstr "Launch the contest" 96 113 97 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 217114 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:336 98 115 msgid "No comment found!" 99 116 msgstr "No comment found!" 100 117 101 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:291 118 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:431 119 msgid "Prizes' choice" 120 msgstr "Prizes' choice" 121 122 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:433 123 msgid "Prize name:" 124 msgstr "Prize name:" 125 126 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:434 127 msgid "From" 128 msgstr "From" 129 130 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:435 131 msgid "to" 132 msgstr "to" 133 134 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:440 135 msgid "Please give all prizes!" 136 msgstr "Please give all prizes!" 137 138 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:443 139 msgid "Please check all places for each prize" 140 msgstr "Please check all places for each prize" 141 142 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:510 102 143 msgid "Winners" 103 144 msgstr "Winners" 104 145 105 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 292146 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:511 106 147 msgid "Comment" 107 148 msgstr "Comment:" 108 149 109 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 293150 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:512 110 151 msgid "says" 111 152 msgstr "says" 112 153 113 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 294154 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:513 114 155 msgid "You win a contest" 115 156 msgstr "You win a contest" 116 157 117 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:343 158 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:537 159 msgid "Prize won:" 160 msgstr "Prize won:" 161 162 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:570 163 msgid "List of all participants:" 164 msgstr "List of all participants: " 165 166 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:590 118 167 msgid "Choose comments" 119 168 msgstr "Choose comments" 120 169 121 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 354170 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:601 122 171 msgid "Back" 123 172 msgstr "Back" 124 173 125 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 373174 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:671 126 175 msgid "Please select one winner at least!" 127 176 msgstr "Please select one winner at least!" 128 177 129 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 376178 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:674 130 179 msgid "Please select more participants than winners!" 131 180 msgstr "Please select more participants than winners!" 132 181 133 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 401182 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:699 134 183 msgid "Please select one rank at least!" 135 184 msgstr "Please select one rank at least!" 136 185 137 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 404186 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:702 138 187 msgid "Wrong winners format!" 139 188 msgstr "Wrong winners format!" 140 189 141 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 407190 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:705 142 191 msgid "Wrong participations format!" 143 192 msgstr "Wrong participations format!" 144 193 145 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 410194 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:708 146 195 msgid "Please change the email's content!" 147 196 msgstr "Please change the email's content!" 148 197 198 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:711 199 msgid "Wrong prizes number format! Or choose more winners than prizes!" 200 msgstr "Wrong prizes number format! Or choose more winners than prizes!" 201 -
comment-contest/trunk/languages/commentContest-fr_FR.po
r152584 r154447 3 3 "Project-Id-Version: Comment Contest\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2009-09- 06 21:52+0100\n"5 "POT-Creation-Date: 2009-09-13 20:04+0100\n" 6 6 "PO-Revision-Date: \n" 7 7 "Last-Translator: Zhykos <zhykos@nozzhy.com>\n" … … 18 18 "X-Poedit-SearchPath-0: C:\\wamp\\www\\wordpress\\wp-content\\plugins\\comment-contest\n" 19 19 20 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 7520 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:95 21 21 msgid "Comment Contest" 22 22 msgstr "Comment Contest" 23 23 24 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 2824 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:155 25 25 msgid "Configure the contest" 26 26 msgstr "Configurations du tirage au sort" 27 27 28 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 2928 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:156 29 29 msgid "Winners' number" 30 30 msgstr "Nombre de gagnants " 31 31 32 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3032 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:157 33 33 msgid "Maximum participations' number per person" 34 34 msgstr "Nombre maximum de participations par personne " 35 35 36 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3136 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:158 37 37 msgid "Allowed ranks to participate" 38 38 msgstr "Rangs autorisés pour participation " 39 39 40 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3240 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:159 41 41 msgid "Administrator" 42 42 msgstr "Administrateur" 43 43 44 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3344 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:160 45 45 msgid "Editor" 46 46 msgstr "Éditeur" 47 47 48 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3448 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:161 49 49 msgid "Author" 50 50 msgstr "Auteur" 51 51 52 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3552 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:162 53 53 msgid "Contributor" 54 54 msgstr "Contributeur" 55 55 56 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3656 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:163 57 57 msgid "Subscriber" 58 58 msgstr "Abonné" 59 59 60 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3760 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:164 61 61 msgid "Normal user" 62 62 msgstr "Utilisateur normal" 63 63 64 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:1 3864 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:165 65 65 msgid "Automaticaly send a mail to winners" 66 66 msgstr "Envoyer automatiquement un email aux gagnants" 67 67 68 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:139 69 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:398 70 msgid "Email's content" 71 msgstr "Contenu de l'email" 72 73 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:140 68 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:166 69 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:696 70 msgid "Email's content (HTML possible)" 71 msgstr "Contenu de l'email (HTML possible)" 72 73 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:167 74 msgid "Contest type" 75 msgstr "Type de concours" 76 77 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:168 78 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:432 74 79 msgid "Ok!" 75 80 msgstr "Ok !" 76 81 77 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:177 82 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:169 83 msgid "Normal contest (random winners)" 84 msgstr "Concours normal (gagnants aléatoire)" 85 86 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:170 87 msgid "Speed contest (first comments win)" 88 msgstr "Concours rapide (les premiers commentaires gagnent)" 89 90 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:171 91 msgid "Number of different prizes" 92 msgstr "Nombre de lots à gagner" 93 94 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:284 78 95 msgid "Choose a post" 79 96 msgstr "Choisir un article" 80 97 81 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 17898 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:285 82 99 msgid "More..." 83 100 msgstr "Plus..." 84 101 85 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 179102 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:286 86 103 msgid "No post found!" 87 104 msgstr "Aucun article !" 88 105 89 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 215106 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:334 90 107 msgid "Choose comments to include in the contest" 91 108 msgstr "Choisir les commentaires à inclure dans le concours" 92 109 93 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 216110 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:335 94 111 msgid "Launch the contest" 95 112 msgstr "Lancer le tirage au sort" 96 113 97 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 217114 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:336 98 115 msgid "No comment found!" 99 116 msgstr "Aucun commentaire !" 100 117 101 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:291 118 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:431 119 msgid "Prizes' choice" 120 msgstr "Choix des lots" 121 122 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:433 123 msgid "Prize name:" 124 msgstr "Nom du lot :" 125 126 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:434 127 msgid "From" 128 msgstr "De" 129 130 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:435 131 msgid "to" 132 msgstr "à" 133 134 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:440 135 msgid "Please give all prizes!" 136 msgstr "Veuillez préciser tous les lots !" 137 138 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:443 139 msgid "Please check all places for each prize" 140 msgstr "Veuillez vérifier toutes les places pour chaque lot !" 141 142 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:510 102 143 msgid "Winners" 103 144 msgstr "Les gagnants" 104 145 105 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 292146 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:511 106 147 msgid "Comment" 107 148 msgstr "Commentaire de" 108 149 109 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 293150 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:512 110 151 msgid "says" 111 152 msgstr "avec" 112 153 113 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 294154 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:513 114 155 msgid "You win a contest" 115 156 msgstr "Vous avez gagné un concours" 116 157 117 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:343 158 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:537 159 msgid "Prize won:" 160 msgstr "Lot gagné :" 161 162 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:570 163 msgid "List of all participants:" 164 msgstr "Liste des participants au concours :" 165 166 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:590 118 167 msgid "Choose comments" 119 168 msgstr "Rechoisir les commentaires" 120 169 121 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 354170 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:601 122 171 msgid "Back" 123 172 msgstr "Retour au début" 124 173 125 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 373174 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:671 126 175 msgid "Please select one winner at least!" 127 176 msgstr "Veuillez sélectionner au moins un gagnant !" 128 177 129 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 376178 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:674 130 179 msgid "Please select more participants than winners!" 131 180 msgstr "Veuillez sélectionner plus de participants que de gagnants !" 132 181 133 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 401182 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:699 134 183 msgid "Please select one rank at least!" 135 184 msgstr "Veuillez sélectionner au moins un rang !" 136 185 137 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 404186 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:702 138 187 msgid "Wrong winners format!" 139 188 msgstr "Veuillez spécifier un nombre correct de gagnants !" 140 189 141 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 407190 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:705 142 191 msgid "Wrong participations format!" 143 192 msgstr "Veuillez spécifier un nombre correct de participations !" 144 193 145 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php: 410194 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:708 146 195 msgid "Please change the email's content!" 147 196 msgstr "Veuillez changer le contenu de l'email" 148 197 198 #: C:\wamp\www\wordpress\wp-content\plugins\comment-contest/comment-contest.php:711 199 msgid "Wrong prizes number format! Or choose more winners than prizes!" 200 msgstr "Mauvais format pour les places !" 201 -
comment-contest/trunk/readme.txt
r152584 r154447 23 23 24 24 == Frequently Asked Questions == 25 TODO 25 26 = Which PHP version I need? = 27 28 You need PHP version 4 like Wordpress. The plugin is ready to run with PHP5 but it isn't activated. 26 29 27 30 == Screenshots == … … 29 32 2. Choose the article in which the contest is running 30 33 3. Choose the comments 31 4. The winners are displayed 34 4. Choose the prizes to win 35 5. The winners are displayed 32 36 33 37 == Changelog == … … 47 51 = 1.1.1b = 48 52 * Send a mail to the winners at the end. You can choose to do so or not (not tested yet) 53 54 = 1.1.1 = 55 * Bug fix : send a mail to winners (tested online) 56 * Bug fix : can display other posts 57 58 = 1.1.2 = 59 * Add the possibility to choose between Normal Contest or Speed Contest. Speed Contest choose winners by sorting them by chronologic order 60 61 = 1.2 = 62 * Set the prices to win 63 * Change PHP version for the main class. I migrate from PHP5 to version 4 because some servers still use PHP4 and PHP4 is the Wordpress recommandation 64 65 = 1.3 = 66 * Change error message display (now it's the same message as Wordpress). Old values are put in the fields so the user don't have to type again the values 67 * New winners display
Note: See TracChangeset
for help on using the changeset viewer.