Dotclear

Changeset 2110


Ignore:
Timestamp:
03/09/10 15:30:13 (14 years ago)
Author:
JcDenis
Message:

pollsFactory 0.2.2:

  • Fixed tiny bugs
Location:
plugins/pollsFactory
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • plugins/pollsFactory/_admin.php

    r2102 r2110  
    6464          if ($poll->isEmpty()) return; 
    6565 
    66           libPollsFactory::deletePoll($fatc,$poll->poll_id); 
     66          libPollsFactory::deletePoll($fact,$poll->poll_id); 
    6767     } 
    6868      
  • plugins/pollsFactory/_define.php

    r2102 r2110  
    11<?php 
     2 
    23# -- BEGIN LICENSE BLOCK ---------------------------------- 
     4 
    35# This file is part of pollsFactory, a plugin for Dotclear 2. 
     6 
    47#  
     8 
    59# Copyright (c) 2009-2010 JC Denis and contributors 
     10 
    611# jcdenis@gdwd.com 
     12 
    713#  
     14 
    815# Licensed under the GPL version 2.0 license. 
     16 
    917# A copy of this license is available in LICENSE file or at 
     18 
    1019# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     20 
    1121# -- END LICENSE BLOCK ------------------------------------ 
     22 
     23 
    1224 
    1325if (!defined('DC_RC_PATH')){return;} 
     
    1729     /* Description*/         "Add polls to entries", 
    1830     /* Author */             "JC Denis", 
    19      /* Version */            '0.2', 
     31     /* Version */            '0.2.2', 
    2032     /* Permissions */        'admin' 
    2133); 
  • plugins/pollsFactory/_public.php

    r2103 r2110  
    356356                                   $percent = ceil($nb / $count * 100).'%'; 
    357357 
     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 
    358368                                   $rs_sort[] = array( 
    359369                                        '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>' 
    361371                                   ); 
    362372                              } 
  • plugins/pollsFactory/js/admin.js

    r2099 r2110  
    2222      
    2323     if(pollend!=undefined){ 
    24           var pollstart_dtPick=new datePicker(pollend); 
    25           pollstart_dtPick.img_top='1.4em'; 
    26           pollstart_dtPick.draw(); 
     24          var pollsend_dtPick=new datePicker(pollend); 
     25          pollsend_dtPick.img_top='1.4em'; 
     26          pollsend_dtPick.draw(); 
    2727     } 
    2828}); 
  • plugins/pollsFactory/locales/fr/main.lang.php

    r2102 r2110  
    11<?php 
    22// Language: français  
    3 // Module: pollsFactory - 0.1 
    4 // Date: 2010-03-06 15:14:27  
     3// Module: pollsFactory - 0.2.1 
     4// Date: 2010-03-07 11:35:22  
    55// Translated with dcTranslater - 1.3  
    66 
    77#_admin.php:18 
    8 #index.php:71 
     8#_admin.php:75 
     9#_admin.php:76 
     10#_admin.php:77 
     11#index.php:72 
    912#index.php:83 
    10 #index.php:100 
     13#index.php:99 
    1114$GLOBALS['__l10n']['Polls factory'] = 'Usine à sondages'; 
    1215 
    13 #_admin.php:42 
     16#_admin.php:44 
    1417$GLOBALS['__l10n']['add a poll to this entry'] = 'ajouter un sondage à ce billet'; 
    1518 
    16 #_admin.php:44 
     19#_admin.php:46 
    1720$GLOBALS['__l10n']['add poll'] = 'ajouter un sondage'; 
    1821 
    19 #_admin.php:48 
     22#_admin.php:50 
    2023$GLOBALS['__l10n']['edit poll linked to this entry'] = 'modifier le sondage lié à ce billet'; 
    2124 
    22 #_admin.php:50 
     25#_admin.php:52 
    2326$GLOBALS['__l10n']['edit poll'] = 'modifier le sondage'; 
    2427 
    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 
    3329#inc/index.polls.php:122 
    3430$GLOBALS['__l10n']['delete poll'] = 'supprimer le sondage'; 
    3531 
    36 #_admin.php:73 
     32#_admin.php:76 
    3733$GLOBALS['__l10n']['remove poll'] = 'retirer le sondage'; 
    3834 
    39 #_admin.php:74 
     35#_admin.php:77 
    4036#inc/index.polls.php:123 
    4137$GLOBALS['__l10n']['close poll'] = 'fermer le sondage'; 
    4238 
    43 #_admin.php:96 
     39#_admin.php:99 
    4440$GLOBALS['__l10n']['delete polls related to selected entries'] = 'effacer les sondages liés aux billets selectionnés'; 
    4541 
    46 #_admin.php:99 
     42#_admin.php:102 
    4743$GLOBALS['__l10n']['close polls related to selected entries'] = 'fermer les sondages liés aux billets selectionnés'; 
    4844 
    49 #_admin.php:102 
     45#_admin.php:105 
    5046$GLOBALS['__l10n']['remove polls related to selected entries'] = 'retirer les sondage liés aux billets selectionnés'; 
    5147 
    52 #_admin.php:103 
     48#_admin.php:106 
    5349$GLOBALS['__l10n']['This does not erase poll.'] = 'Ceci n\'efface pas le sondage.'; 
    5450 
    55 #_admin.php:108 
     51#_admin.php:111 
    5652$GLOBALS['__l10n']['There is no poll for selected entries'] = 'Il n\'y a pas de sondage pour les billets selectionnés'; 
    5753 
     
    6359$GLOBALS['__l10n']['Poll'] = 'Sondage'; 
    6460 
    65 #_public.php:288 
     61#_public.php:293 
    6662$GLOBALS['__l10n']['Validate'] = 'Valider'; 
    6763 
    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 
    6971#inc/index.viewpoll.php:140 
    7072$GLOBALS['__l10n']['%s votes'] = '%s votes'; 
    7173 
    72 #_public.php:379 
     74#_public.php:394 
    7375$GLOBALS['__l10n']['Some selected responses:'] = 'Quelques réponses selectionnées :'; 
    7476 
    75 #_public.php:395 
    76 #_public.php:414 
     77#_public.php:410 
     78#_public.php:429 
    7779$GLOBALS['__l10n']['This poll ends on %s.'] = 'Ce sondage fini le %s.'; 
    7880 
    79 #_public.php:396 
     81#_public.php:411 
    8082$GLOBALS['__l10n']['This poll is closed'] = 'Ce sondage est terminer.'; 
    8183 
    82 #_public.php:398 
     84#_public.php:413 
    8385$GLOBALS['__l10n']['%s people participated.'] = '%s personnes ont participé.'; 
    8486 
    85 #_public.php:412 
     87#_public.php:427 
    8688$GLOBALS['__l10n']['You have already participated to this poll.'] = 'Vous avez déjà participez à ce sondage.'; 
    8789 
    88 #_public.php:413 
     90#_public.php:428 
    8991$GLOBALS['__l10n']['Please wait the end of this poll to see results.'] = 'Merci de patienter la fin du sondage pour voir les résultats.'; 
    9092 
    9193#_widgets.php:26 
    9294#_widgets.php:31 
    93 #index.php:52 
     95#index.php:53 
    9496$GLOBALS['__l10n']['Polls list'] = 'Liste des sondages'; 
    9597 
     
    233235$GLOBALS['__l10n']['Online'] = 'En ligne'; 
    234236 
    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 
    236242$GLOBALS['__l10n']['Poll status:'] = 'Status du sondage :'; 
    237243 
     
    300306 
    301307#inc/index.viewpoll.php:67 
    302 #index.php:51 
     308#index.php:52 
    303309$GLOBALS['__l10n']['Options'] = 'Options'; 
    304310 
     
    396402$GLOBALS['__l10n']['text area'] = 'zone de texte'; 
    397403 
    398 #index.php:29 
     404#index.php:30 
    399405$GLOBALS['__l10n']['Configuration successfully saved'] = 'Configuration sauvegardée avec succès'; 
    400406 
    401 #index.php:30 
     407#index.php:31 
    402408$GLOBALS['__l10n']['Poll successfully created'] = 'Sondage crée avec succès'; 
    403409 
    404 #index.php:31 
     410#index.php:32 
    405411$GLOBALS['__l10n']['Poll period successfully updated'] = 'Dates de sondage mises à jour avec succès'; 
    406412 
    407 #index.php:32 
     413#index.php:33 
    408414$GLOBALS['__l10n']['Poll successfully deleted'] = 'Sondage effacé avec succès'; 
    409415 
    410 #index.php:33 
     416#index.php:34 
    411417$GLOBALS['__l10n']['Queries successfully deleted'] = 'Questions effacées avec succès'; 
    412418 
    413 #index.php:34 
     419#index.php:35 
    414420$GLOBALS['__l10n']['Queries successfully reordered'] = 'Questions réordonnées avec succès'; 
    415421 
    416 #index.php:35 
     422#index.php:36 
    417423$GLOBALS['__l10n']['Query successfully created'] = 'Question créée avec succès'; 
    418424 
    419 #index.php:36 
     425#index.php:37 
    420426$GLOBALS['__l10n']['New query successfully deleted'] = 'Nouvelle question effacer avec succès'; 
    421427 
    422 #index.php:37 
     428#index.php:38 
    423429$GLOBALS['__l10n']['Options successfully deleted'] = 'Options effacées avec succès'; 
    424430 
    425 #index.php:38 
     431#index.php:39 
    426432$GLOBALS['__l10n']['Option successfully created'] = 'Option créée avec succès'; 
    427433 
    428 #index.php:39 
     434#index.php:40 
    429435$GLOBALS['__l10n']['Query successfully completed'] = 'Question complétée avec succès'; 
    430436 
    431 #index.php:40 
     437#index.php:41 
    432438$GLOBALS['__l10n']['Poll successfully completed'] = 'Sondage complété avec succès'; 
    433439 
    434 #index.php:41 
     440#index.php:42 
    435441$GLOBALS['__l10n']['Responses succesfully selected'] = 'Réponses seletionnées avec succès'; 
    436442 
    437 #index.php:53 
     443#index.php:54 
    438444$GLOBALS['__l10n']['Create poll'] = 'Créer un sondage'; 
    439445 
    440 #index.php:54 
     446#index.php:55 
    441447$GLOBALS['__l10n']['Poll results'] = 'Résultats d\'un sondage'; 
    442448 
    443 #index.php:64 
     449#index.php:65 
    444450$GLOBALS['__l10n']['Edit'] = 'Modifier'; 
    445451 
  • plugins/pollsFactory/locales/fr/main.po

    r2102 r2110  
    11# Language: français 
    2 # Module: pollsFactory - 0.1 
    3 # Date: 2010-03-06 15:14:27 
     2# Module: pollsFactory - 0.2.1 
     3# Date: 2010-03-07 11:35:22 
    44# Translated with translater 1.3 
    55 
     
    77msgstr "" 
    88"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" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: 2010-03-06T15:14:27+00:00\n" 
     11"PO-Revision-Date: 2010-03-07T11:35:22+00:00\n" 
    1212"Last-Translator: JC Denis\n" 
    1313"Language-Team: \n" 
     
    1616 
    1717#: _admin.php:18 
    18 #: index.php:71 
     18#: _admin.php:75 
     19#: _admin.php:76 
     20#: _admin.php:77 
     21#: index.php:72 
    1922#: index.php:83 
    20 #: index.php:100 
     23#: index.php:99 
    2124msgid "Polls factory" 
    2225msgstr "Usine à sondages" 
    2326 
    24 #: _admin.php:42 
     27#: _admin.php:44 
    2528msgid "add a poll to this entry" 
    2629msgstr "ajouter un sondage à ce billet" 
    2730 
    28 #: _admin.php:44 
     31#: _admin.php:46 
    2932msgid "add poll" 
    3033msgstr "ajouter un sondage" 
    3134 
    32 #: _admin.php:48 
     35#: _admin.php:50 
    3336msgid "edit poll linked to this entry" 
    3437msgstr "modifier le sondage lié à ce billet" 
    3538 
    36 #: _admin.php:50 
     39#: _admin.php:52 
    3740msgid "edit poll" 
    3841msgstr "modifier le sondage" 
    3942 
    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 
    4944#: inc/index.polls.php:122 
    5045msgid "delete poll" 
    5146msgstr "supprimer le sondage" 
    5247 
    53 #: _admin.php:73 
     48#: _admin.php:76 
    5449msgid "remove poll" 
    5550msgstr "retirer le sondage" 
    5651 
    57 #: _admin.php:74 
     52#: _admin.php:77 
    5853#: inc/index.polls.php:123 
    5954msgid "close poll" 
    6055msgstr "fermer le sondage" 
    6156 
    62 #: _admin.php:96 
     57#: _admin.php:99 
    6358msgid "delete polls related to selected entries" 
    6459msgstr "effacer les sondages liés aux billets selectionnés" 
    6560 
    66 #: _admin.php:99 
     61#: _admin.php:102 
    6762msgid "close polls related to selected entries" 
    6863msgstr "fermer les sondages liés aux billets selectionnés" 
    6964 
    70 #: _admin.php:102 
     65#: _admin.php:105 
    7166msgid "remove polls related to selected entries" 
    7267msgstr "retirer les sondage liés aux billets selectionnés" 
    7368 
    74 #: _admin.php:103 
     69#: _admin.php:106 
    7570msgid "This does not erase poll." 
    7671msgstr "Ceci n'efface pas le sondage." 
    7772 
    78 #: _admin.php:108 
     73#: _admin.php:111 
    7974msgid "There is no poll for selected entries" 
    8075msgstr "Il n'y a pas de sondage pour les billets selectionnés" 
     
    8883msgstr "Sondage" 
    8984 
    90 #: _public.php:288 
     85#: _public.php:293 
    9186msgid "Validate" 
    9287msgstr "Valider" 
    9388 
    94 #: _public.php:355 
     89#: _public.php:359 
     90msgid "no vote" 
     91msgstr "aucun vote" 
     92 
     93#: _public.php:362 
     94msgid "one vote" 
     95msgstr "un vote" 
     96 
     97#: _public.php:365 
    9598#: inc/index.viewpoll.php:140 
    9699msgid "%s votes" 
    97100msgstr "%s votes" 
    98101 
    99 #: _public.php:379 
     102#: _public.php:394 
    100103msgid "Some selected responses:" 
    101104msgstr "Quelques réponses selectionnées :" 
    102105 
    103 #: _public.php:395 
    104 #: _public.php:414 
     106#: _public.php:410 
     107#: _public.php:429 
    105108msgid "This poll ends on %s." 
    106109msgstr "Ce sondage fini le %s." 
    107110 
    108 #: _public.php:396 
     111#: _public.php:411 
    109112msgid "This poll is closed" 
    110113msgstr "Ce sondage est terminer." 
    111114 
    112 #: _public.php:398 
     115#: _public.php:413 
    113116msgid "%s people participated." 
    114117msgstr "%s personnes ont participé." 
    115118 
    116 #: _public.php:412 
     119#: _public.php:427 
    117120msgid "You have already participated to this poll." 
    118121msgstr "Vous avez déjà participez à ce sondage." 
    119122 
    120 #: _public.php:413 
     123#: _public.php:428 
    121124msgid "Please wait the end of this poll to see results." 
    122125msgstr "Merci de patienter la fin du sondage pour voir les résultats." 
     
    124127#: _widgets.php:26 
    125128#: _widgets.php:31 
    126 #: index.php:52 
     129#: index.php:53 
    127130msgid "Polls list" 
    128131msgstr "Liste des sondages" 
     
    310313msgstr "En ligne" 
    311314 
    312 #: inc/index.polls.php:236 
     315#: inc/index.polls.php:122 
     316#: inc/index.polls.php:123 
     317msgid "polls" 
     318msgstr "sondages" 
     319 
     320#: inc/index.polls.php:234 
    313321msgid "Poll status:" 
    314322msgstr "Status du sondage :" 
     
    399407 
    400408#: inc/index.viewpoll.php:67 
    401 #: index.php:51 
     409#: index.php:52 
    402410msgid "Options" 
    403411msgstr "Options" 
     
    526534msgstr "zone de texte" 
    527535 
    528 #: index.php:29 
     536#: index.php:30 
    529537msgid "Configuration successfully saved" 
    530538msgstr "Configuration sauvegardée avec succès" 
    531539 
    532 #: index.php:30 
     540#: index.php:31 
    533541msgid "Poll successfully created" 
    534542msgstr "Sondage crée avec succès" 
    535543 
    536 #: index.php:31 
     544#: index.php:32 
    537545msgid "Poll period successfully updated" 
    538546msgstr "Dates de sondage mises à jour avec succès" 
    539547 
    540 #: index.php:32 
     548#: index.php:33 
    541549msgid "Poll successfully deleted" 
    542550msgstr "Sondage effacé avec succès" 
    543551 
    544 #: index.php:33 
     552#: index.php:34 
    545553msgid "Queries successfully deleted" 
    546554msgstr "Questions effacées avec succès" 
    547555 
    548 #: index.php:34 
     556#: index.php:35 
    549557msgid "Queries successfully reordered" 
    550558msgstr "Questions réordonnées avec succès" 
    551559 
    552 #: index.php:35 
     560#: index.php:36 
    553561msgid "Query successfully created" 
    554562msgstr "Question créée avec succès" 
    555563 
    556 #: index.php:36 
     564#: index.php:37 
    557565msgid "New query successfully deleted" 
    558566msgstr "Nouvelle question effacer avec succès" 
    559567 
    560 #: index.php:37 
     568#: index.php:38 
    561569msgid "Options successfully deleted" 
    562570msgstr "Options effacées avec succès" 
    563571 
    564 #: index.php:38 
     572#: index.php:39 
    565573msgid "Option successfully created" 
    566574msgstr "Option créée avec succès" 
    567575 
    568 #: index.php:39 
     576#: index.php:40 
    569577msgid "Query successfully completed" 
    570578msgstr "Question complétée avec succès" 
    571579 
    572 #: index.php:40 
     580#: index.php:41 
    573581msgid "Poll successfully completed" 
    574582msgstr "Sondage complété avec succès" 
    575583 
    576 #: index.php:41 
     584#: index.php:42 
    577585msgid "Responses succesfully selected" 
    578586msgstr "Réponses seletionnées avec succès" 
    579587 
    580 #: index.php:53 
     588#: index.php:54 
    581589msgid "Create poll" 
    582590msgstr "Créer un sondage" 
    583591 
    584 #: index.php:54 
     592#: index.php:55 
    585593msgid "Poll results" 
    586594msgstr "Résultats d'un sondage" 
    587595 
    588 #: index.php:64 
     596#: index.php:65 
    589597msgid "Edit" 
    590598msgstr "Modifier" 
  • plugins/pollsFactory/release.txt

    r2102 r2110  
    44 * Not added options order 
    55 * Not added readable remain time instead of end date 
     6 
     70.2.2 20100309 
     8 * Fixed plural/singular on nb of votes 
    69 
    7100.2 20100307 
Note: See TracChangeset for help on using the changeset viewer.

Sites map