Dotclear

Changeset 3257 for plugins/topWriter


Ignore:
Timestamp:
11/12/13 18:25:43 (10 years ago)
Author:
JcDenis
Message:

Switch to DC 2.6, add widgets options, clean code

Location:
plugins/topWriter
Files:
2 added
1 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/topWriter/_admin.php

    r2310 r3257  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# 
    34# This file is part of topWriter, a plugin for Dotclear 2. 
    45#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     6# Copyright (c) 2009-2013 Jean-Christian Denis and contributors 
     7# contact@jcdenis.fr http://jcd.lv 
    78#  
    89# Licensed under the GPL version 2.0 license. 
    910# A copy of this license is available in LICENSE file or at 
    1011# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     12# 
    1113# -- END LICENSE BLOCK ------------------------------------ 
    1214 
    13 if (!defined('DC_CONTEXT_ADMIN')) return; 
     15if (!defined('DC_CONTEXT_ADMIN')) { 
     16 
     17     return null; 
     18} 
     19 
    1420require dirname(__FILE__).'/_widgets.php'; 
    15 ?> 
  • plugins/topWriter/_define.php

    r2310 r3257  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# 
    34# This file is part of topWriter, a plugin for Dotclear 2. 
    45#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     6# Copyright (c) 2009-2013 Jean-Christian Denis and contributors 
     7# contact@jcdenis.fr http://jcd.lv 
    78#  
    89# Licensed under the GPL version 2.0 license. 
    910# A copy of this license is available in LICENSE file or at 
    1011# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     12# 
    1113# -- END LICENSE BLOCK ------------------------------------ 
    1214 
    13 if (!defined('DC_RC_PATH')) return; 
    14   
     15if (!defined('DC_RC_PATH')) { 
     16 
     17     return null; 
     18} 
     19 
    1520$this->registerModule( 
    16      /* Name */               "topWriter", 
    17      /* Description*/         "Widgets to list users who write more posts or comments", 
    18      /* Author */             "JC Denis", 
    19      /* Version */            '0.3', 
    20      /* Permissions */        'admin' 
     21     /* Name */ 
     22     "Top writer", 
     23     /* Description*/ 
     24     "Widgets to list users who write more posts or comments", 
     25     /* Author */ 
     26     "Jean-Christian Denis", 
     27     /* Version */ 
     28     '0.4', 
     29     array( 
     30          'permissions' => 'admin', 
     31          'type' => 'plugin', 
     32          'dc_min' => '2.6', 
     33          'support' => 'http://jcd.lv/q=topWriter', 
     34          'details' => 'http://plugins.dotaddict.org/dc2/details/topWriter' 
     35     ) 
    2136); 
    22      /* date */          #20100605 
    23 ?> 
  • plugins/topWriter/_public.php

    r2310 r3257  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# 
    34# This file is part of topWriter, a plugin for Dotclear 2. 
    45#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     6# Copyright (c) 2009-2013 Jean-Christian Denis and contributors 
     7# contact@jcdenis.fr http://jcd.lv 
    78#  
    89# Licensed under the GPL version 2.0 license. 
    910# A copy of this license is available in LICENSE file or at 
    1011# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     12# 
    1113# -- END LICENSE BLOCK ------------------------------------ 
    1214 
    13 if (!defined('DC_RC_PATH')) return; 
     15if (!defined('DC_RC_PATH')) { 
     16 
     17     return null; 
     18} 
     19 
    1420require dirname(__FILE__).'/_widgets.php'; 
    15 ?> 
  • plugins/topWriter/_widgets.php

    r2310 r3257  
    11<?php 
    22# -- BEGIN LICENSE BLOCK ---------------------------------- 
     3# 
    34# This file is part of topWriter, a plugin for Dotclear 2. 
    45#  
    5 # Copyright (c) 2009-2010 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
     6# Copyright (c) 2009-2013 Jean-Christian Denis and contributors 
     7# contact@jcdenis.fr http://jcd.lv 
    78#  
    89# Licensed under the GPL version 2.0 license. 
    910# A copy of this license is available in LICENSE file or at 
    1011# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     12# 
    1113# -- END LICENSE BLOCK ------------------------------------ 
    1214 
    13 if (!defined('DC_RC_PATH')){return;} 
    14  
    15 $core->addBehavior('initWidgets',array('topWriterWidget','init')); 
     15if (!defined('DC_RC_PATH')) { 
     16 
     17     return null; 
     18} 
     19 
     20$core->addBehavior('initWidgets', array('topWriterWidget', 'init')); 
    1621 
    1722class topWriterWidget 
     
    1924     public static function init($w) 
    2025     { 
    21           $w->create('topcom',__('Top comments'), 
    22                array('topWriterWidget','topCom')); 
    23           $w->topcom->setting('title',__('Title:'), 
    24                __('Top comments'),'text'); 
    25           $w->topcom->setting('text',__('Text:'), 
    26                '%author% (%count%)','text'); 
    27           $w->topcom->setting('period',__('Period:'),'year','combo', 
    28                array(__('day')=>'day',__('week')=>'week',__('month')=>'month', 
    29                     __('year')=>'year',__('from begining')=>'')); 
    30           $w->topcom->setting('sort',__('Sort:'),'desc','combo',array( 
    31                __('Ascending') => 'asc',__('Descending') => 'desc')); 
    32           $w->topcom->setting('limit',__('Limit:'),'10','text'); 
    33           $w->topcom->setting('exclude',__('Exclude post writer from list'),0,'check'); 
    34           $w->topcom->setting('homeonly',__('Home page only'),1,'check'); 
    35  
    36           $w->create('toppost',__('Top entries'), 
    37                array('topWriterWidget','topPost')); 
    38           $w->toppost->setting('title',__('Title:'), 
    39                __('Top entries'),'text'); 
    40           $w->toppost->setting('text',__('Text:'), 
    41                '%author% (%count%)','text'); 
    42           $w->toppost->setting('period',__('Period:'),'year','combo', 
    43                array(__('day')=>'day',__('week')=>'week',__('month')=>'month', 
    44                     __('year')=>'year',__('from begining')=>'')); 
    45           $w->toppost->setting('sort',__('Sort:'),'desc','combo',array( 
    46                __('Ascending') => 'asc',__('Descending') => 'desc')); 
    47           $w->toppost->setting('limit',__('Limit:'),'10','text'); 
    48           $w->toppost->setting('homeonly',__('Home page only'),1,'check'); 
     26          $w->create( 
     27               'topcom', 
     28               __('Top comments'), 
     29               array('topWriterWidget', 'topCom'), 
     30               null, 
     31               __('List users who write more posts') 
     32          ); 
     33          $w->topcom->setting( 
     34               'title', 
     35               __('Title:'), 
     36               __('Top comments'), 
     37               'text' 
     38          ); 
     39          $w->topcom->setting( 
     40               'text', 
     41               __('Text:'), 
     42               '%author% (%count%)', 
     43               'text' 
     44          ); 
     45          $w->topcom->setting( 
     46               'period', 
     47               __('Period:'), 
     48               'year', 
     49               'combo', 
     50               array( 
     51                    __('day')           => 'day', 
     52                    __('week')          => 'week', 
     53                    __('month')         => 'month', 
     54                    __('year')          => 'year', 
     55                    __('from begining') => '' 
     56               ) 
     57          ); 
     58          $w->topcom->setting( 
     59               'sort', 
     60               __('Sort:'), 
     61               'desc', 
     62               'combo', 
     63               array( 
     64                    __('Ascending')     => 'asc', 
     65                    __('Descending')    => 'desc' 
     66               ) 
     67          ); 
     68          $w->topcom->setting( 
     69               'limit', 
     70               __('Limit:'), 
     71               '10', 
     72               'text' 
     73          ); 
     74          $w->topcom->setting( 
     75               'exclude', 
     76               __('Exclude post writer from list'), 
     77               0, 
     78               'check' 
     79          ); 
     80          $w->topcom->setting( 
     81               'content_only', 
     82               __('Content only'), 
     83               0, 
     84               'check' 
     85          ); 
     86          $w->topcom->setting( 
     87               'class', 
     88               __('CSS class:'), 
     89               '' 
     90          ); 
     91          $w->topcom->setting( 
     92               'homeonly', 
     93               __('Display on:'), 
     94               1, 
     95               'combo', 
     96               array( 
     97                    __('All pages')               => 0, 
     98                    __('Home page only')          => 1, 
     99                    __('Except on home page')     => 2 
     100               ) 
     101          ); 
     102 
     103          $w->create( 
     104               'toppost', 
     105               __('Top entries'), 
     106               array('topWriterWidget', 'topPost'), 
     107               null, 
     108               __('List users who write more comments') 
     109          ); 
     110          $w->toppost->setting( 
     111               'title', 
     112               __('Title:'), 
     113               __('Top entries'), 
     114               'text' 
     115          ); 
     116          $w->toppost->setting( 
     117               'text', 
     118               __('Text:'), 
     119               '%author% (%count%)', 
     120               'text' 
     121          ); 
     122          $w->toppost->setting( 
     123               'period', 
     124               __('Period:'), 
     125               'year', 
     126               'combo', 
     127               array( 
     128                    __('day')           => 'day', 
     129                    __('week')          => 'week', 
     130                    __('month')         => 'month', 
     131                    __('year')          => 'year', 
     132                    __('from begining') => '' 
     133               ) 
     134          ); 
     135          $w->toppost->setting( 
     136               'sort', 
     137               __('Sort:'),'desc', 
     138               'combo', 
     139               array( 
     140                    __('Ascending')     => 'asc', 
     141                    __('Descending')    => 'desc' 
     142               ) 
     143          ); 
     144          $w->toppost->setting( 
     145               'limit', 
     146               __('Limit:'), 
     147               '10', 
     148               'text' 
     149          ); 
     150          $w->toppost->setting( 
     151               'content_only', 
     152               __('Content only'), 
     153               0, 
     154               'check' 
     155          ); 
     156          $w->toppost->setting( 
     157               'class', 
     158               __('CSS class:'), 
     159               '' 
     160          ); 
     161          $w->toppost->setting( 
     162               'homeonly', 
     163               __('Display on:'), 
     164               1, 
     165               'combo', 
     166               array( 
     167                    __('All pages')               => 0, 
     168                    __('Home page only')          => 1, 
     169                    __('Except on home page')     => 2 
     170               ) 
     171          ); 
    49172     } 
    50173 
     
    52175     { 
    53176          global $core; 
    54            
    55           if ($w->homeonly && $core->url->type != 'default') return; 
    56            
     177 
     178          if ($w->homeonly == 1 && $core->url->type != 'default' 
     179           || $w->homeonly == 2 && $core->url->type == 'default' 
     180          ) { 
     181               return null; 
     182          } 
     183 
    57184          $req = 
    58185          'SELECT COUNT(*) AS count, comment_email '. 
     
    62189          'AND post_status=1 AND comment_status=1 '. 
    63190          self::period('comment_dt',$w->period); 
    64            
    65           if ($w->exclude) 
    66           { 
     191 
     192          if ($w->exclude) { 
    67193               $req .=  
    68194               'AND comment_email NOT IN ('. 
     
    73199               ' GROUP BY U.user_email) '; 
    74200          } 
    75            
     201 
    76202          $req .= 
    77203          'GROUP BY comment_email '. 
    78204          'ORDER BY count '.($w->sort == 'asc' ? 'ASC' : 'DESC').' '. 
    79205          $core->con->limit(abs((integer) $w->limit)); 
    80            
     206 
    81207          $rs = $core->con->select($req); 
    82            
    83           if ($rs->isEmpty()) return; 
    84            
     208 
     209          if ($rs->isEmpty()) { 
     210 
     211               return null; 
     212          } 
     213 
    85214          $content = ''; 
    86215          $i = 0; 
    87           while($rs->fetch()) 
    88           { 
     216          while($rs->fetch()) { 
    89217               $user = $core->con->select( 
    90218                    "SELECT * FROM ".$core->prefix."comment ". 
     
    92220                    'ORDER BY comment_dt DESC' 
    93221               ); 
    94                 
    95                if (!$user->comment_author) continue; 
    96                 
     222 
     223               if (!$user->comment_author) { 
     224                    continue; 
     225               } 
     226 
    97227               $i++; 
    98228               $rank = '<span class="topcomments-rank">'.$i.'</span>'; 
    99                 
    100                if ($user->comment_site) 
    101                { 
     229 
     230               if ($user->comment_site) { 
    102231                    $author = '<a href="'.$user->comment_site.'" title="'. 
    103232                         __('Author link').'">'.$user->comment_author.'</a>'; 
    104233               } 
    105                else 
    106                { 
     234               else { 
    107235                    $author = $user->comment_author; 
    108236               } 
    109237               $author = '<span class="topcomments-author">'.$author.'</span>'; 
    110                 
    111                if ($rs->count == 0) 
    112                { 
     238 
     239               if ($rs->count == 0) { 
    113240                    $count = __('no comment'); 
    114241               } 
    115                elseif ($rs->count == 1) 
    116                { 
    117                     $count = __('one comment'); 
    118                } 
    119                else 
    120                { 
    121                     $count = sprintf(__('%s comments'),$rs->count); 
    122                } 
    123                 
     242               else { 
     243                    $count = sprintf(__('one comment', '%s comments', $rs->count), $rs->count); 
     244               } 
     245 
    124246               $content .= '<li>'.str_replace( 
    125                     array('%rank%','%author%','%count%'), 
    126                     array($rank,$author,$count), 
     247                    array('%rank%', '%author%', '%count%'), 
     248                    array($rank, $author, $count), 
    127249                    $w->text 
    128250               ).'</li>'; 
    129251          } 
    130            
    131           if ($i < 1) return; 
    132            
     252 
     253          if ($i < 1) { 
     254 
     255               return null; 
     256          } 
     257 
    133258          return  
    134           '<div class="topcomments">'. 
     259          ($w->content_only ? '' : '<div class="topcomments'. 
     260          ($w->class ? ' '.html::escapeHTML($w->class) : '').'"">'). 
    135261          ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    136262          '<ul>'.$content.'</ul>'. 
    137           '</div>'; 
     263          ($w->content_only ? '' : '</div>'); 
    138264     } 
    139265      
     
    141267     { 
    142268          global $core; 
    143            
    144           if ($w->homeonly && $core->url->type != 'default') return; 
    145            
     269 
     270          if ($w->homeonly == 1 && $core->url->type != 'default' 
     271           || $w->homeonly == 2 && $core->url->type == 'default' 
     272          ) { 
     273               return null; 
     274          } 
     275 
    146276          $rs = $core->con->select( 
    147277          'SELECT COUNT(*) AS count, U.user_id '. 
     
    154284          'ORDER BY count '.($w->sort == 'asc' ? 'ASC' : 'DESC').', U.user_id ASC '. 
    155285          $core->con->limit(abs((integer) $w->limit))); 
    156            
    157           if ($rs->isEmpty()) return; 
    158            
     286 
     287          if ($rs->isEmpty()) { 
     288 
     289               return null; 
     290          } 
     291 
    159292          $content = ''; 
    160293          $i = 0; 
    161           while($rs->fetch()) 
    162           { 
     294          while($rs->fetch()) { 
    163295               $user = $core->con->select( 
    164296                    "SELECT * FROM ".$core->prefix."user WHERE user_id='".$rs->user_id."' " 
    165297               ); 
    166                 
     298 
    167299               $author = dcUtils::getUserCN($user->user_id,$user->user_name, 
    168300                    $user->user_firstname,$user->user_displayname); 
    169                 
    170                if (empty($author)) continue; 
    171                 
     301 
     302               if (empty($author)) { 
     303                    continue; 
     304               } 
     305 
    172306               $i++; 
    173307               $rank = '<span class="topentries-rank">'.$i.'</span>'; 
    174                 
     308 
    175309               $core->blog->settings->addNamespace('authormode'); 
    176                if ($core->blog->settings->authormode->authormode_active) 
    177                { 
     310               if ($core->blog->settings->authormode->authormode_active) { 
    178311                    $author = '<a href="'. 
    179312                         $core->blog->url.$core->url->getBase("author").'/'.$user->user_id.'" '. 
    180313                         'title="'.__('Author posts').'">'.$author.'</a>'; 
    181314               } 
    182                elseif ($user->user_url) 
    183                { 
     315               elseif ($user->user_url) { 
    184316                    $author = '<a href="'.$user->user_url.'" title="'. 
    185317                         __('Author link').'">'.$author.'</a>'; 
    186318               } 
    187319               $author = '<span class="topentries-author">'.$author.'</span>'; 
    188                 
    189                if ($rs->count == 0) 
    190                { 
     320 
     321               if ($rs->count == 0) { 
    191322                    $count = __('no post'); 
    192323               } 
    193                elseif ($rs->count == 1) 
    194                { 
    195                     $count = __('one post'); 
    196                } 
    197                else 
    198                { 
    199                     $count = sprintf(__('%s posts'),$rs->count); 
    200                } 
    201                 
     324               else { 
     325                    $count = sprintf(__('one post', '%s posts', $rs->count), $rs->count); 
     326               } 
     327 
    202328               $content .= '<li>'.str_replace( 
    203                     array('%rank%','%author%','%count%'), 
    204                     array($rank,$author,$count), 
     329                    array('%rank%', '%author%', '%count%'), 
     330                    array($rank, $author, $count), 
    205331                    $w->text 
    206332               ).'</li>'; 
    207333          } 
    208            
    209           if ($i < 1) return; 
    210            
     334 
     335          if ($i < 1) { 
     336 
     337               return null; 
     338          } 
     339 
    211340          return  
    212           '<div class="topentries">'. 
     341          ($w->content_only ? '' : '<div class="topentries'. 
     342          ($w->class ? ' '.html::escapeHTML($w->class) : '').'"">'). 
    213343          ($w->title ? '<h2>'.html::escapeHTML($w->title).'</h2>' : ''). 
    214344          '<ul>'.$content.'</ul>'. 
    215           '</div>'; 
     345          ($w->content_only ? '' : '</div>'); 
    216346     } 
    217       
     347 
    218348     private static function period($t,$p) 
    219349     { 
    220350          $pat = '%Y-%m-%d %H:%M:%S'; 
    221351          switch($p) { 
    222                case 'day': return 
    223                "AND $t > TIMESTAMP '".dt::str($pat,time() - 3600*24)."' "; break; 
    224                case 'week': return  
    225                "AND $t > TIMESTAMP '".dt::str($pat,time() - 3600*24*7)."' "; break; 
    226                case 'month': return 
    227                "AND $t > TIMESTAMP '".dt::str($pat,time() - 3600*24*30)."' "; break; 
    228                case 'year': return 
    229                "AND $t > TIMESTAMP '".dt::str($pat,time() - 3600*24*30*12)."' "; break; 
    230           } 
     352               case 'day': 
     353 
     354               return 
     355               "AND $t > TIMESTAMP '".dt::str($pat, time() - 3600*24)."' "; 
     356               break; 
     357                
     358               case 'week': 
     359 
     360               return  
     361               "AND $t > TIMESTAMP '".dt::str($pat, time() - 3600*24*7)."' "; 
     362               break; 
     363 
     364               case 'month': 
     365 
     366               return 
     367               "AND $t > TIMESTAMP '".dt::str($pat, time() - 3600*24*30)."' "; 
     368               break; 
     369 
     370               case 'year': 
     371 
     372               return 
     373               "AND $t > TIMESTAMP '".dt::str($pat, time() - 3600*24*30*12)."' "; 
     374               break; 
     375          } 
     376 
    231377          return ''; 
    232378     } 
    233379} 
    234 ?> 
  • plugins/topWriter/locales/fr/main.lang.php

    r1379 r3257  
    11<?php 
    2 // Language: français  
    3 // Module: topWriter - 0.2 
    4 // Date: 2009-08-10 21:13:57  
    5 // Author: JC Denis, jcdenis@gdwd.com 
    6 // Translated with dcTranslater - 0.2.4  
     2// Language: Français  
     3// Module: topWriter - 0.4 
     4// Date: 2013-11-12 17:15:43  
     5// Translated with dcTranslater - 2013.05.11  
    76 
    8 #_widgets.php:24 
     7#_widgets.php:26 
     8#_widgets.php:34 
    99$GLOBALS['__l10n']['Top comments'] = 'Top commentaires'; 
    1010 
    11 #_widgets.php:42 
     11#_widgets.php:29 
     12$GLOBALS['__l10n']['List users who write more posts'] = 'Liste les utilisateurs qui ont écrit le plus de billets'; 
     13 
     14#_widgets.php:45 
     15#_widgets.php:122 
    1216$GLOBALS['__l10n']['Period:'] = 'Période :'; 
    1317 
    14 #_widgets.php:43 
     18#_widgets.php:49 
     19#_widgets.php:126 
    1520$GLOBALS['__l10n']['day'] = 'jour'; 
    1621 
    17 #_widgets.php:43 
     22#_widgets.php:50 
     23#_widgets.php:127 
    1824$GLOBALS['__l10n']['week'] = 'semaine'; 
    1925 
    20 #_widgets.php:43 
     26#_widgets.php:51 
     27#_widgets.php:128 
    2128$GLOBALS['__l10n']['month'] = 'mois'; 
    2229 
    23 #_widgets.php:44 
     30#_widgets.php:52 
     31#_widgets.php:129 
    2432$GLOBALS['__l10n']['year'] = 'année'; 
    2533 
    26 #_widgets.php:44 
     34#_widgets.php:53 
     35#_widgets.php:130 
    2736$GLOBALS['__l10n']['from begining'] = 'depuis le début'; 
    2837 
    29 #_widgets.php:47 
     38#_widgets.php:68 
     39#_widgets.php:144 
    3040$GLOBALS['__l10n']['Limit:'] = 'Limite :'; 
    3141 
    32 #_widgets.php:33 
     42#_widgets.php:74 
    3343$GLOBALS['__l10n']['Exclude post writer from list'] = 'Exclure de la liste les auteurs de billets'; 
    3444 
    35 #_widgets.php:39 
     45#_widgets.php:103 
     46#_widgets.php:111 
    3647$GLOBALS['__l10n']['Top entries'] = 'Top billets'; 
    3748 
    38 #_widgets.php:161 
     49#_widgets.php:106 
     50$GLOBALS['__l10n']['List users who write more comments'] = 'Liste les utilisateurs qui ont écrit le plus de commentaires'; 
     51 
     52#_widgets.php:230 
     53#_widgets.php:318 
    3954$GLOBALS['__l10n']['Author link'] = 'Lien vers l\'auteur'; 
    4055 
    41 #_widgets.php:106 
     56#_widgets.php:244 
    4257$GLOBALS['__l10n']['%s comments'] = '%s commentaires'; 
    4358 
    44 #_widgets.php:157 
     59#_widgets.php:314 
    4560$GLOBALS['__l10n']['Author posts'] = 'Billets de l\'auteur'; 
    4661 
    47 #_widgets.php:165 
     62#_widgets.php:323 
    4863$GLOBALS['__l10n']['no post'] = 'pas de billet'; 
    4964 
    50 #_widgets.php:167 
     65#_widgets.php:326 
    5166$GLOBALS['__l10n']['one post'] = 'un billet'; 
    5267 
    53 #_widgets.php:169 
     68#_widgets.php:329 
    5469$GLOBALS['__l10n']['%s posts'] = '%s billets'; 
    5570 
     71$GLOBALS['__l10n']['Widgets to list users who write more posts or comments'] = 'Widgets de liste des utilisateurs qui ont écrit le plus de billets ou de commentaires'; 
     72 
    5673?> 
  • plugins/topWriter/locales/fr/main.po

    r1379 r3257  
    1 # Language: français 
    2 # Module: topWriter - 0.2 
    3 # Date: 2009-08-10 21:13:57 
    4 # Author: JC Denis, jcdenis@gdwd.com 
    5 # Translated with dcTranslater - 0.2.4 
     1# Language: Français 
     2# Module: topWriter - 0.4 
     3# Date: 2013-11-12 17:15:44 
     4# Translated with translater 2013.05.11 
    65 
    76msgid "" 
    8 msgstr "Content-Type: text/plain; charset=UTF-8\n" 
     7msgstr "" 
     8"Content-Type: text/plain; charset=UTF-8\n" 
     9"Project-Id-Version: topWriter 0.4\n" 
     10"POT-Creation-Date: \n" 
     11"PO-Revision-Date: 2013-11-12T17:15:44+00:00\n" 
     12"Last-Translator: Jean-Christian Denis\n" 
     13"Language-Team: \n" 
     14"MIME-Version: 1.0\n" 
     15"Content-Transfer-Encoding: 8bit\n" 
    916 
    10 #: _widgets.php:24 
     17#: _widgets.php:26 
     18#: _widgets.php:34 
    1119msgid "Top comments" 
    1220msgstr "Top commentaires" 
    1321 
    14 #: _widgets.php:42 
     22#: _widgets.php:29 
     23msgid "List users who write more posts" 
     24msgstr "Liste les utilisateurs qui ont écrit le plus de billets" 
     25 
     26#: _widgets.php:45 
     27#: _widgets.php:122 
    1528msgid "Period:" 
    1629msgstr "Période :" 
    1730 
    18 #: _widgets.php:43 
     31#: _widgets.php:49 
     32#: _widgets.php:126 
    1933msgid "day" 
    2034msgstr "jour" 
    2135 
    22 #: _widgets.php:43 
     36#: _widgets.php:50 
     37#: _widgets.php:127 
    2338msgid "week" 
    2439msgstr "semaine" 
    2540 
    26 #: _widgets.php:43 
     41#: _widgets.php:51 
     42#: _widgets.php:128 
    2743msgid "month" 
    2844msgstr "mois" 
    2945 
    30 #: _widgets.php:44 
     46#: _widgets.php:52 
     47#: _widgets.php:129 
    3148msgid "year" 
    3249msgstr "année" 
    3350 
    34 #: _widgets.php:44 
     51#: _widgets.php:53 
     52#: _widgets.php:130 
    3553msgid "from begining" 
    3654msgstr "depuis le début" 
    3755 
    38 #: _widgets.php:47 
     56#: _widgets.php:68 
     57#: _widgets.php:144 
    3958msgid "Limit:" 
    4059msgstr "Limite :" 
    4160 
    42 #: _widgets.php:33 
     61#: _widgets.php:74 
    4362msgid "Exclude post writer from list" 
    4463msgstr "Exclure de la liste les auteurs de billets" 
    4564 
    46 #: _widgets.php:39 
     65#: _widgets.php:103 
     66#: _widgets.php:111 
    4767msgid "Top entries" 
    4868msgstr "Top billets" 
    4969 
    50 #: _widgets.php:161 
     70#: _widgets.php:106 
     71msgid "List users who write more comments" 
     72msgstr "Liste les utilisateurs qui ont écrit le plus de commentaires" 
     73 
     74#: _widgets.php:230 
     75#: _widgets.php:318 
    5176msgid "Author link" 
    5277msgstr "Lien vers l'auteur" 
    5378 
    54 #: _widgets.php:106 
    55 msgid "%s comments" 
    56 msgstr "%s commentaires" 
     79#: _widgets.php:244 
     80msgid "one comment" 
     81msgid_plural "%s comments" 
     82msgstr[0] "un commentaire" 
     83msgstr[1] "%s commentaires" 
    5784 
    58 #: _widgets.php:157 
     85#: _widgets.php:314 
    5986msgid "Author posts" 
    6087msgstr "Billets de l'auteur" 
    6188 
    62 #: _widgets.php:165 
     89#: _widgets.php:323 
    6390msgid "no post" 
    6491msgstr "pas de billet" 
    6592 
    66 #: _widgets.php:167 
     93#: _widgets.php:326 
    6794msgid "one post" 
    68 msgstr "un billet" 
     95msgid_plural "%s posts" 
     96msgstr[0] "un billet" 
     97msgstr[1] "%s billets" 
    6998 
    70 #: _widgets.php:169 
    71 msgid "%s posts" 
    72 msgstr "%s billets" 
     99msgid "Widgets to list users who write more posts or comments" 
     100msgstr "Widgets de liste des utilisateurs qui ont écrit le plus de billets ou de commentaires" 
    73101 
Note: See TracChangeset for help on using the changeset viewer.

Sites map