Dotclear

Changeset 743


Ignore:
Timestamp:
02/04/09 01:49:14 (14 years ago)
Author:
Osku
Message:

Adoption et reprise de tribune libre.

Besoin de tests mais suis confiant :)
Numéro de version réinitialisé à 0.3

Location:
plugins/dctribune
Files:
3 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/dctribune/_admin.php

    r582 r743  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
    21 /* 
    22 if (isset($__dashboard_icons) && $core->auth->check('tribune',$core->blog->id)) { 
    23      $__dashboard_icons[] = array(__('Tribune Libre'),'plugin.php?p=tribune','index.php?pf=tribune/icon.png'); 
    24 } 
    25 */ 
     21if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2622 
    27 $_menu['Plugins']->addItem('Tribune Libre','plugin.php?p=tribune','index.php?pf=tribune/icon-small.png', 
    28                     preg_match('/plugin.php\?p=tribune(&.*)?$/',$_SERVER['REQUEST_URI']), 
    29                     $core->auth->check('usage,contentadmin',$core->blog->id)); 
    30  
    31 $core->auth->setPermissionType('tribune',__('manage tribune')); 
    32  
    33 require dirname(__FILE__).'/_widgets.php'; 
     23$_menu['Plugins']->addItem(__('Free chatbox'), 
     24               'plugin.php?p=dctribune','index.php?pf=dctribune/icon-small.png', 
     25               preg_match('/plugin.php\?p=dctribune(&.*)?$/',$_SERVER['REQUEST_URI']), 
     26               $core->auth->check('usage,contentadmin',$core->blog->id)); 
    3427?> 
  • plugins/dctribune/_define.php

    r582 r743  
    1919# 
    2020# ***** END LICENSE BLOCK ***** 
     21if (!defined('DC_RC_PATH')) { return; } 
     22 
    2123$this->registerModule( 
    22      /* Name */               "Tribune Libre", 
    23      /* Description*/         "Small chat for your blog", 
    24      /* Author */             "Antoine Libert", 
    25      /* Version */            '2.5.2', 
    26      /* Permissions */        'tribune' 
     24     /* Name */               'Tribune Libre', 
     25     /* Description*/         'Small chat for your blog', 
     26     /* Author */             'Antoine Libert, Osku', 
     27     /* Version */            '0.3', 
     28     /* Permissions */        'contentadmin' 
    2729); 
    2830?> 
  • plugins/dctribune/_install.php

    r582 r743  
    2121if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
    2222 
    23 $version = $core->plugins->moduleInfo('tribune','version'); 
     23$version = $core->plugins->moduleInfo('dctribune','version'); 
    2424 
    25 if (version_compare($core->getVersion('tribune'),$version,'>=')) { 
     25if (version_compare($core->getVersion('dctribune'),$version,'>=')) { 
    2626     return; 
    2727} 
     
    4848# Schema installation 
    4949$si = new dbStruct($core->con,$core->prefix); 
    50 $changes = $si->synchronize($s); 
     50$si->synchronize($s); 
    5151 
    52 $core->setVersion('tribune',$version); 
     52$core->setVersion('dctribune',$version); 
    5353return true; 
    5454?> 
  • plugins/dctribune/_public.php

    r582 r743  
    2020# ***** END LICENSE BLOCK ***** 
    2121 
    22 require dirname(__FILE__).'/_widgets.php'; 
    23  
    24 //$core->tpl->addValue('Tribune Libre',array('tpl','tribune')); 
    25 //$core->url->register('tribune','tribune','^tribunepost$',array('urlTribune','tribunepost')); 
    26  
    2722class tplTribune 
    2823{ 
     
    4136          { 
    4237               if ($_GET['msg'] == 1) { 
    43                     $str .= '<h3>'.__('Message added.').'</h3>'; 
     38                    $str .= '<p class="message">'.__('Message added.').'</p>'; 
    4439               } 
    4540               if ($_GET['msg'] == 0) { 
    46                     $str .= '<h3>'.__('Your message cannot be added.').'</h3>'; 
     41                    $str .= '<p class="error">'.__('Your message cannot be added.').'</p>'; 
    4742               } 
    4843          } 
     
    5146          { 
    5247               if ($_GET['off'] == 1) { 
    53                     $str .= '<h3>'.__('Your message has been deleted.').'</h3>'; 
     48                    $str .= '<p class="message">'.__('Your message has been deleted.').'</p>'; 
    5449               } 
    5550               if ($_GET['off'] == 0) { 
    56                     $str .= '<h3>'.__('Your message cannot be deleted.').'</h3>'; 
     51                    $str .= '<p class="error">'.__('Your message cannot be deleted.').'</p>'; 
    5752               } 
    5853          } 
     
    7772                    { 
    7873                         if (date("d",$ts) == date("d",$now)) {  
    79                               $str .= '<h3>'.__('Today').'</h3>';  
     74                              $str .= '<span class="tribunedate">'.__('Today').'</span>';  
    8075                         } else {  
    81                               $str .= sprintf("<h3>%s</h3>",strftime("%d/%m/%y",$ts)); 
     76                              $str .= sprintf("<span class=\"tribunedate\">%s</span>",strftime("%d/%m/%y",$ts)); 
    8277                         } 
    8378                    } 
     
    8782                    # Ajout du lien de suppresion 
    8883                    if (http::realIP() == $rs->f('tribune_ip') AND ($now - $ts) < $deltime) { 
    89                          $del_link = sprintf("<a href=\"?tribdel=%d\" title=\"Supprimer ce message\" rel=\"nofollow\">[off]</a>",$rs->f('tribune_id')); 
     84                         $del_title = __('Delete this post'); 
     85                         $del_link = sprintf("<a href=\"?tribdel=%d\"",$rs->f('tribune_id'),$del_title); 
     86                         $del_link = $del_link. 'class="msgoff " title="'.$del_title.'" rel="nofollow">[x]</a>'; 
    9087                    } else { $del_link = '';} 
    9188                     
     
    104101               } 
    105102          } else { 
    106                $str .= '<h3>'.__('No entry.').'</h3>'; 
     103               $str .= '<p>'.__('No entry.').'</p>'; 
    107104          } 
    108105           
     
    178175     } 
    179176} 
    180 /* 
    181 class urlTribune extends dcUrlHandlers 
    182 { 
    183      public static function tribunepost($args) 
    184   { 
    185     require dirname(__FILE__).'/class.dc.tribune.php'; 
    186      
    187      
    188      } 
    189 } 
    190 */ 
    191177?> 
  • plugins/dctribune/_widgets.php

    r582 r743  
    2121$core->addBehavior('initWidgets',array('tribuneWidgets','initWidgets')); 
    2222$core->addBehavior('initWidgets',array('tribuneWidgets','initFormWidgets')); 
    23 //$core->addBehavior('initDefaultWidgets',array('tribuneWidgets','initDefaultWidgets')); 
    2423 
    2524class tribuneWidgets 
     
    2726     public static function initWidgets(&$w) 
    2827     { 
    29           $w->create('tribunelibre',__('Tribune Libre'),array('tplTribune','tribunelibreWidget')); 
    30           $w->tribunelibre->setting('title',__('Title:'),__('Tribune Libre')); 
     28          $w->create('tribunelibre',__('Free chatbox'),array('tplTribune','tribunelibreWidget')); 
     29          $w->tribunelibre->setting('title',__('Title:'),__('Free chatbox')); 
    3130          $w->tribunelibre->setting('homeonly',__('Home page only'),1,'check'); 
    3231          $w->tribunelibre->setting('deltime',__('Allow deleting messages for (seconds)'),'280'); 
     
    3837     public static function initFormWidgets(&$w) 
    3938     { 
    40           $w->create('tribunelibreform',__('Tribune Libre Form'),array('tplTribune','tribunelibreFormWidget')); 
     39          $w->create('tribunelibreform',__('Free chatbox form'),array('tplTribune','tribunelibreFormWidget')); 
    4140          $w->tribunelibreform->setting('homeonly',__('Home page only'),1,'check'); 
    4241     } 
    43    
    44      /* 
    45      public static function initDefaultWidgets(&$w,&$d) 
    46      { 
    47           $d['extra']->append($w->tribunelibre); 
    48      } 
    49      */ 
    5042} 
    5143?> 
  • plugins/dctribune/class.dc.tribune.php

    r582 r743  
    2020# ***** END LICENSE BLOCK ***** 
    2121// Highly based on blogroll ;-) 
     22if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2223 
    2324class dcTribune 
    2425{ 
    25      private $blog; 
    26      private $con; 
    27      private $table; 
    28       
    29      public function __construct(&$blog) 
     26     private static $blog; 
     27     private static $con; 
     28     private static $table; 
     29 
     30     public static function init(&$blog) 
    3031     { 
    31           $this->blog =& $blog; 
    32           $this->con =& $blog->con; 
    33           $this->table = $this->blog->prefix.'tribune'; 
     32          self::$blog =& $blog; 
     33          self::$con =& $blog->con; 
     34          self::$table = $blog->prefix.'tribune'; 
    3435     } 
    3536      
    36      public function addMsg($nick, $message, $time, $ip, $state=1) 
     37     public static function addMsg($nick, $message, $time, $ip, $state=1) 
    3738     { 
    38      $cur = $this->con->openCursor($this->table); 
     39          $cur = self::$con->openCursor(self::$table); 
    3940           
    40           $cur->blog_id = (string) $this->blog->id; 
     41          $cur->blog_id = (string) self::$blog->id; 
    4142          $cur->tribune_nick = (string) $nick; 
    4243          $cur->tribune_msg = (string) $message; 
     
    5758          } 
    5859           
    59           $strReq = 'SELECT MAX(tribune_id) FROM '.$this->table; 
    60           $rs = $this->con->select($strReq); 
     60          $strReq = 'SELECT MAX(tribune_id) FROM '.self::$table; 
     61          $rs = self::$con->select($strReq); 
    6162          $cur->tribune_id = (integer) $rs->f(0) + 1; 
    6263           
    6364          $cur->insert(); 
    64           $this->blog->triggerBlog(); 
     65          self::$blog->triggerBlog(); 
     66 
    6567          return true; 
    66   } 
     68     } 
    6769 
    68      public function delMsg($id) 
     70     public static function delMsg($id) 
    6971     { 
    70           $strReq = 'DELETE FROM '.$this->table.' '. 
    71                     "WHERE blog_id = '".$this->con->escape($this->blog->id)."' ". 
     72          $strReq = 'DELETE FROM '.self::$table.' '. 
     73                    "WHERE blog_id = '".self::$con->escape(self::$blog->id)."' ". 
    7274                    'AND tribune_id = '.(integer) $id.' '; 
    7375           
    74           $this->con->execute($strReq); 
    75           $this->blog->triggerBlog(); 
     76          self::$con->execute($strReq); 
     77          self::$blog->triggerBlog(); 
    7678     } 
    7779 
    78      public function updateMsg($id, $nick, $message) 
     80     public static function updateMsg($id, $nick, $message) 
    7981     { 
    80           $cur = $this->con->openCursor($this->table); 
     82          $cur = self::$con->openCursor(self::$table); 
    8183           
    8284          $cur->tribune_nick = (string) $nick; 
     
    9294           
    9395          $cur->update('WHERE tribune_id = '.(integer) $id. 
    94                " AND blog_id = '".$this->con->escape($this->blog->id)."'"); 
    95           $this->blog->triggerBlog(); 
     96               " AND blog_id = '".self::$con->escape(self::$blog->id)."'"); 
     97          self::$blog->triggerBlog(); 
    9698     } 
    9799   
    98      public function changeState($id, $state, $check=false, $time, $deltime, $ip) 
     100     public static function changeState($id, $state, $check=false, $time, $deltime, $ip) 
    99101     { 
    100102          if ($check) { 
    101                $strReq = 'SELECT tribune_id FROM '.$this->table." WHERE tribune_dt > '".(string) date('Y-m-d H:i',$time - $deltime)."' AND tribune_ip = '".(string) $this->con->escape($ip)."' AND tribune_id = '".(integer) $_GET['tribdel']."' ORDER BY tribune_id DESC"; 
    102                $strReq .= $this->con->limit(1); 
    103                $rs = $this->con->select($strReq); 
    104                $rs = $rs->toStatic(); 
     103               $strReq = 'SELECT tribune_id FROM '.self::$table." WHERE tribune_dt > '".(string) date('Y-m-d H:i',$time - $deltime)."' AND tribune_ip = '".(string) self::$con->escape($ip)."' AND tribune_id = '".(integer) $_GET['tribdel']."' ORDER BY tribune_id DESC"; 
     104               $strReq .= self::$con->limit(1); 
     105               $rs = self::$con->select($strReq); 
     106      
    105107                
    106108               if (empty($rs)) 
     
    108110          } 
    109111      
    110           $cur = $this->con->openCursor($this->table); 
     112          $cur = self::$con->openCursor(self::$table); 
    111113           
    112114          $cur->tribune_state = (string) $state; 
    113115                
    114116          $cur->update('WHERE tribune_id = '.(integer) $id. 
    115                " AND blog_id = '".$this->con->escape($this->blog->id)."'"); 
    116           $this->blog->triggerBlog(); 
     117               " AND blog_id = '".self::$con->escape(self::$blog->id)."'"); 
     118          self::$blog->triggerBlog(); 
    117119          return true; 
    118120     } 
    119121      
    120      public function getMsg($limit, $orderasc=false, $mode=1) 
     122     public static function getMsg($limit, $orderasc=false, $mode=1) 
    121123     { 
    122           $strReq = 'SELECT *'; 
    123            
    124           $strReq .= ' FROM '.$this->table. 
    125                " WHERE blog_id = '".$this->con->escape($this->blog->id)."'"; 
     124          $strReq =  
     125               'SELECT * '. 
     126               'FROM '.self::$table.' '. 
     127               "WHERE blog_id = '".self::$con->escape(self::$blog->id)."'"; 
    126128           
    127129          if ($mode == 1) { 
     
    132134               $strReq .= ' AND tribune_state IS NOT NULL'; 
    133135          } 
     136 
     137          if ($orderasc) { 
     138               $strReq .= ' ORDER BY tribune_id ASC'; 
     139          } 
     140          else { 
     141               $strReq .= ' ORDER BY tribune_id DESC'; 
     142          } 
     143 
     144          $strReq .= ($limit > 0) ? self::$con->limit($limit) : null; 
    134145           
    135           $strReq .= ' ORDER BY tribune_id DESC'; 
    136           $strReq .= ($limit > 0) ? $this->con->limit($limit) : null; 
     146          $rs = self::$con->select($strReq); 
     147          $rs = $rs->toStatic(); 
    137148           
    138           $rs = $this->con->select($strReq); 
    139           $rs = $rs->toStatic(); 
    140                      
    141           if ($orderasc) { 
    142                $rs->sort('tribune_time','asc'); 
    143           } 
     149 
     150          return $rs; 
     151     } 
     152      
     153     public static function getOneMsg($id) 
     154     { 
     155          # On récupère une seule ligne 
     156          $strReq = 'SELECT tribune_id, tribune_nick, tribune_msg FROM '.self::$table." WHERE tribune_id = '".(integer) $id."'"; 
     157           
     158          $rs = self::$con->select($strReq); 
     159 
    144160           
    145161          return $rs; 
    146162     } 
    147163      
    148      public function getOneMsg($id) 
    149      { 
    150           # On récupère une seule ligne 
    151           $strReq = 'SELECT tribune_id, tribune_nick, tribune_msg FROM '.$this->table." WHERE tribune_id = '".(integer) $id."'"; 
    152            
    153           $rs = $this->con->select($strReq); 
    154           $rs = $rs->toStatic(); 
    155            
    156           return $rs; 
    157      } 
    158       
    159      public function cleanMsg($msg,$chcut) 
     164     public static function cleanMsg($msg,$chcut) 
    160165     { 
    161166          # Nettoyage 
  • plugins/dctribune/edit.php

    r582 r743  
    2525 
    2626try { 
    27      $rs = $tribune->getOneMsg($id); 
     27     $rs = dcTribune::getOneMsg($id); 
    2828} catch (Exception $e) { 
    2929     $core->error->add($e->getMessage()); 
     
    4343      
    4444     try { 
    45           $tribune->updateMsg($id,$tribune_nick,$tribune_msg); 
     45          dcTribune::updateMsg($id,$tribune_nick,$tribune_msg); 
    4646          http::redirect($p_url.'&edit=1&id='.$id.'&upd=1'); 
    4747     } catch (Exception $e) { 
     
    5656 
    5757<body> 
    58 <?php echo '<p><a href="'.$p_url.'">'.__('Return to Tribune Libre').'</a></p>'; 
     58<?php echo '<p><a class="back" "href="'.$p_url.'">'.__('Return to Tribune Libre').'</a></p>'; 
    5959 
    6060if (isset($rs)) 
     
    7272      
    7373          '<p><label class="required" title="'.__('Required field').'">'.__('Message:').' '. 
    74           form::field('tribune_msg',30,255,html::escapeHTML($tribune_msg)).'</label></p>'. 
     74          form::field('tribune_msg',100,255,html::escapeHTML($tribune_msg)).'</label></p>'. 
    7575      
    7676          '<p>'.form::hidden('p','tribune'). 
  • plugins/dctribune/index.php

    r582 r743  
    2020# ***** END LICENSE BLOCK ***** 
    2121 
    22 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
    23  
    24 require dirname(__FILE__).'/class.dc.tribune.php'; 
    25  
    26 $tribune = new dcTribune($core->blog); 
     22if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    2723 
    2824if (!empty($_REQUEST['edit']) && !empty($_REQUEST['id'])) { 
     
    5147          { 
    5248               try { 
    53                     $tribune->changeState($v, $status); 
     49                    dcTribune::changeState($v, $status); 
    5450               } catch (Exception $e) { 
    5551                    $core->error->add($e->getMessage()); 
     
    6763          { 
    6864               try { 
    69                     $tribune->delMsg($v); 
     65                    dcTribune::delMsg($v); 
    7066               } catch (Exception $e) { 
    7167                    $core->error->add($e->getMessage()); 
     
    8884 
    8985     try { 
    90           $tribune->addMsg($tribune_nick,$tribune_msg,$now + $offset,http::realIP()); 
     86          dcTribune::addMsg($tribune_nick,$tribune_msg,$now + $offset,http::realIP()); 
    9187          http::redirect($p_url.'&addmsg=1'); 
    9288     } catch (Exception $e) { 
     
    9793 
    9894try { 
    99      $rs = $tribune->getMsg(0,false,3); 
     95     $rs = dcTribune::getMsg(0,false,3); 
    10096} catch (Exception $e) { 
    10197     $core->error->add($e->getMessage()); 
     
    110106 
    111107<body> 
    112 <h2><?php echo html::escapeHTML($core->blog->name); ?> &gt; Tribune Libre</h2> 
     108<h2><?php echo html::escapeHTML($core->blog->name); ?> &rsaquo; <?php echo __('Free chatbox'); ?></h2> 
    113109 
    114110<?php 
     
    137133               <thead> 
    138134                    <tr> 
    139                          <th><?php echo __('Selection'); ?></th> 
    140                          <th><?php echo __('Message'); ?></th> 
     135                         <th colspan="2"><?php echo __('Message'); ?></th> 
     136                         <th><?php echo __('Date'); ?></th> 
    141137                         <th><?php echo __('Nick'); ?></th> 
    142                          <th><?php echo __('Date'); ?></th> 
    143138                         <th><?php echo __('IP'); ?></th> 
    144139                         <th><?php echo __('Status'); ?></th> 
     
    163158          '<td><a href="'.$p_url.'&amp;edit=1&amp;id='.$rs->tribune_id.'">'. 
    164159          html::escapeHTML($rs->tribune_msg).'</a></td>'. 
     160          '<td>'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->tribune_dt).'</td>'. 
    165161          '<td>'.html::escapeHTML($rs->tribune_nick).'</td>'. 
    166           '<td>'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->tribune_dt).'</td>'. 
    167162          '<td>'.html::escapeHTML($rs->tribune_ip).'</td>'. 
    168163          '<td class="nowrap status">'.$status.'</td>'. 
     
    177172               <p class="col checkboxes-helpers"></p> 
    178173<?php echo 
    179           '<p class="col right">'.__('Selected comments action:').' '. 
     174          '<p class="col right">'.__('Selected messages action:').' '. 
    180175          form::hidden(array('p'),'tribune'). 
    181176          form::combo('actiontribune',$combo_action). 
     
    191186     '<div class="multi-part" id="add-message" title="'.__('Add a new message').'">'. 
    192187     '<form action="plugin.php" method="post" id="add-message-form">'. 
    193      '<fieldset><legend>'.__('Votre message').'</legend>'. 
     188     '<fieldset><legend>'.__('Your message').'</legend>'. 
    194189     '<p><label class=" classic required" title="'.__('Required field').'">'.__('Nick:').' '. 
    195190     form::field('tribune_nick',30,255,$core->auth->getInfo('user_displayname'),'',7).'</label></p>'. 
    196191      
    197192     '<p><label class=" classic required" title="'.__('Required field').'">'.__('Message:').' '. 
    198      form::field('tribune_msg',30,255,'','',7).'</label></p>'. 
     193     form::field('tribune_msg',100,255,'','',7).'</label></p>'. 
    199194      
    200195     '<p>'.form::hidden(array('p'),'tribune'). 
  • plugins/dctribune/locales/fr/main.po

    r582 r743  
     1# French translations for PACKAGE package. 
     2# Copyright (C) 2009 THE PACKAGE'S COPYRIGHT HOLDER 
     3# This file is distributed under the same license as the PACKAGE package. 
     4# Greg <popech@gmail.com>, 2009. 
     5# 
    16msgid "" 
    27msgstr "" 
    3 "Project-Id-Version: Tribune Libre\n" 
    4 "POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2007-08-05 14:46+0100\n" 
    6 "Last-Translator: Antoine Libert <aen0rphe@gmail.com>\n" 
    7 "Language-Team: Antoine Libert <aen0rphe@gmail.com>\n" 
     8"Project-Id-Version: PACKAGE VERSION\n" 
     9"Report-Msgid-Bugs-To: \n" 
     10"POT-Creation-Date: 2009-02-04 01:26+0100\n" 
     11"PO-Revision-Date: 2009-02-04 01:26+0100\n" 
     12"Last-Translator: Greg <popech@gmail.com>\n" 
     13"Language-Team: French\n" 
    814"MIME-Version: 1.0\n" 
    9 "Content-Type: text/plain; charset=utf-8\n" 
     15"Content-Type: text/plain; charset=ASCII\n" 
    1016"Content-Transfer-Encoding: 8bit\n" 
    11 "X-Poedit-Language: French\n" 
    12 "X-Poedit-Country: FRANCE\n" 
    13  
    14 #: _admin.php:31 
    15 msgid "manage tribune" 
    16 msgstr "configurer tribune" 
    17  
    18 #: _public.php:43 
    19 #: index.php:120 
    20 msgid "Message added." 
    21 msgstr "Message ajouté." 
    22  
    23 #: _public.php:46 
    24 msgid "Your message cannot be added." 
    25 msgstr "Votre message n'a pas pu être ajouté." 
    26  
    27 #: _public.php:53 
    28 msgid "Your message has been deleted." 
    29 msgstr "Votre message a été mis en hors ligne." 
    30  
    31 #: _public.php:56 
    32 msgid "Your message cannot be deleted." 
    33 msgstr "Votre message n'a pas pu être mis hors ligne." 
    34  
    35 #: _public.php:79 
    36 msgid "Today" 
    37 msgstr "Aujourd'hui" 
    38  
    39 #: _public.php:106 
    40 msgid "No entry." 
    41 msgstr "Aucune entrée." 
    42  
    43 #: _public.php:110 
    44 #: _public.php:166 
    45 msgid "Your nick" 
    46 msgstr "Votre pseudo" 
    47  
    48 #: _public.php:110 
    49 #: _public.php:167 
    50 msgid "Your message" 
    51 msgstr "Votre message" 
    52  
    53 #: _widgets.php:29 
    54 #: _widgets.php:30 
    55 #: index.php:134 
    56 msgid "Tribune Libre" 
    57 msgstr "Tribune Libre" 
    58  
    59 #: _widgets.php:30 
    60 msgid "Title:" 
    61 msgstr "Titre :" 
    62  
    63 #: _widgets.php:31 
    64 #: _widgets.php:41 
    65 msgid "Home page only" 
    66 msgstr "Page d'accueil seulement" 
    67  
    68 #: _widgets.php:32 
    69 msgid "Allow deleting messages for (seconds)" 
    70 msgstr "Autoriser la mise hors ligne des messages pendant (secondes)" 
    71  
    72 #: _widgets.php:33 
    73 msgid "Number of posts to show" 
    74 msgstr "Nombre de messages à afficher" 
    75  
    76 #: _widgets.php:34 
    77 msgid "Number of caracters before wordwrap" 
    78 msgstr "Nombre de caractères avant tronquage" 
    79  
    80 #: _widgets.php:35 
    81 msgid "Revert the order" 
    82 msgstr "Inverser l'ordre d'affichage" 
    83  
    84 #: _widgets.php:40 
    85 msgid "Tribune Libre Form" 
    86 msgstr "Formulaire Tribune Libre" 
    87  
    88 #: class.dc.tribune.php:48 
    89 #: class.dc.tribune.php:87 
     17"Plural-Forms: nplurals=2; plural=(n > 1);\n" 
     18 
     19#: _admin.php:23 index.php:108 _widgets.php:28 _widgets.php:29 
     20msgid "Free chatbox" 
     21msgstr "Tribune libre" 
     22 
     23#: class.dc.tribune.php:49 class.dc.tribune.php:88 
    9024msgid "You must provide a nick" 
    9125msgstr "Vous devez écrire un pseudo" 
    9226 
    93 #: class.dc.tribune.php:52 
    94 #: class.dc.tribune.php:91 
     27#: class.dc.tribune.php:53 class.dc.tribune.php:92 
    9528msgid "You must provide a message" 
    9629msgstr "Vous devez écrire un message" 
    9730 
    98 #: class.dc.tribune.php:56 
     31#: class.dc.tribune.php:57 
    9932msgid "You must provide a ip" 
    10033msgstr "Vous devez donner une IP (bug)" 
     
    11043#: edit.php:63 
    11144msgid "Message has been successfully updated" 
    112 msgstr "Le message a été mis à jour." 
     45msgstr "Le message a été mis à jour" 
    11346 
    11447#: edit.php:68 
     
    11649msgstr "Modifier le message" 
    11750 
    118 #: edit.php:70 
    119 #: edit.php:73 
    120 #: index.php:193 
    121 #: index.php:196 
     51#: edit.php:70 edit.php:73 index.php:189 index.php:192 
    12252msgid "Required field" 
    12353msgstr "Champ obligatoire" 
    12454 
    125 #: edit.php:70 
    126 #: index.php:193 
     55#: edit.php:70 index.php:189 
    12756msgid "Nick:" 
    128 msgstr "Pseudo :" 
    129  
    130 #: edit.php:73 
    131 #: index.php:196 
     57msgstr "Pseudo: " 
     58 
     59#: edit.php:73 index.php:192 
    13260msgid "Message:" 
    133 msgstr "Message :" 
    134  
    135 #: edit.php:80 
    136 #: index.php:201 
     61msgstr "Message:" 
     62 
     63#: edit.php:80 index.php:197 
    13764msgid "save" 
    138 msgstr "sauvegarder" 
    139  
    140 #: index.php:35 
     65msgstr "enregistrer" 
     66 
     67#: index.php:31 
    14168msgid "publish" 
    14269msgstr "publier" 
    14370 
    144 #: index.php:36 
     71#: index.php:32 
    14572msgid "unpublish" 
    14673msgstr "hors ligne" 
    14774 
    148 #: index.php:37 
     75#: index.php:33 
    14976msgid "delete" 
    15077msgstr "supprimer" 
    15178 
    152 #: index.php:116 
     79#: index.php:112 
    15380msgid "Message(s) deleted." 
    15481msgstr "Message(s) supprimé(s)." 
    15582 
    156 #: index.php:125 
     83#: index.php:116 _public.php:38 
     84msgid "Message added." 
     85msgstr "Message ajouté." 
     86 
     87#: index.php:121 
    15788msgid "Message(s) selected offline." 
    158 msgstr "Message(s) sélectionné(s) hors ligne(s)." 
     89msgstr "Message(s) sélectionné(s) hors ligne." 
     90 
     91#: index.php:123 
     92msgid "Message(s) selected online." 
     93msgstr "Message(s) sélectionné(s) en ligne." 
    15994 
    16095#: index.php:127 
    161 msgid "Message(s) selected online." 
    162 msgstr "Message(s) sélectionné(s) en ligne(s)." 
    163  
    164 #: index.php:131 
    16596msgid "Database cleaned up." 
    166 msgstr "Base de données néttoyé." 
    167  
    168 #: index.php:139 
    169 msgid "Selection" 
    170 msgstr "Sélection" 
    171  
    172 #: index.php:140 
     97msgstr "Base de données néttoyé" 
     98 
     99#: index.php:130 
     100msgid "Tribune Libre" 
     101msgstr "Tribune Libre" 
     102 
     103#: index.php:135 
    173104msgid "Message" 
    174105msgstr "Message" 
    175106 
    176 #: index.php:141 
     107#: index.php:136 
     108msgid "Date" 
     109msgstr "Date" 
     110 
     111#: index.php:137 
    177112msgid "Nick" 
    178113msgstr "Pseudo" 
    179114 
    180 #: index.php:142 
    181 msgid "Date" 
    182 msgstr "Date" 
    183  
    184 #: index.php:143 
     115#: index.php:138 
    185116msgid "IP" 
    186117msgstr "IP" 
    187118 
    188 #: index.php:144 
     119#: index.php:139 
    189120msgid "Status" 
    190121msgstr "État" 
    191122 
     123#: index.php:148 
     124msgid "unpublished" 
     125msgstr "" 
     126 
    192127#: index.php:153 
    193 msgid "unpublished" 
     128msgid "published" 
    194129msgstr "hors ligne" 
    195130 
    196 #: index.php:158 
    197 msgid "published" 
    198 msgstr "publié" 
    199  
    200 #: index.php:166 
     131#: index.php:160 
    201132msgid "%Y-%m-%d %H:%M" 
    202133msgstr "%Y-%m-%d %H:%M" 
    203134 
    204 #: index.php:177 
    205 msgid "Selected comments action:" 
    206 msgstr "Action sur les commentaires sélectionnés :" 
    207  
    208 #: index.php:181 
     135#: index.php:174 
     136msgid "Selected messages action:" 
     137msgstr "Action sur les messages sélectionnés:" 
     138 
     139#: index.php:178 
    209140msgid "ok" 
    210141msgstr "ok" 
    211142 
    212 #: index.php:190 
     143#: index.php:186 
    213144msgid "Add a new message" 
    214 msgstr "Ajouter un nouveau message" 
    215  
    216 #: index.php:192 
    217 msgid "Votre message" 
     145msgstr "" 
     146 
     147#: index.php:188 
     148msgid "Your message" 
    218149msgstr "Votre message" 
    219150 
     151#: _public.php:41 
     152msgid "Your message cannot be added." 
     153msgstr "Votre message n'a pas pu être ajouté" 
     154 
     155#: _public.php:48 
     156msgid "Your message has been deleted." 
     157msgstr "Votre message a été mis en hors ligne." 
     158 
     159#: _public.php:51 
     160msgid "Your message cannot be deleted." 
     161msgstr "Votre message n'a pas pu être mis hors ligne." 
     162 
     163#: _public.php:74 
     164msgid "Today" 
     165msgstr "Aujourd'hui" 
     166 
     167#: _public.php:84 
     168msgid "Delete this post" 
     169msgstr "Effacer ce message" 
     170 
     171#: _public.php:103 
     172msgid "No entry." 
     173msgstr "Aucun message" 
     174 
     175#: _public.php:107 _public.php:163 
     176msgid "Your nick" 
     177msgstr "Votre pseudo" 
     178 
     179#: _public.php:107 _public.php:164 
     180msgid "Your message" 
     181msgstr "Votre message" 
     182 
     183#: _widgets.php:29 
     184msgid "Title:" 
     185msgstr "Titre:" 
     186 
     187#: _widgets.php:30 _widgets.php:40 
     188msgid "Home page only" 
     189msgstr "Page d'accueil seulement" 
     190 
     191#: _widgets.php:31 
     192msgid "Allow deleting messages for (seconds)" 
     193msgstr "" 
     194 
     195#: _widgets.php:32 
     196msgid "Number of posts to show" 
     197msgstr "Nombre de messages à afficher" 
     198 
     199#: _widgets.php:33 
     200msgid "Number of caracters before wordwrap" 
     201msgstr "Nombre de caractères avant tronquage" 
     202 
     203#: _widgets.php:34 
     204msgid "Revert the order" 
     205msgstr "Inverser l'ordre d'affichage" 
     206 
     207#: _widgets.php:39 
     208msgid "Free chatbox form" 
     209msgstr "Formulaire Tribune Libre" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map