Dotclear

Changeset 2336


Ignore:
Timestamp:
06/09/10 01:53:13 (13 years ago)
Author:
JcDenis
Message:

zoneclearFeedServer 0.8:

  • Added option to tweet new post
  • Added option to import tags from feed (or not)
  • Fixed filters on admin list (closes #466)
  • Enhanced lockUpdate() function
Location:
plugins/zoneclearFeedServer
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/zoneclearFeedServer/_define.php

    r2263 r2336  
    1717     /* Description*/         "Mix your blog with a feeds planet", 
    1818     /* Author */             "JC Denis, BG", 
    19      /* Version */            '0.7.2', 
     19     /* Version */            '0.8', 
    2020     /* Permissions */        'admin' 
    2121); 
    22      /* date */          #20100525 
     22     /* date */          #20100608 
    2323?> 
  • plugins/zoneclearFeedServer/_install.php

    r2263 r2336  
    2020try { 
    2121     # Check DC version (dev on) 
    22      if (!version_compare(DC_VERSION,'2.1.6','>=')) 
     22     if (version_compare(DC_VERSION,'2.1.6','<')) 
    2323     { 
    2424          throw new Exception('Plugin called zoneclearFeedServer requires Dotclear 2.1.6 or higher.'); 
     25     } 
     26     if (version_compare(DC_VERSION,'2.2-alpha','>=')) 
     27     { 
     28          throw new Exception('Plugin called zoneclearFeedServer requires Dotclear up to 2.2.'); 
    2529     } 
    2630     if (!$core->plugins->moduleExists('metadata')) 
     
    9397          ->feed_feed ('varchar',255,false) 
    9498          ->feed_tags ('varchar',255,true) 
     99          ->feed_get_tags ('smallint',0,false,1) 
    95100          ->feed_owner ('varchar',255,false) 
     101          ->feed_tweeter ('varchar',64,false) // tweeter ident 
    96102          ->feed_lang ('varchar',5,true) 
    97103          ->feed_nb_out ('integer',0,false,0) 
  • plugins/zoneclearFeedServer/_prepend.php

    r2204 r2336  
    2121$core->url->register('zoneclearFeedsPage','zcfeeds','^zcfeeds(.*?)$',array('zoneclearFeedServerURL','zcFeedsPage')); 
    2222 
     23# Add personal Twitter class 
     24$__autoload['zcfsLibDcTwitter'] = dirname(__FILE__).'/inc/lib.dc.twitter.php'; 
     25//$__autoload['zcfsLibDcTwitterSender'] = dirname(__FILE__).'/inc/lib.dc.twitter.php'; 
     26 
    2327# Add to report on plugin activityReport 
    2428if (defined('ACTIVITY_REPORT')) { 
  • plugins/zoneclearFeedServer/inc/class.zoneclear.feed.server.php

    r2263 r2336  
    3434 
    3535     public static function settings($core,$namespace='zoneclearFeedServer') { 
    36           if (!version_compare(DC_VERSION,'2.1.7','<=')) {  
     36          if (version_compare(DC_VERSION,'2.2-alpha','<')) {  
     37               $core->blog->settings->setNamespace($namespace);  
     38               $s =& $core->blog->settings;  
     39          } else {  
    3740               $core->blog->settings->addNamespace($namespace);  
    3841               $s =& $core->blog->settings->{$namespace};  
    39           } else {  
    40                $core->blog->settings->setNamespace($namespace);  
    41                $s =& $core->blog->settings;  
    4242          } 
    4343          return $s; 
     
    203203               $content_req. 
    204204               'LOWER(Z.feed_name) as lowername, Z.feed_name, Z.feed_desc, '. 
    205                'Z.feed_url, Z.feed_feed, '. 
    206                'Z.feed_tags, Z.feed_owner, Z.feed_lang, '. 
     205               'Z.feed_url, Z.feed_feed, Z.feed_get_tags, '. 
     206               'Z.feed_tags, Z.feed_owner, Z.feed_tweeter, Z.feed_lang, '. 
    207207               'Z.feed_nb_out, Z.feed_nb_in, '. 
    208208               'C.cat_title, C.cat_url, C.cat_desc '; 
     
    276276     public function lockUpdate() 
    277277     { 
    278           # Cache writable ? 
    279           if (!is_writable(DC_TPL_CACHE)) { 
    280                return false; 
    281           } 
    282           # Set file path 
    283           $f_md5 = md5($this->blog); 
    284           $cached_file = sprintf('%s/%s/%s/%s/%s.txt', 
    285                DC_TPL_CACHE, 
    286                'zcfs', 
    287                substr($f_md5,0,2), 
    288                substr($f_md5,2,2), 
    289                $f_md5 
    290           ); 
    291           # Make dir 
    292           if (!is_dir(dirname($cached_file))) { 
    293                try { 
    294                     files::makeDir(dirname($cached_file),true); 
    295                } catch (Exception $e) { 
    296                     return false; 
    297                } 
    298           } 
    299           # Make file 
    300           if (!file_exists($cached_file)) { 
    301                if (!@file_put_contents($cached_file,'')) { 
    302                     return false; 
    303                } 
    304           } 
    305           # Open file 
    306           if (!($fp = @fopen($cached_file, 'wb'))) { 
    307                return false; 
    308           } 
    309           # Lock file 
    310           if (flock($fp,LOCK_EX)) { 
     278          try 
     279          { 
     280               # Need flock function 
     281               if (!function_exists('flock')) { 
     282                    throw New Exception("Can't call php function named flock"); 
     283               } 
     284               # Cache writable ? 
     285               if (!is_writable(DC_TPL_CACHE)) { 
     286                    throw new Exception("Can't write in cache fodler"); 
     287               } 
     288               # Set file path 
     289               $f_md5 = md5($this->blog); 
     290               $cached_file = sprintf('%s/%s/%s/%s/%s.txt', 
     291                    DC_TPL_CACHE, 
     292                    'periodical', 
     293                    substr($f_md5,0,2), 
     294                    substr($f_md5,2,2), 
     295                    $f_md5 
     296               ); 
     297               # Real path 
     298               $cached_file = path::real($cached_file,false); 
     299               # Make dir 
     300               if (!is_dir(dirname($cached_file))) { 
     301                         files::makeDir(dirname($cached_file),true); 
     302               } 
     303               # Make file 
     304               if (!file_exists($cached_file)) { 
     305                    !$fp = @fopen($cached_file, 'w'); 
     306                    if ($fp === false) { 
     307                         throw New Exception("Can't create file"); 
     308                    } 
     309                    fwrite($fp,'1',strlen('1')); 
     310                    fclose($fp); 
     311               } 
     312               # Open file 
     313               if (!($fp = @fopen($cached_file, 'r+'))) { 
     314                    throw New Exception("Can't open file"); 
     315               } 
     316               # Lock file 
     317               if (!flock($fp,LOCK_EX)) { 
     318                    throw New Exception("Can't lock file"); 
     319               } 
    311320               $this->lock = $fp; 
    312321               return true; 
    313322          } 
     323          catch (Exception $e) 
     324          { 
     325               throw $e; 
     326          } 
    314327          return false; 
    315328     } 
     
    325338     { 
    326339          # Limit to one update at a time 
    327           if (!$this->lockUpdate()) { 
     340          try 
     341          { 
     342               $this->lockUpdate(); 
     343          } 
     344          catch (Exception $e) 
     345          { 
    328346               return false; 
    329347          } 
     
    345363          $this->enableUser($s->zoneclearFeedServer_user); 
    346364 
     365          $twitter_msg = zcfsLibDcTwitter::getMessage("zoneclearFeedServer"); 
    347366          $meta = new dcMeta($this->core); 
    348367          $updates = false; 
     
    388407                              $item_TS = $item->TS ? $item->TS : $time; 
    389408                              $item_link = $this->con->escape($item->link); 
     409                              $do_tweet = false; 
    390410 
    391411                              # Not updated since last visit 
     
    398418                              # Check if entry exists 
    399419                              $old_post = $this->con->select( 
    400                                    'SELECT P.post_id '. 
     420                                   'SELECT P.post_id, P.post_status '. 
    401421                                   'FROM '.$this->core->prefix.'post P '. 
    402422                                   'INNER JOIN '.$this->core->prefix.'meta M '. 
     
    429449 
    430450                                        $post_id = $this->core->auth->sudo(array($this->core->blog,'addPost'),$cur_post); 
     451                                         
     452                                        # Auto tweet new post 
     453                                        if ($cur_post->post_status == 1) 
     454                                        { 
     455                                             $do_tweet = true; 
     456                                        } 
    431457                                   } 
    432458                                   # Update entry 
     
    435461                                        $post_id = $old_post->post_id; 
    436462                                        $this->core->auth->sudo(array($this->core->blog,'updPost'),$post_id,$cur_post); 
    437  
     463                                         
     464                                        # Auto tweet updated post 
     465                                        if ($old_post->post_status == 1) 
     466                                        { 
     467                                             //$do_tweet = true; 
     468                                        } 
     469                                         
    438470                                        # Quick delete old meta 
    439471                                        $this->con->execute( 
     
    479511                                   # Add new tags 
    480512                                   $tags = $meta->splitMetaValues($f->feed_tags); 
    481                                    $tags = array_merge($tags,$item->subject); 
    482                                    $tags = array_unique($tags); 
     513                                   if ($f->feed_get_tags) 
     514                                   { 
     515                                        $tags = array_merge($tags,$item->subject); 
     516                                        $tags = array_unique($tags); 
     517                                   } 
    483518                                   foreach ($tags as $tag) 
    484519                                   { 
    485520                                        $this->core->auth->sudo(array($meta,'setPostMeta'),$post_id,'tag',dcMeta::sanitizeMetaID($tag)); 
     521                                   } 
     522                                    
     523                                   # Auto tweet post 
     524                                   if ($do_tweet) 
     525                                   { 
     526                                        $shortposturl = zcfsLibDcTwitterSender::shorten($item->link); 
     527                                        $shortposturl = $shortposturl ? $shortposturl : $item->link; 
     528                                        $shortsiteurl = zcfsLibDcTwitterSender::shorten($f->feed_url); 
     529                                        $shortsiteurl = $shortsiteurl ? $shortsiteurl : $f->feed_url; 
     530                                         
     531                                        $twitter_msg = str_replace( 
     532                                             array('%posttitle%','%postlink%','%postauthor%','%posttweeter%','%sitetitle%','%sitelink%'), 
     533                                             array($cur_post->post_title,$shortposturl,$creator,$f->feed_tweeter,$f->feed_name,$shortsiteurl), 
     534                                             $twitter_msg 
     535                                        ); 
     536                                        if (!empty($twitter_msg)) { 
     537                                             zcfsLibDcTwitter::sendMessage("zoneclearFeedServer",$twitter_msg); 
     538                                        } 
    486539                                   } 
    487540                              } 
     
    545598     { 
    546599          if ( 
    547            (function_exists('filter_var') && !filter_var($url, FILTER_VALIDATE_URL)) 
    548            || false !== strpos($url,'localhost') 
     600           /*(function_exists('filter_var') && !filter_var($url, FILTER_VALIDATE_URL)) // pff http://my-url.com is not valid! 
     601           || */false !== strpos($url,'localhost') 
    549602           || false === strpos($url,'http://') 
    550603           || false !== strpos($url,'http://192.') 
  • plugins/zoneclearFeedServer/inc/index.feed.php

    r2204 r2336  
    133133$feed_desc = ''; 
    134134$feed_owner = ''; 
     135$feed_tweeter = ''; 
    135136$feed_url = ''; 
    136137$feed_feed = ''; 
    137138$feed_lang = $core->auth->getInfo('user_lang'); 
    138139$feed_tags = ''; 
     140$feed_get_tags = '0'; 
    139141$feed_cat_id = ''; 
    140142$feed_status = '0'; 
     
    180182          $feed_desc = $feed->feed_desc; 
    181183          $feed_owner = $feed->feed_owner; 
     184          $feed_tweeter = $feed->feed_tweeter; 
    182185          $feed_url = $feed->feed_url; 
    183186          $feed_feed = $feed->feed_feed; 
    184187          $feed_lang = $feed->feed_lang; 
    185188          $feed_tags = $feed->feed_tags; 
     189          $feed_get_tags = $feed->feed_get_tags; 
    186190          $feed_cat_id = $feed->cat_id; 
    187191          $feed_status = $feed->feed_status; 
     
    221225          $feed_desc = $_POST['feed_desc']; 
    222226          $feed_owner = $_POST['feed_owner']; 
     227          $feed_tweeter = $_POST['feed_tweeter']; 
    223228          $feed_url = $_POST['feed_url']; 
    224229          $feed_feed = $_POST['feed_feed']; 
    225230          $feed_lang = $_POST['feed_lang']; 
    226231          $feed_tags = $_POST['feed_tags']; 
     232          $feed_get_tags = empty($_POST['feed_get_tags']) ? 0 : 1; 
    227233          $feed_cat_id = $_POST['feed_cat_id']; 
    228234          if (isset($_POST['feed_status'])) { 
     
    273279     $cur->feed_desc = $feed_desc; 
    274280     $cur->feed_owner = $feed_owner; 
     281     $cur->feed_tweeter = $feed_tweeter; 
    275282     $cur->feed_url = $feed_url; 
    276283     $cur->feed_feed = $feed_feed; 
    277284     $cur->feed_lang = $feed_lang; 
    278285     $cur->feed_tags = $feed_tags; 
     286     $cur->feed_get_tags = (integer) $feed_get_tags; 
    279287     $cur->cat_id = $feed_cat_id != '' ? (integer) $feed_cat_id : null; 
    280288     $cur->feed_status = (integer) $feed_status; 
     
    600608     form::combo(array('feed_lang'),$combo_langs,$feed_lang,'maximal',5). 
    601609     '</label></p>'. 
     610     '<p><label class="classic">'. 
     611     form::checkbox(array('feed_get_tags'),'1',$feed_get_tags,'',3).' '. 
     612     __('Import tags from feed').'</label></p>'. 
    602613     '</div>'. 
    603614     '<div id="entry-content"><fieldset class="constrained">'. 
     
    608619     '<p><label class="required">'.__('Owner:'). 
    609620     form::field(array('feed_owner'),60,255,$feed_owner,'maximal',2). 
     621     '</label></p>'. 
     622     '<p><label>'.__('Tweeter or Identica ident:'). 
     623     form::field(array('feed_tweeter'),60,64,$feed_tweeter,'maximal',2). 
    610624     '</label></p>'. 
    611625     '<p><label class="required">'.__('Site URL:'). 
     
    645659      
    646660     echo 
    647      '<form action="'.$p_url.'&amp;part=feed&amp;tab=entries&amp;feed_id='.$feed_id.'" method="get" id="filters-form">'. 
     661     '<form action="'.$p_url.'&amp;part=feed" method="get" id="filters-form">'. 
    648662     '<fieldset><legend>'.__('Filters').'</legend>'. 
    649663     '<div class="three-cols">'. 
     
    673687     '<p><label class="classic">'. form::field('nb',3,3,$nb_per_page).' '. 
    674688     __('Entries per page').'</label> '. 
    675      '<input type="submit" value="'.__('filter').'" /></p>'. 
     689     '<input type="submit" value="'.__('filter').'" />'. 
     690     form::hidden(array('p'),'zoneclearFeedServer'). 
     691     form::hidden(array('part'),'feed'). 
     692     form::hidden(array('tab'),'entries'). 
     693     form::hidden(array('feed_id'),$feed_id).'</p>'. 
    676694     '</div>'. 
    677695     '</div>'. 
  • plugins/zoneclearFeedServer/inc/index.setting.php

    r2204 r2336  
    4141          $s->put('zoneclearFeedServer_user',(string) $_POST['feeduser']); 
    4242 
     43          # special auto tweet 
     44          zcfsLibDcTwitter::adminAction("zoneclearFeedServer"); 
     45           
    4346          $core->blog->triggerBlog(); 
    4447 
     
    116119</fieldset> 
    117120 
     121<fieldset id="setting-twitter"><legend>'.__('Twitter').'</legend> 
     122<div class="two-cols"><div class="col">'; 
     123# Special auto tweet 
     124zcfsLibDcTwitter::adminForm("zoneclearFeedServer"); 
     125echo ' 
     126</div><div class="col"> 
     127<ul> 
     128<li>'.__('Send automatically message to tweeter on new post only if status of new post is "pusblished".').'</li> 
     129<li>'.__('Leave empty "ident" to not use this feature.').'</li> 
     130<li>'.__('For message, use wildcard: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%').'</li> 
     131</ul> 
     132</div></div> 
     133</fieldset> 
     134 
    118135<fieldset id="setting-display"><legend>'. __('Display').'</legend> 
    119136<div class="two-cols"><div class="col"> 
  • plugins/zoneclearFeedServer/locales/fr/main.lang.php

    r2204 r2336  
    11<?php 
    22// Language: français  
    3 // Module: zoneclearFeedServer - 0.7 
    4 // Date: 2010-04-22 19:08:39  
     3// Module: zoneclearFeedServer - 0.8.0.1 
     4// Date: 2010-06-08 23:39:55  
    55// Translated with dcTranslater - 1.3  
    66 
    77#_admin.php:20 
    8 #inc/index.feed.php:554 
     8#inc/index.feed.php:562 
    99#inc/index.feeds.php:369 
    10 #inc/index.setting.php:68 
     10#inc/index.setting.php:71 
    1111#index.php:35 
    1212$GLOBALS['__l10n']['Feeds server'] = 'Serveur de flux'; 
     
    9898$GLOBALS['__l10n']['List of feeds'] = 'Liste des flux'; 
    9999 
    100 #inc/class.zoneclear.feed.server.php:581 
     100#inc/class.zoneclear.feed.server.php:634 
    101101$GLOBALS['__l10n']['disabled'] = 'désactivé'; 
    102102 
    103 #inc/class.zoneclear.feed.server.php:582 
     103#inc/class.zoneclear.feed.server.php:635 
    104104$GLOBALS['__l10n']['enabled'] = 'activé'; 
    105105 
    106 #inc/class.zoneclear.feed.server.php:589 
     106#inc/class.zoneclear.feed.server.php:642 
    107107$GLOBALS['__l10n']['every hour'] = 'toutes les heures'; 
    108108 
    109 #inc/class.zoneclear.feed.server.php:590 
     109#inc/class.zoneclear.feed.server.php:643 
    110110$GLOBALS['__l10n']['every two hours'] = 'toutes les deux heures'; 
    111111 
    112 #inc/class.zoneclear.feed.server.php:591 
     112#inc/class.zoneclear.feed.server.php:644 
    113113$GLOBALS['__l10n']['two times per day'] = 'deux fois par jour'; 
    114114 
    115 #inc/class.zoneclear.feed.server.php:592 
     115#inc/class.zoneclear.feed.server.php:645 
    116116$GLOBALS['__l10n']['every day'] = 'tous les jours'; 
    117117 
    118 #inc/class.zoneclear.feed.server.php:593 
     118#inc/class.zoneclear.feed.server.php:646 
    119119$GLOBALS['__l10n']['every two days'] = 'tous les deux jours'; 
    120120 
    121 #inc/class.zoneclear.feed.server.php:594 
     121#inc/class.zoneclear.feed.server.php:647 
    122122$GLOBALS['__l10n']['every week'] = 'toutes les semaines'; 
    123123 
    124 #inc/class.zoneclear.feed.server.php:649 
     124#inc/class.zoneclear.feed.server.php:702 
    125125$GLOBALS['__l10n']['home page'] = 'la page d\'accueil'; 
    126126 
    127 #inc/class.zoneclear.feed.server.php:650 
     127#inc/class.zoneclear.feed.server.php:703 
    128128$GLOBALS['__l10n']['post pages'] = 'la page d\'un billet'; 
    129129 
    130 #inc/class.zoneclear.feed.server.php:651 
     130#inc/class.zoneclear.feed.server.php:704 
    131131$GLOBALS['__l10n']['tags pages'] = 'les pages des tags'; 
    132132 
    133 #inc/class.zoneclear.feed.server.php:652 
     133#inc/class.zoneclear.feed.server.php:705 
    134134$GLOBALS['__l10n']['archives pages'] = 'les pages des archives'; 
    135135 
    136 #inc/class.zoneclear.feed.server.php:653 
     136#inc/class.zoneclear.feed.server.php:706 
    137137$GLOBALS['__l10n']['category pages'] = 'les pages de catégorie'; 
    138138 
    139 #inc/class.zoneclear.feed.server.php:654 
     139#inc/class.zoneclear.feed.server.php:707 
    140140$GLOBALS['__l10n']['entries feed'] = 'le flux des billets'; 
    141141 
    142 #inc/index.feed.php:173 
     142#inc/index.feed.php:175 
    143143$GLOBALS['__l10n']['This feed does not exist.'] = 'Ce flux n\'existe pas.'; 
    144144 
    145 #inc/index.feed.php:203 
     145#inc/index.feed.php:207 
    146146$GLOBALS['__l10n']['next feed'] = 'flux suivant'; 
    147147 
    148 #inc/index.feed.php:210 
     148#inc/index.feed.php:214 
    149149$GLOBALS['__l10n']['previous feed'] = 'flux précédent'; 
    150150 
    151 #inc/index.feed.php:239 
     151#inc/index.feed.php:245 
    152152$GLOBALS['__l10n']['Record with same feed URL already exists.'] = 'Un enregistrement avec la même URL de flux existe déjà.'; 
    153153 
    154 #inc/index.feed.php:243 
     154#inc/index.feed.php:249 
    155155$GLOBALS['__l10n']['You must provide a name.'] = 'Vous devez indiquer un nom.'; 
    156156 
    157 #inc/index.feed.php:247 
     157#inc/index.feed.php:253 
    158158$GLOBALS['__l10n']['You must provide an owner.'] = 'Vous devez indiquer un propriétaire.'; 
    159159 
    160 #inc/index.feed.php:251 
     160#inc/index.feed.php:257 
    161161$GLOBALS['__l10n']['You must provide valid site URL.'] = 'Vous devez donner une URL de site valide.'; 
    162162 
    163 #inc/index.feed.php:255 
     163#inc/index.feed.php:261 
    164164$GLOBALS['__l10n']['You must provide valid feed URL.'] = 'Vous devez donner une URL de flux valide.'; 
    165165 
    166 #inc/index.feed.php:260 
     166#inc/index.feed.php:266 
    167167$GLOBALS['__l10n']['You must provide valid category.'] = 'Vous devez donner une catégorie valide.'; 
    168168 
    169 #inc/index.feed.php:560 
     169#inc/index.feed.php:568 
    170170#inc/index.feeds.php:374 
    171 #inc/index.setting.php:77 
     171#inc/index.setting.php:80 
    172172$GLOBALS['__l10n']['Feeds'] = 'Fils de syndication'; 
    173173 
    174 #inc/index.feed.php:563 
     174#inc/index.feed.php:571 
    175175$GLOBALS['__l10n']['Edit feed'] = 'Edition de flux'; 
    176176 
    177 #inc/index.feed.php:564 
    178 #inc/index.feed.php:567 
     177#inc/index.feed.php:572 
     178#inc/index.feed.php:575 
    179179#inc/index.feeds.php:375 
    180 #inc/index.setting.php:79 
     180#inc/index.setting.php:82 
    181181$GLOBALS['__l10n']['New feed'] = 'Nouveau flux'; 
    182182 
    183 #inc/index.feed.php:586 
     183#inc/index.feed.php:594 
    184184#inc/index.feeds.php:34 
    185185$GLOBALS['__l10n']['Feed'] = 'Flux'; 
    186186 
    187 #inc/index.feed.php:589 
     187#inc/index.feed.php:597 
    188188$GLOBALS['__l10n']['Local settings'] = 'Paramètres locaux'; 
    189189 
    190 #inc/index.feed.php:596 
     190#inc/index.feed.php:604 
    191191$GLOBALS['__l10n']['Update:'] = 'Mise à jour :'; 
    192192 
    193 #inc/index.feed.php:604 
     193#inc/index.feed.php:612 
     194$GLOBALS['__l10n']['Import tags from feed'] = 'Importer les tags depuis le flux'; 
     195 
     196#inc/index.feed.php:615 
    194197$GLOBALS['__l10n']['Feed information'] = 'Information sur le flux'; 
    195198 
    196 #inc/index.feed.php:608 
     199#inc/index.feed.php:619 
    197200$GLOBALS['__l10n']['Owner:'] = 'Propriétaire :'; 
    198201 
    199 #inc/index.feed.php:611 
     202#inc/index.feed.php:622 
     203$GLOBALS['__l10n']['Tweeter or Identica ident:'] = 'Identifiant Twiiter ou Identi.ca :'; 
     204 
     205#inc/index.feed.php:625 
    200206$GLOBALS['__l10n']['Site URL:'] = 'URL du site :'; 
    201207 
     
    261267$GLOBALS['__l10n']['Select a frequency:'] = 'Sélectionner une fréquence :'; 
    262268 
    263 #inc/index.feeds.php:473 
     269#inc/index.feeds.php:477 
    264270$GLOBALS['__l10n']['Selected feeds action:'] = 'Action sur les flux sélectionnés :'; 
    265271 
    266 #inc/index.setting.php:54 
     272#inc/index.setting.php:57 
    267273$GLOBALS['__l10n']['disable'] = 'désactiver'; 
    268274 
    269 #inc/index.setting.php:55 
     275#inc/index.setting.php:58 
    270276$GLOBALS['__l10n']['before display'] = 'avant l\'affichage'; 
    271277 
    272 #inc/index.setting.php:56 
     278#inc/index.setting.php:59 
    273279$GLOBALS['__l10n']['after display'] = 'après l\'affichage'; 
    274280 
    275 #inc/index.setting.php:57 
     281#inc/index.setting.php:60 
    276282$GLOBALS['__l10n']['through Ajax'] = 'A travers Ajax'; 
    277283 
    278 #inc/index.setting.php:78 
     284#inc/index.setting.php:81 
    279285#index.php:33 
    280286$GLOBALS['__l10n']['Settings'] = 'Paramètres'; 
    281287 
    282 #inc/index.setting.php:83 
     288#inc/index.setting.php:86 
    283289$GLOBALS['__l10n']['Plugin activation'] = 'Activation de l\'extension'; 
    284290 
    285 #inc/index.setting.php:86 
     291#inc/index.setting.php:89 
    286292$GLOBALS['__l10n']['Enable plugin'] = 'Activer l\'extension'; 
    287293 
    288 #inc/index.setting.php:89 
     294#inc/index.setting.php:92 
    289295$GLOBALS['__l10n']['General rules'] = 'Réglages'; 
    290296 
    291 #inc/index.setting.php:92 
     297#inc/index.setting.php:95 
    292298$GLOBALS['__l10n']['Status of new posts:'] = 'Status des nouveaux billets :'; 
    293299 
    294 #inc/index.setting.php:95 
     300#inc/index.setting.php:98 
    295301$GLOBALS['__l10n']['Owner of entries created by zoneclearFeedServer:'] = 'Propriétaire des billets créés par zoneclearFeedServer :'; 
    296302 
    297 #inc/index.setting.php:98 
     303#inc/index.setting.php:101 
    298304$GLOBALS['__l10n']['Update feeds on public side:'] = 'Mettre à jour les flux depuis la partie publique :'; 
    299305 
    300 #inc/index.setting.php:101 
     306#inc/index.setting.php:104 
    301307$GLOBALS['__l10n']['Number of feeds to update at one time:'] = 'Nombre de flux à mettre à jour à la fois :'; 
    302308 
    303 #inc/index.setting.php:105 
     309#inc/index.setting.php:108 
    304310$GLOBALS['__l10n']['Enable public page'] = 'Activer la page publique'; 
    305311 
    306 #inc/index.setting.php:109 
     312#inc/index.setting.php:112 
    307313$GLOBALS['__l10n']['A writable cache folder is required to use this extension.'] = 'Un dossier de cache accessible en écriture est nécessaire pour utiliser cette extension.'; 
    308314 
    309 #inc/index.setting.php:110 
     315#inc/index.setting.php:113 
    310316$GLOBALS['__l10n']['If you set a large number of feeds to update at one time, this may cause a timeout error. We recommand to keep it to one.'] = 'Si vous paramètrez un grand nombre de flux à mettre à jour, ceci peut causer une erreur de timeout. Il est recommandé de laisser cette valeur à 1.'; 
    311317 
    312 #inc/index.setting.php:111 
     318#inc/index.setting.php:114 
    313319$GLOBALS['__l10n']['If you use cron script, you can disable public update.'] = 'Si vous utilisez un script cron, vous pouvez désactiver la mise à jour publique.'; 
    314320 
    315 #inc/index.setting.php:112 
     321#inc/index.setting.php:115 
    316322$GLOBALS['__l10n']['If active, a public list of feeds are available at "%s".'] = 'Si activé, une page publique de la liste des flux est disponible à l\'adresse %s .'; 
    317323 
    318 #inc/index.setting.php:113 
     324#inc/index.setting.php:116 
    319325$GLOBALS['__l10n']['In order to do update through Ajax, your theme must have behavior publicHeadContent.'] = 'Pour utiliser la mise à jour depuis Ajax, votre thème doit avoir le behavior publicheadContent.'; 
    320326 
    321 #inc/index.setting.php:118 
     327#inc/index.setting.php:128 
     328$GLOBALS['__l10n']['Send automatically message to tweeter on new post only if status of new post is "pusblished".'] = 'Envoie automatiquement un message a twitter lors d\'jout de billet si le status des nouveaux billets est "publié".'; 
     329 
     330#inc/index.setting.php:129 
     331$GLOBALS['__l10n']['Leave empty "ident" to not use this feature.'] = 'Laisser vide votre identifiant pour ne pas envoyer de tweet.'; 
     332 
     333#inc/index.setting.php:130 
     334$GLOBALS['__l10n']['For message, use wildcard: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%'] = 'Pour le message utiliser les jokers: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%'; 
     335 
     336#inc/index.setting.php:135 
    322337$GLOBALS['__l10n']['Display'] = 'Affichage'; 
    323338 
    324 #inc/index.setting.php:121 
     339#inc/index.setting.php:138 
    325340$GLOBALS['__l10n']['Show full content on:'] = 'Afficher le contenu complet sur :'; 
    326341 
    327 #inc/index.setting.php:132 
     342#inc/index.setting.php:149 
    328343$GLOBALS['__l10n']['Entries title'] = 'Titre des billets'; 
    329344 
    330 #inc/index.setting.php:133 
     345#inc/index.setting.php:150 
    331346$GLOBALS['__l10n']['Redirect to original post on:'] = 'Rediriger vers le billet original sur :'; 
     347 
     348#inc/lib.dc.twitter.php:171 
     349$GLOBALS['__l10n']['Twitter account'] = 'Compte Twitter'; 
     350 
     351#inc/lib.dc.twitter.php:172 
     352#inc/lib.dc.twitter.php:180 
     353$GLOBALS['__l10n']['Login:'] = 'Identifiant :'; 
     354 
     355#inc/lib.dc.twitter.php:178 
     356#inc/lib.dc.twitter.php:186 
     357$GLOBALS['__l10n']['Type a password only to change old one.'] = 'Entrer un mot de passe uniquement pour changer l\'ancien.'; 
     358 
     359#inc/lib.dc.twitter.php:179 
     360$GLOBALS['__l10n']['Identi.ca account'] = 'Compte Identi.ca'; 
     361 
     362#inc/lib.dc.twitter.php:187 
     363$GLOBALS['__l10n']['Message'] = 'Message'; 
     364 
     365#inc/lib.dc.twitter.php:298 
     366$GLOBALS['__l10n']['User is not set.'] = 'L\'utilisateur est pas renseigné.'; 
     367 
     368#inc/lib.dc.twitter.php:306 
     369$GLOBALS['__l10n']['Nothing to send.'] = 'Il n\'y a rien à envoyer.'; 
     370 
     371#inc/lib.dc.twitter.php:330 
     372$GLOBALS['__l10n']['Failed to send message (%s)'] = 'Impossible d\'envoyer le message (%s)'; 
     373 
     374#inc/lib.dc.twitter.php:390 
     375$GLOBALS['__l10n']['Failed to get short url (%s)'] = 'Impossible de récupérer le lien court (%s)'; 
     376 
     377#inc/lib.dc.twitter.php:396 
     378$GLOBALS['__l10n']['Failed to get short url'] = 'Impossible de récupérer le lien court'; 
    332379 
    333380#inc/lib.zoneclear.feed.server.activityreport.php:16 
  • plugins/zoneclearFeedServer/locales/fr/main.po

    r2204 r2336  
    11# Language: français 
    2 # Module: zoneclearFeedServer - 0.7 
    3 # Date: 2010-04-22 19:08:39 
     2# Module: zoneclearFeedServer - 0.8.0.1 
     3# Date: 2010-06-08 23:39:55 
    44# Translated with translater 1.3 
    55 
     
    77msgstr "" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: zoneclearFeedServer 0.7\n" 
     9"Project-Id-Version: zoneclearFeedServer 0.8.0.1\n" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: 2010-04-22T19:08:39+00:00\n" 
     11"PO-Revision-Date: 2010-06-08T23:39:55+00:00\n" 
    1212"Last-Translator: JC Denis\n" 
    1313"Language-Team: \n" 
     
    1616 
    1717#: _admin.php:20 
    18 #: inc/index.feed.php:554 
     18#: inc/index.feed.php:562 
    1919#: inc/index.feeds.php:369 
    20 #: inc/index.setting.php:68 
     20#: inc/index.setting.php:71 
    2121#: index.php:35 
    2222msgid "Feeds server" 
     
    137137msgstr "Liste des flux" 
    138138 
    139 #: inc/class.zoneclear.feed.server.php:581 
     139#: inc/class.zoneclear.feed.server.php:634 
    140140msgid "disabled" 
    141141msgstr "désactivé" 
    142142 
    143 #: inc/class.zoneclear.feed.server.php:582 
     143#: inc/class.zoneclear.feed.server.php:635 
    144144msgid "enabled" 
    145145msgstr "activé" 
    146146 
    147 #: inc/class.zoneclear.feed.server.php:589 
     147#: inc/class.zoneclear.feed.server.php:642 
    148148msgid "every hour" 
    149149msgstr "toutes les heures" 
    150150 
    151 #: inc/class.zoneclear.feed.server.php:590 
     151#: inc/class.zoneclear.feed.server.php:643 
    152152msgid "every two hours" 
    153153msgstr "toutes les deux heures" 
    154154 
    155 #: inc/class.zoneclear.feed.server.php:591 
     155#: inc/class.zoneclear.feed.server.php:644 
    156156msgid "two times per day" 
    157157msgstr "deux fois par jour" 
    158158 
    159 #: inc/class.zoneclear.feed.server.php:592 
     159#: inc/class.zoneclear.feed.server.php:645 
    160160msgid "every day" 
    161161msgstr "tous les jours" 
    162162 
    163 #: inc/class.zoneclear.feed.server.php:593 
     163#: inc/class.zoneclear.feed.server.php:646 
    164164msgid "every two days" 
    165165msgstr "tous les deux jours" 
    166166 
    167 #: inc/class.zoneclear.feed.server.php:594 
     167#: inc/class.zoneclear.feed.server.php:647 
    168168msgid "every week" 
    169169msgstr "toutes les semaines" 
    170170 
    171 #: inc/class.zoneclear.feed.server.php:649 
     171#: inc/class.zoneclear.feed.server.php:702 
    172172msgid "home page" 
    173173msgstr "la page d'accueil" 
    174174 
    175 #: inc/class.zoneclear.feed.server.php:650 
     175#: inc/class.zoneclear.feed.server.php:703 
    176176msgid "post pages" 
    177177msgstr "la page d'un billet" 
    178178 
    179 #: inc/class.zoneclear.feed.server.php:651 
     179#: inc/class.zoneclear.feed.server.php:704 
    180180msgid "tags pages" 
    181181msgstr "les pages des tags" 
    182182 
    183 #: inc/class.zoneclear.feed.server.php:652 
     183#: inc/class.zoneclear.feed.server.php:705 
    184184msgid "archives pages" 
    185185msgstr "les pages des archives" 
    186186 
    187 #: inc/class.zoneclear.feed.server.php:653 
     187#: inc/class.zoneclear.feed.server.php:706 
    188188msgid "category pages" 
    189189msgstr "les pages de catégorie" 
    190190 
    191 #: inc/class.zoneclear.feed.server.php:654 
     191#: inc/class.zoneclear.feed.server.php:707 
    192192msgid "entries feed" 
    193193msgstr "le flux des billets" 
    194194 
    195 #: inc/index.feed.php:173 
     195#: inc/index.feed.php:175 
    196196msgid "This feed does not exist." 
    197197msgstr "Ce flux n'existe pas." 
    198198 
    199 #: inc/index.feed.php:203 
     199#: inc/index.feed.php:207 
    200200msgid "next feed" 
    201201msgstr "flux suivant" 
    202202 
    203 #: inc/index.feed.php:210 
     203#: inc/index.feed.php:214 
    204204msgid "previous feed" 
    205205msgstr "flux précédent" 
    206206 
    207 #: inc/index.feed.php:239 
     207#: inc/index.feed.php:245 
    208208msgid "Record with same feed URL already exists." 
    209209msgstr "Un enregistrement avec la même URL de flux existe déjà." 
    210210 
    211 #: inc/index.feed.php:243 
     211#: inc/index.feed.php:249 
    212212msgid "You must provide a name." 
    213213msgstr "Vous devez indiquer un nom." 
    214214 
    215 #: inc/index.feed.php:247 
     215#: inc/index.feed.php:253 
    216216msgid "You must provide an owner." 
    217217msgstr "Vous devez indiquer un propriétaire." 
    218218 
    219 #: inc/index.feed.php:251 
     219#: inc/index.feed.php:257 
    220220msgid "You must provide valid site URL." 
    221221msgstr "Vous devez donner une URL de site valide." 
    222222 
    223 #: inc/index.feed.php:255 
     223#: inc/index.feed.php:261 
    224224msgid "You must provide valid feed URL." 
    225225msgstr "Vous devez donner une URL de flux valide." 
    226226 
    227 #: inc/index.feed.php:260 
     227#: inc/index.feed.php:266 
    228228msgid "You must provide valid category." 
    229229msgstr "Vous devez donner une catégorie valide." 
    230230 
    231 #: inc/index.feed.php:560 
     231#: inc/index.feed.php:568 
    232232#: inc/index.feeds.php:374 
    233 #: inc/index.setting.php:77 
     233#: inc/index.setting.php:80 
    234234msgid "Feeds" 
    235235msgstr "Fils de syndication" 
    236236 
    237 #: inc/index.feed.php:563 
     237#: inc/index.feed.php:571 
    238238msgid "Edit feed" 
    239239msgstr "Edition de flux" 
    240240 
    241 #: inc/index.feed.php:564 
    242 #: inc/index.feed.php:567 
     241#: inc/index.feed.php:572 
     242#: inc/index.feed.php:575 
    243243#: inc/index.feeds.php:375 
    244 #: inc/index.setting.php:79 
     244#: inc/index.setting.php:82 
    245245msgid "New feed" 
    246246msgstr "Nouveau flux" 
    247247 
    248 #: inc/index.feed.php:586 
     248#: inc/index.feed.php:594 
    249249#: inc/index.feeds.php:34 
    250250msgid "Feed" 
    251251msgstr "Flux" 
    252252 
    253 #: inc/index.feed.php:589 
     253#: inc/index.feed.php:597 
    254254msgid "Local settings" 
    255255msgstr "Paramètres locaux" 
    256256 
    257 #: inc/index.feed.php:596 
     257#: inc/index.feed.php:604 
    258258msgid "Update:" 
    259259msgstr "Mise à jour :" 
    260260 
    261 #: inc/index.feed.php:604 
     261#: inc/index.feed.php:612 
     262msgid "Import tags from feed" 
     263msgstr "Importer les tags depuis le flux" 
     264 
     265#: inc/index.feed.php:615 
    262266msgid "Feed information" 
    263267msgstr "Information sur le flux" 
    264268 
    265 #: inc/index.feed.php:608 
     269#: inc/index.feed.php:619 
    266270msgid "Owner:" 
    267271msgstr "Propriétaire :" 
    268272 
    269 #: inc/index.feed.php:611 
     273#: inc/index.feed.php:622 
     274msgid "Tweeter or Identica ident:" 
     275msgstr "Identifiant Twiiter ou Identi.ca :" 
     276 
     277#: inc/index.feed.php:625 
    270278msgid "Site URL:" 
    271279msgstr "URL du site :" 
     
    352360msgstr "Sélectionner une fréquence :" 
    353361 
    354 #: inc/index.feeds.php:473 
     362#: inc/index.feeds.php:477 
    355363msgid "Selected feeds action:" 
    356364msgstr "Action sur les flux sélectionnés :" 
    357365 
    358 #: inc/index.setting.php:54 
     366#: inc/index.setting.php:57 
    359367msgid "disable" 
    360368msgstr "désactiver" 
    361369 
    362 #: inc/index.setting.php:55 
     370#: inc/index.setting.php:58 
    363371msgid "before display" 
    364372msgstr "avant l'affichage" 
    365373 
    366 #: inc/index.setting.php:56 
     374#: inc/index.setting.php:59 
    367375msgid "after display" 
    368376msgstr "après l'affichage" 
    369377 
    370 #: inc/index.setting.php:57 
     378#: inc/index.setting.php:60 
    371379msgid "through Ajax" 
    372380msgstr "A travers Ajax" 
    373381 
    374 #: inc/index.setting.php:78 
     382#: inc/index.setting.php:81 
    375383#: index.php:33 
    376384msgid "Settings" 
    377385msgstr "Paramètres" 
    378386 
    379 #: inc/index.setting.php:83 
     387#: inc/index.setting.php:86 
    380388msgid "Plugin activation" 
    381389msgstr "Activation de l'extension" 
    382390 
    383 #: inc/index.setting.php:86 
     391#: inc/index.setting.php:89 
    384392msgid "Enable plugin" 
    385393msgstr "Activer l'extension" 
    386394 
    387 #: inc/index.setting.php:89 
     395#: inc/index.setting.php:92 
    388396msgid "General rules" 
    389397msgstr "Réglages" 
    390398 
    391 #: inc/index.setting.php:92 
     399#: inc/index.setting.php:95 
    392400msgid "Status of new posts:" 
    393401msgstr "Status des nouveaux billets :" 
    394402 
    395 #: inc/index.setting.php:95 
     403#: inc/index.setting.php:98 
    396404msgid "Owner of entries created by zoneclearFeedServer:" 
    397405msgstr "Propriétaire des billets créés par zoneclearFeedServer :" 
    398406 
    399 #: inc/index.setting.php:98 
     407#: inc/index.setting.php:101 
    400408msgid "Update feeds on public side:" 
    401409msgstr "Mettre à jour les flux depuis la partie publique :" 
    402410 
    403 #: inc/index.setting.php:101 
     411#: inc/index.setting.php:104 
    404412msgid "Number of feeds to update at one time:" 
    405413msgstr "Nombre de flux à mettre à jour à la fois :" 
    406414 
    407 #: inc/index.setting.php:105 
     415#: inc/index.setting.php:108 
    408416msgid "Enable public page" 
    409417msgstr "Activer la page publique" 
    410418 
    411 #: inc/index.setting.php:109 
     419#: inc/index.setting.php:112 
    412420msgid "A writable cache folder is required to use this extension." 
    413421msgstr "Un dossier de cache accessible en écriture est nécessaire pour utiliser cette extension." 
    414422 
    415 #: inc/index.setting.php:110 
     423#: inc/index.setting.php:113 
    416424msgid "If you set a large number of feeds to update at one time, this may cause a timeout error. We recommand to keep it to one." 
    417425msgstr "Si vous paramètrez un grand nombre de flux à mettre à jour, ceci peut causer une erreur de timeout. Il est recommandé de laisser cette valeur à 1." 
    418426 
    419 #: inc/index.setting.php:111 
     427#: inc/index.setting.php:114 
    420428msgid "If you use cron script, you can disable public update." 
    421429msgstr "Si vous utilisez un script cron, vous pouvez désactiver la mise à jour publique." 
    422430 
    423 #: inc/index.setting.php:112 
     431#: inc/index.setting.php:115 
    424432msgid "If active, a public list of feeds are available at \"%s\"." 
    425433msgstr "Si activé, une page publique de la liste des flux est disponible à l'adresse %s ." 
    426434 
    427 #: inc/index.setting.php:113 
     435#: inc/index.setting.php:116 
    428436msgid "In order to do update through Ajax, your theme must have behavior publicHeadContent." 
    429437msgstr "Pour utiliser la mise à jour depuis Ajax, votre thème doit avoir le behavior publicheadContent." 
    430438 
    431 #: inc/index.setting.php:118 
     439#: inc/index.setting.php:128 
     440msgid "Send automatically message to tweeter on new post only if status of new post is \"pusblished\"." 
     441msgstr "Envoie automatiquement un message a twitter lors d'jout de billet si le status des nouveaux billets est \"publié\"." 
     442 
     443#: inc/index.setting.php:129 
     444msgid "Leave empty \"ident\" to not use this feature." 
     445msgstr "Laisser vide votre identifiant pour ne pas envoyer de tweet." 
     446 
     447#: inc/index.setting.php:130 
     448msgid "For message, use wildcard: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%" 
     449msgstr "Pour le message utiliser les jokers: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%" 
     450 
     451#: inc/index.setting.php:135 
    432452msgid "Display" 
    433453msgstr "Affichage" 
    434454 
    435 #: inc/index.setting.php:121 
     455#: inc/index.setting.php:138 
    436456msgid "Show full content on:" 
    437457msgstr "Afficher le contenu complet sur :" 
    438458 
    439 #: inc/index.setting.php:132 
     459#: inc/index.setting.php:149 
    440460msgid "Entries title" 
    441461msgstr "Titre des billets" 
    442462 
    443 #: inc/index.setting.php:133 
     463#: inc/index.setting.php:150 
    444464msgid "Redirect to original post on:" 
    445465msgstr "Rediriger vers le billet original sur :" 
     466 
     467#: inc/lib.dc.twitter.php:171 
     468msgid "Twitter account" 
     469msgstr "Compte Twitter" 
     470 
     471#: inc/lib.dc.twitter.php:172 
     472#: inc/lib.dc.twitter.php:180 
     473msgid "Login:" 
     474msgstr "Identifiant :" 
     475 
     476#: inc/lib.dc.twitter.php:178 
     477#: inc/lib.dc.twitter.php:186 
     478msgid "Type a password only to change old one." 
     479msgstr "Entrer un mot de passe uniquement pour changer l'ancien." 
     480 
     481#: inc/lib.dc.twitter.php:179 
     482msgid "Identi.ca account" 
     483msgstr "Compte Identi.ca" 
     484 
     485#: inc/lib.dc.twitter.php:187 
     486msgid "Message" 
     487msgstr "Message" 
     488 
     489#: inc/lib.dc.twitter.php:298 
     490msgid "User is not set." 
     491msgstr "L'utilisateur est pas renseigné." 
     492 
     493#: inc/lib.dc.twitter.php:306 
     494msgid "Nothing to send." 
     495msgstr "Il n'y a rien à envoyer." 
     496 
     497#: inc/lib.dc.twitter.php:330 
     498msgid "Failed to send message (%s)" 
     499msgstr "Impossible d'envoyer le message (%s)" 
     500 
     501#: inc/lib.dc.twitter.php:390 
     502msgid "Failed to get short url (%s)" 
     503msgstr "Impossible de récupérer le lien court (%s)" 
     504 
     505#: inc/lib.dc.twitter.php:396 
     506msgid "Failed to get short url" 
     507msgstr "Impossible de récupérer le lien court" 
    446508 
    447509#: inc/lib.zoneclear.feed.server.activityreport.php:16 
  • plugins/zoneclearFeedServer/release.txt

    r2212 r2336  
    11x.x xxxxxxxx 
    22 * Not fixed disallow self blog feeds 
     3 
     40.8 20100608 
     5 * Added auto tweet new post 
     6 * Added option to import tags from feed (or not) 
     7 * Fixed filters on admin list (closes #466) 
     8 * Enhanced lockUpdate() function 
     9 
     100.7.2 20100525 
     11 * Fixed minor bugs 
     12 * Fixed DC 2.1.7 
    313 
    4140.7.1 20100501 
Note: See TracChangeset for help on using the changeset viewer.

Sites map