Changeset 2110
- Timestamp:
- 03/09/10 15:30:13 (14 years ago)
- Location:
- plugins/pollsFactory
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/pollsFactory/_admin.php
r2102 r2110 64 64 if ($poll->isEmpty()) return; 65 65 66 libPollsFactory::deletePoll($fa tc,$poll->poll_id);66 libPollsFactory::deletePoll($fact,$poll->poll_id); 67 67 } 68 68 -
plugins/pollsFactory/_define.php
r2102 r2110 1 1 <?php 2 2 3 # -- BEGIN LICENSE BLOCK ---------------------------------- 4 3 5 # This file is part of pollsFactory, a plugin for Dotclear 2. 6 4 7 # 8 5 9 # Copyright (c) 2009-2010 JC Denis and contributors 10 6 11 # jcdenis@gdwd.com 12 7 13 # 14 8 15 # Licensed under the GPL version 2.0 license. 16 9 17 # A copy of this license is available in LICENSE file or at 18 10 19 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 20 11 21 # -- END LICENSE BLOCK ------------------------------------ 22 23 12 24 13 25 if (!defined('DC_RC_PATH')){return;} … … 17 29 /* Description*/ "Add polls to entries", 18 30 /* Author */ "JC Denis", 19 /* Version */ '0.2 ',31 /* Version */ '0.2.2', 20 32 /* Permissions */ 'admin' 21 33 ); -
plugins/pollsFactory/_public.php
r2103 r2110 356 356 $percent = ceil($nb / $count * 100).'%'; 357 357 358 if ($nb == 0) { 359 $nb_text = __('no vote'); 360 } 361 elseif ($nb == 1) { 362 $nb_text = __('one vote'); 363 } 364 else { 365 $nb_text = sprintf(__('%s votes'),$nb); 366 } 367 358 368 $rs_sort[] = array( 359 369 'nb'=>$nb, 360 'text'=>'<li><strong>'.$options->option_text.'</strong> '.$percent.' <em>('. sprintf(__('%s votes'),$nb).')</em></li>'370 'text'=>'<li><strong>'.$options->option_text.'</strong> '.$percent.' <em>('.$nb_text.')</em></li>' 361 371 ); 362 372 } -
plugins/pollsFactory/js/admin.js
r2099 r2110 22 22 23 23 if(pollend!=undefined){ 24 var polls tart_dtPick=new datePicker(pollend);25 polls tart_dtPick.img_top='1.4em';26 polls tart_dtPick.draw();24 var pollsend_dtPick=new datePicker(pollend); 25 pollsend_dtPick.img_top='1.4em'; 26 pollsend_dtPick.draw(); 27 27 } 28 28 }); -
plugins/pollsFactory/locales/fr/main.lang.php
r2102 r2110 1 1 <?php 2 2 // Language: français 3 // Module: pollsFactory - 0. 14 // Date: 2010-03-0 6 15:14:273 // Module: pollsFactory - 0.2.1 4 // Date: 2010-03-07 11:35:22 5 5 // Translated with dcTranslater - 1.3 6 6 7 7 #_admin.php:18 8 #index.php:71 8 #_admin.php:75 9 #_admin.php:76 10 #_admin.php:77 11 #index.php:72 9 12 #index.php:83 10 #index.php: 10013 #index.php:99 11 14 $GLOBALS['__l10n']['Polls factory'] = 'Usine à sondages'; 12 15 13 #_admin.php:4 216 #_admin.php:44 14 17 $GLOBALS['__l10n']['add a poll to this entry'] = 'ajouter un sondage à ce billet'; 15 18 16 #_admin.php:4 419 #_admin.php:46 17 20 $GLOBALS['__l10n']['add poll'] = 'ajouter un sondage'; 18 21 19 #_admin.php: 4822 #_admin.php:50 20 23 $GLOBALS['__l10n']['edit poll linked to this entry'] = 'modifier le sondage lié à ce billet'; 21 24 22 #_admin.php:5 025 #_admin.php:52 23 26 $GLOBALS['__l10n']['edit poll'] = 'modifier le sondage'; 24 27 25 #_admin.php:72 26 #_admin.php:73 27 #_admin.php:74 28 #inc/index.polls.php:122 29 #inc/index.polls.php:123 30 $GLOBALS['__l10n']['polls'] = 'sondages'; 31 32 #_admin.php:72 28 #_admin.php:75 33 29 #inc/index.polls.php:122 34 30 $GLOBALS['__l10n']['delete poll'] = 'supprimer le sondage'; 35 31 36 #_admin.php:7 332 #_admin.php:76 37 33 $GLOBALS['__l10n']['remove poll'] = 'retirer le sondage'; 38 34 39 #_admin.php:7 435 #_admin.php:77 40 36 #inc/index.polls.php:123 41 37 $GLOBALS['__l10n']['close poll'] = 'fermer le sondage'; 42 38 43 #_admin.php:9 639 #_admin.php:99 44 40 $GLOBALS['__l10n']['delete polls related to selected entries'] = 'effacer les sondages liés aux billets selectionnés'; 45 41 46 #_admin.php: 9942 #_admin.php:102 47 43 $GLOBALS['__l10n']['close polls related to selected entries'] = 'fermer les sondages liés aux billets selectionnés'; 48 44 49 #_admin.php:10 245 #_admin.php:105 50 46 $GLOBALS['__l10n']['remove polls related to selected entries'] = 'retirer les sondage liés aux billets selectionnés'; 51 47 52 #_admin.php:10 348 #_admin.php:106 53 49 $GLOBALS['__l10n']['This does not erase poll.'] = 'Ceci n\'efface pas le sondage.'; 54 50 55 #_admin.php:1 0851 #_admin.php:111 56 52 $GLOBALS['__l10n']['There is no poll for selected entries'] = 'Il n\'y a pas de sondage pour les billets selectionnés'; 57 53 … … 63 59 $GLOBALS['__l10n']['Poll'] = 'Sondage'; 64 60 65 #_public.php:2 8861 #_public.php:293 66 62 $GLOBALS['__l10n']['Validate'] = 'Valider'; 67 63 68 #_public.php:355 64 #_public.php:359 65 $GLOBALS['__l10n']['no vote'] = 'aucun vote'; 66 67 #_public.php:362 68 $GLOBALS['__l10n']['one vote'] = 'un vote'; 69 70 #_public.php:365 69 71 #inc/index.viewpoll.php:140 70 72 $GLOBALS['__l10n']['%s votes'] = '%s votes'; 71 73 72 #_public.php:3 7974 #_public.php:394 73 75 $GLOBALS['__l10n']['Some selected responses:'] = 'Quelques réponses selectionnées :'; 74 76 75 #_public.php: 39576 #_public.php:4 1477 #_public.php:410 78 #_public.php:429 77 79 $GLOBALS['__l10n']['This poll ends on %s.'] = 'Ce sondage fini le %s.'; 78 80 79 #_public.php: 39681 #_public.php:411 80 82 $GLOBALS['__l10n']['This poll is closed'] = 'Ce sondage est terminer.'; 81 83 82 #_public.php: 39884 #_public.php:413 83 85 $GLOBALS['__l10n']['%s people participated.'] = '%s personnes ont participé.'; 84 86 85 #_public.php:4 1287 #_public.php:427 86 88 $GLOBALS['__l10n']['You have already participated to this poll.'] = 'Vous avez déjà participez à ce sondage.'; 87 89 88 #_public.php:4 1390 #_public.php:428 89 91 $GLOBALS['__l10n']['Please wait the end of this poll to see results.'] = 'Merci de patienter la fin du sondage pour voir les résultats.'; 90 92 91 93 #_widgets.php:26 92 94 #_widgets.php:31 93 #index.php:5 295 #index.php:53 94 96 $GLOBALS['__l10n']['Polls list'] = 'Liste des sondages'; 95 97 … … 233 235 $GLOBALS['__l10n']['Online'] = 'En ligne'; 234 236 235 #inc/index.polls.php:236 237 #inc/index.polls.php:122 238 #inc/index.polls.php:123 239 $GLOBALS['__l10n']['polls'] = 'sondages'; 240 241 #inc/index.polls.php:234 236 242 $GLOBALS['__l10n']['Poll status:'] = 'Status du sondage :'; 237 243 … … 300 306 301 307 #inc/index.viewpoll.php:67 302 #index.php:5 1308 #index.php:52 303 309 $GLOBALS['__l10n']['Options'] = 'Options'; 304 310 … … 396 402 $GLOBALS['__l10n']['text area'] = 'zone de texte'; 397 403 398 #index.php: 29404 #index.php:30 399 405 $GLOBALS['__l10n']['Configuration successfully saved'] = 'Configuration sauvegardée avec succès'; 400 406 401 #index.php:3 0407 #index.php:31 402 408 $GLOBALS['__l10n']['Poll successfully created'] = 'Sondage crée avec succès'; 403 409 404 #index.php:3 1410 #index.php:32 405 411 $GLOBALS['__l10n']['Poll period successfully updated'] = 'Dates de sondage mises à jour avec succès'; 406 412 407 #index.php:3 2413 #index.php:33 408 414 $GLOBALS['__l10n']['Poll successfully deleted'] = 'Sondage effacé avec succès'; 409 415 410 #index.php:3 3416 #index.php:34 411 417 $GLOBALS['__l10n']['Queries successfully deleted'] = 'Questions effacées avec succès'; 412 418 413 #index.php:3 4419 #index.php:35 414 420 $GLOBALS['__l10n']['Queries successfully reordered'] = 'Questions réordonnées avec succès'; 415 421 416 #index.php:3 5422 #index.php:36 417 423 $GLOBALS['__l10n']['Query successfully created'] = 'Question créée avec succès'; 418 424 419 #index.php:3 6425 #index.php:37 420 426 $GLOBALS['__l10n']['New query successfully deleted'] = 'Nouvelle question effacer avec succès'; 421 427 422 #index.php:3 7428 #index.php:38 423 429 $GLOBALS['__l10n']['Options successfully deleted'] = 'Options effacées avec succès'; 424 430 425 #index.php:3 8431 #index.php:39 426 432 $GLOBALS['__l10n']['Option successfully created'] = 'Option créée avec succès'; 427 433 428 #index.php: 39434 #index.php:40 429 435 $GLOBALS['__l10n']['Query successfully completed'] = 'Question complétée avec succès'; 430 436 431 #index.php:4 0437 #index.php:41 432 438 $GLOBALS['__l10n']['Poll successfully completed'] = 'Sondage complété avec succès'; 433 439 434 #index.php:4 1440 #index.php:42 435 441 $GLOBALS['__l10n']['Responses succesfully selected'] = 'Réponses seletionnées avec succès'; 436 442 437 #index.php:5 3443 #index.php:54 438 444 $GLOBALS['__l10n']['Create poll'] = 'Créer un sondage'; 439 445 440 #index.php:5 4446 #index.php:55 441 447 $GLOBALS['__l10n']['Poll results'] = 'Résultats d\'un sondage'; 442 448 443 #index.php:6 4449 #index.php:65 444 450 $GLOBALS['__l10n']['Edit'] = 'Modifier'; 445 451 -
plugins/pollsFactory/locales/fr/main.po
r2102 r2110 1 1 # Language: français 2 # Module: pollsFactory - 0. 13 # Date: 2010-03-0 6 15:14:272 # Module: pollsFactory - 0.2.1 3 # Date: 2010-03-07 11:35:22 4 4 # Translated with translater 1.3 5 5 … … 7 7 msgstr "" 8 8 "Content-Type: text/plain; charset=UTF-8\n" 9 "Project-Id-Version: pollsFactory 0. 1\n"9 "Project-Id-Version: pollsFactory 0.2.1\n" 10 10 "POT-Creation-Date: \n" 11 "PO-Revision-Date: 2010-03-0 6T15:14:27+00:00\n"11 "PO-Revision-Date: 2010-03-07T11:35:22+00:00\n" 12 12 "Last-Translator: JC Denis\n" 13 13 "Language-Team: \n" … … 16 16 17 17 #: _admin.php:18 18 #: index.php:71 18 #: _admin.php:75 19 #: _admin.php:76 20 #: _admin.php:77 21 #: index.php:72 19 22 #: index.php:83 20 #: index.php: 10023 #: index.php:99 21 24 msgid "Polls factory" 22 25 msgstr "Usine à sondages" 23 26 24 #: _admin.php:4 227 #: _admin.php:44 25 28 msgid "add a poll to this entry" 26 29 msgstr "ajouter un sondage à ce billet" 27 30 28 #: _admin.php:4 431 #: _admin.php:46 29 32 msgid "add poll" 30 33 msgstr "ajouter un sondage" 31 34 32 #: _admin.php: 4835 #: _admin.php:50 33 36 msgid "edit poll linked to this entry" 34 37 msgstr "modifier le sondage lié à ce billet" 35 38 36 #: _admin.php:5 039 #: _admin.php:52 37 40 msgid "edit poll" 38 41 msgstr "modifier le sondage" 39 42 40 #: _admin.php:72 41 #: _admin.php:73 42 #: _admin.php:74 43 #: inc/index.polls.php:122 44 #: inc/index.polls.php:123 45 msgid "polls" 46 msgstr "sondages" 47 48 #: _admin.php:72 43 #: _admin.php:75 49 44 #: inc/index.polls.php:122 50 45 msgid "delete poll" 51 46 msgstr "supprimer le sondage" 52 47 53 #: _admin.php:7 348 #: _admin.php:76 54 49 msgid "remove poll" 55 50 msgstr "retirer le sondage" 56 51 57 #: _admin.php:7 452 #: _admin.php:77 58 53 #: inc/index.polls.php:123 59 54 msgid "close poll" 60 55 msgstr "fermer le sondage" 61 56 62 #: _admin.php:9 657 #: _admin.php:99 63 58 msgid "delete polls related to selected entries" 64 59 msgstr "effacer les sondages liés aux billets selectionnés" 65 60 66 #: _admin.php: 9961 #: _admin.php:102 67 62 msgid "close polls related to selected entries" 68 63 msgstr "fermer les sondages liés aux billets selectionnés" 69 64 70 #: _admin.php:10 265 #: _admin.php:105 71 66 msgid "remove polls related to selected entries" 72 67 msgstr "retirer les sondage liés aux billets selectionnés" 73 68 74 #: _admin.php:10 369 #: _admin.php:106 75 70 msgid "This does not erase poll." 76 71 msgstr "Ceci n'efface pas le sondage." 77 72 78 #: _admin.php:1 0873 #: _admin.php:111 79 74 msgid "There is no poll for selected entries" 80 75 msgstr "Il n'y a pas de sondage pour les billets selectionnés" … … 88 83 msgstr "Sondage" 89 84 90 #: _public.php:2 8885 #: _public.php:293 91 86 msgid "Validate" 92 87 msgstr "Valider" 93 88 94 #: _public.php:355 89 #: _public.php:359 90 msgid "no vote" 91 msgstr "aucun vote" 92 93 #: _public.php:362 94 msgid "one vote" 95 msgstr "un vote" 96 97 #: _public.php:365 95 98 #: inc/index.viewpoll.php:140 96 99 msgid "%s votes" 97 100 msgstr "%s votes" 98 101 99 #: _public.php:3 79102 #: _public.php:394 100 103 msgid "Some selected responses:" 101 104 msgstr "Quelques réponses selectionnées :" 102 105 103 #: _public.php: 395104 #: _public.php:4 14106 #: _public.php:410 107 #: _public.php:429 105 108 msgid "This poll ends on %s." 106 109 msgstr "Ce sondage fini le %s." 107 110 108 #: _public.php: 396111 #: _public.php:411 109 112 msgid "This poll is closed" 110 113 msgstr "Ce sondage est terminer." 111 114 112 #: _public.php: 398115 #: _public.php:413 113 116 msgid "%s people participated." 114 117 msgstr "%s personnes ont participé." 115 118 116 #: _public.php:4 12119 #: _public.php:427 117 120 msgid "You have already participated to this poll." 118 121 msgstr "Vous avez déjà participez à ce sondage." 119 122 120 #: _public.php:4 13123 #: _public.php:428 121 124 msgid "Please wait the end of this poll to see results." 122 125 msgstr "Merci de patienter la fin du sondage pour voir les résultats." … … 124 127 #: _widgets.php:26 125 128 #: _widgets.php:31 126 #: index.php:5 2129 #: index.php:53 127 130 msgid "Polls list" 128 131 msgstr "Liste des sondages" … … 310 313 msgstr "En ligne" 311 314 312 #: inc/index.polls.php:236 315 #: inc/index.polls.php:122 316 #: inc/index.polls.php:123 317 msgid "polls" 318 msgstr "sondages" 319 320 #: inc/index.polls.php:234 313 321 msgid "Poll status:" 314 322 msgstr "Status du sondage :" … … 399 407 400 408 #: inc/index.viewpoll.php:67 401 #: index.php:5 1409 #: index.php:52 402 410 msgid "Options" 403 411 msgstr "Options" … … 526 534 msgstr "zone de texte" 527 535 528 #: index.php: 29536 #: index.php:30 529 537 msgid "Configuration successfully saved" 530 538 msgstr "Configuration sauvegardée avec succès" 531 539 532 #: index.php:3 0540 #: index.php:31 533 541 msgid "Poll successfully created" 534 542 msgstr "Sondage crée avec succès" 535 543 536 #: index.php:3 1544 #: index.php:32 537 545 msgid "Poll period successfully updated" 538 546 msgstr "Dates de sondage mises à jour avec succès" 539 547 540 #: index.php:3 2548 #: index.php:33 541 549 msgid "Poll successfully deleted" 542 550 msgstr "Sondage effacé avec succès" 543 551 544 #: index.php:3 3552 #: index.php:34 545 553 msgid "Queries successfully deleted" 546 554 msgstr "Questions effacées avec succès" 547 555 548 #: index.php:3 4556 #: index.php:35 549 557 msgid "Queries successfully reordered" 550 558 msgstr "Questions réordonnées avec succès" 551 559 552 #: index.php:3 5560 #: index.php:36 553 561 msgid "Query successfully created" 554 562 msgstr "Question créée avec succès" 555 563 556 #: index.php:3 6564 #: index.php:37 557 565 msgid "New query successfully deleted" 558 566 msgstr "Nouvelle question effacer avec succès" 559 567 560 #: index.php:3 7568 #: index.php:38 561 569 msgid "Options successfully deleted" 562 570 msgstr "Options effacées avec succès" 563 571 564 #: index.php:3 8572 #: index.php:39 565 573 msgid "Option successfully created" 566 574 msgstr "Option créée avec succès" 567 575 568 #: index.php: 39576 #: index.php:40 569 577 msgid "Query successfully completed" 570 578 msgstr "Question complétée avec succès" 571 579 572 #: index.php:4 0580 #: index.php:41 573 581 msgid "Poll successfully completed" 574 582 msgstr "Sondage complété avec succès" 575 583 576 #: index.php:4 1584 #: index.php:42 577 585 msgid "Responses succesfully selected" 578 586 msgstr "Réponses seletionnées avec succès" 579 587 580 #: index.php:5 3588 #: index.php:54 581 589 msgid "Create poll" 582 590 msgstr "Créer un sondage" 583 591 584 #: index.php:5 4592 #: index.php:55 585 593 msgid "Poll results" 586 594 msgstr "Résultats d'un sondage" 587 595 588 #: index.php:6 4596 #: index.php:65 589 597 msgid "Edit" 590 598 msgstr "Modifier" -
plugins/pollsFactory/release.txt
r2102 r2110 4 4 * Not added options order 5 5 * Not added readable remain time instead of end date 6 7 0.2.2 20100309 8 * Fixed plural/singular on nb of votes 6 9 7 10 0.2 20100307
Note: See TracChangeset
for help on using the changeset viewer.