Dotclear

Changeset 2632


Ignore:
Timestamp:
09/09/10 01:00:16 (13 years ago)
Author:
JcDenis
Message:

zoneclearFeedServer 1.1

  • Removed old Twitter functions
  • Added StatusNet? small functions (Identica)
  • Required plugin Tac for Twitter ability
Location:
plugins/zoneclearFeedServer
Files:
1 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • plugins/zoneclearFeedServer/_define.php

    r2403 r2632  
    1717     /* Description*/         "Mix your blog with a feeds planet", 
    1818     /* Author */             "JC Denis, BG", 
    19      /* Version */            '1.0', 
     19     /* Version */            '1.1', 
    2020     /* Permissions */        'admin' 
    2121); 
    22      /* date */          #20100627 
     22     /* date */          #20100908 
    2323?> 
  • plugins/zoneclearFeedServer/_install.php

    r2403 r2632  
    118118     $s->put('zoneclearFeedServer_post_title_redir',serialize(array('feed')),'string','List of templates types for redirection to original post',false,true); 
    119119      
     120     $s->put('zoneclearFeedServer_identica_login','','string','Identica user login',false,true); 
     121     $s->put('zoneclearFeedServer_identica_pass','','string','Identica user password',false,true); 
     122     $s->put('zoneclearFeedServer_identica_default_message','','string','Identica default message',false,true); 
     123     $s->put('zoneclearFeedServer_twitter_default_message','','string','Twitter default message',false,true); 
     124      
    120125     # Version 
    121126     $core->setVersion('zoneclearFeedServer',$new_version); 
  • plugins/zoneclearFeedServer/_prepend.php

    r2403 r2632  
    2525$core->url->register('zoneclearFeedsPage','zcfeeds','^zcfeeds(.*?)$',array('zoneclearFeedServerURL','zcFeedsPage')); 
    2626 
    27 # Add personal Twitter class 
    28 $__autoload['zcfsLibDcTwitter'] = dirname(__FILE__).'/inc/lib.dc.twitter.php'; 
    29 //$__autoload['zcfsLibDcTwitterSender'] = dirname(__FILE__).'/inc/lib.dc.twitter.php'; 
     27# Add StatusNet send support 
     28$__autoload['zcfsLibStatusNet'] = dirname(__FILE__).'/inc/lib.zcfs.statusnet.php'; 
    3029 
    3130# Add to report on plugin activityReport 
  • plugins/zoneclearFeedServer/inc/class.zoneclear.feed.server.php

    r2403 r2632  
    378378          # Set feeds user 
    379379          $this->enableUser($s->zoneclearFeedServer_user); 
    380            
    381           $twitter_msg = zcfsLibDcTwitter::getMessage("zoneclearFeedServer"); 
     380      
     381          // Identica 
     382          $identica_msg = $s->zoneclearFeedServer_identica_default_message; 
     383          $identica_login = $s->zoneclearFeedServer_identica_login; 
     384          $identica_pass = $s->zoneclearFeedServer_identica_pass; 
     385 
     386          // Twitter 
     387          $has_tac = $has_registry = $has_access = false; 
     388          $twitter_msg = $s->zoneclearFeedServer_twitter_default_message; 
     389          if ($twitter_msg) { 
     390               $has_tac = $this->core->plugins->moduleExists('TaC'); 
     391               if ($has_tac) { 
     392                    $tac = new tac($this->core,'zoneclearFeedServer',null); 
     393                    $has_registry = $tac->checkRegistry(); 
     394               } 
     395               if ($has_registry) { 
     396                    $has_access = $tac->checkAccess(); 
     397               } 
     398          } 
     399           
    382400          $updates = false; 
    383401          $loop_mem = array(); 
     
    538556                                   } 
    539557                                    
    540                                    # Auto tweet post 
    541                                    if ($do_tweet && $twitter_msg) 
     558                                   # Auto tweet post on Identica 
     559                                   if ($do_tweet && $identica_msg && $identica_login && $identica_pass) 
    542560                                   { 
    543                                         $shortposturl = zcfsLibDcTwitterSender::shorten($item->link); 
     561                                        $shortposturl = zcfsLibStatusNet::shorten($item->link); 
    544562                                        $shortposturl = $shortposturl ? $shortposturl : $item->link; 
    545563                                         
    546                                         $shortsiteurl = zcfsLibDcTwitterSender::shorten($f->feed_url); 
     564                                        $shortsiteurl = zcfsLibStatusNet::shorten($f->feed_url); 
    547565                                        $shortsiteurl = $shortsiteurl ? $shortsiteurl : $f->feed_url; 
    548566                                         
     
    550568                                             array('%posttitle%','%postlink%','%postauthor%','%posttweeter%','%sitetitle%','%sitelink%'), 
    551569                                             array($cur_post->post_title,$shortposturl,$creator,$f->feed_tweeter,$f->feed_name,$shortsiteurl), 
    552                                              $twitter_msg 
     570                                             $identica_msg 
    553571                                        ); 
    554572                                        if (!empty($msg)) 
    555573                                        { 
    556                                              zcfsLibDcTwitter::sendMessage("zoneclearFeedServer",$msg); 
     574                                             zcfsLibStatusNet::send($identica_login,$identica_pass,$msg); 
     575                                        } 
     576                                   } 
     577                                    
     578                                   # Auto tweet post on Twitter 
     579                                   if ($do_tweet && $has_tac && $twitter_msg) { 
     580                                    
     581                                        $shortposturl = tacTools::shorten($item->link); 
     582                                        $shortposturl = $shortposturl ? $shortposturl : $item->link; 
     583                                         
     584                                        $shortsiteurl = tacTools::shorten($f->feed_url); 
     585                                        $shortsiteurl = $shortsiteurl ? $shortsiteurl : $f->feed_url; 
     586                                         
     587                                        $msg = str_replace( 
     588                                             array('%posttitle%','%postlink%','%postauthor%','%posttweeter%','%sitetitle%','%sitelink%'), 
     589                                             array($cur_post->post_title,$shortposturl,$creator,$f->feed_tweeter,$f->feed_name,$f->feed_url), 
     590                                             $twitter_msg 
     591                                        ); 
     592                                        if (!empty($msg)) { 
     593                                             $tac->post('statuses/update',array('status'=>$msg)); 
    557594                                        } 
    558595                                   } 
  • plugins/zoneclearFeedServer/inc/index.setting.php

    r2403 r2632  
    2525$feeduser = (string) $s->zoneclearFeedServer_user; 
    2626 
     27$identica_login = (string) $s->zoneclearFeedServer_identica_login; 
     28$identica_pass = (string) $s->zoneclearFeedServer_identica_pass; 
     29$identica_default_message = (string) $s->zoneclearFeedServer_identica_default_message; 
     30$twitter_default_message = (string) $s->zoneclearFeedServer_twitter_default_message; 
     31 
    2732$section = isset($_REQUEST['section']) ? $_REQUEST['section'] : ''; 
     33 
     34// Special Twitter 
     35$has_tac = $has_registry = $has_access = $has_grant = false; 
     36$has_tac = $core->plugins->moduleExists('TaC'); 
     37if ($has_tac) { 
     38 
     39     try { 
     40          // always 
     41          $tac = new tac($core,'zoneclearFeedServer',null); 
     42          $has_registry = $tac->checkRegistry(); 
     43           
     44          // register plugin to tac 
     45          if (!$has_registry) { 
     46               $cur = $core->con->openCursor($core->prefix.'tac_registry'); 
     47               $cur->cr_id = 'zoneclearFeedServer'; 
     48               $cur->cr_key = 'R1uiJxPNKWSg2ZruRpfmDA'; 
     49               $cur->cr_secret = 'tpdtvsdtiiDAV3SSdGsR2vh5E8z1Uu9Fnhbamx6ck'; 
     50               $cur->cr_url_request = 'http://twitter.com/oauth/request_token'; 
     51               $cur->cr_url_access = 'http://twitter.com/oauth/access_token'; 
     52               $cur->cr_url_autorize = 'http://twitter.com/oauth/authorize'; 
     53               $cur->cr_url_authenticate = 'https://api.twitter.com/oauth/authenticate'; 
     54                
     55               $tac->addRegistry($cur); 
     56                
     57               $has_registry = $tac->checkRegistry(); 
     58                
     59               if (!$has_registry) { 
     60                    throw new Exception(__('Failed to register plugin')); 
     61               } 
     62          } 
     63          // test user 
     64          $has_access = $tac->checkAccess(); 
     65           
     66          // request temp token 
     67          if ($action == 'requesttwitter') { 
     68               $url = $tac->requestAccess(DC_ADMIN_URL.'plugin.php?p=zoneclearFeedServer&part=setting&action=granttwitter&section=setting-twitter'); 
     69               http::redirect($url); 
     70          } 
     71           
     72          // request final token 
     73          if ($action == 'granttwitter') { 
     74               $has_grant = $tac->grantAccess(); 
     75                
     76               if (!$has_grant) { 
     77                    $tac->cleanAccess(); 
     78               } 
     79               http::redirect($p_url.'&part=setting&action=&section=setting-twitter'); 
     80          } 
     81     } 
     82     catch(Exception $e) { 
     83          $has_registry = $has_access = $has_grant = false; 
     84          $core->error->add($e->getMessage()); 
     85     } 
     86} 
     87 
    2888 
    2989if ($default_part == 'setting' && $action == 'savesetting') 
     
    43103          $s->put('zoneclearFeedServer_user',(string) $_POST['feeduser']); 
    44104           
    45           # special auto tweet 
    46           zcfsLibDcTwitter::adminAction("zoneclearFeedServer"); 
     105          $s->put('zoneclearFeedServer_identica_login',(string) $_POST['identica_login']); 
     106          if (!empty($_POST['identica_pass'])) { 
     107               $s->put('zoneclearFeedServer_identica_pass',(string) $_POST['identica_pass']); 
     108          } 
     109          $s->put('zoneclearFeedServer_identica_default_message',(string) $_POST['identica_default_message']); 
     110          if (isset($_POST['twitter_default_message'])) { 
     111               $s->put('zoneclearFeedServer_twitter_default_message',(string) $_POST['twitter_default_message']); 
     112          } 
     113 
     114          //todo save twitter settings 
    47115           
    48116          $core->blog->triggerBlog(); 
     
    122190</fieldset> 
    123191 
    124 <fieldset id="setting-twitter"><legend>'.__('Twitter').'</legend> 
    125 <div class="two-cols"><div class="col">'; 
    126 # Special auto tweet 
    127 zcfsLibDcTwitter::adminForm("zoneclearFeedServer"); 
    128 echo ' 
     192<fieldset id="setting-identica"><legend>'.__('Identi.ca').'</legend> 
     193<div class="two-cols"><div class="col"> 
     194<h3>'.__('Identi.ca account').'</h3> 
     195<p><label class="classic">'.__('Login:').'<br />'. 
     196form::field('identica_login',50,255,$identica_login,'',2).' 
     197</label></p> 
     198<p><label class="classic">'.__('Password:').'<br />'. 
     199form::password('identica_pass',50,255,'','',2).' 
     200</label></p> 
     201<p class="form-note">'.__('Type a password only to change old one.').'</p> 
     202<h3>'.__('Message').'</h3> 
     203<p><label class="classic">'.__('Text:').'<br />'. 
     204form::field('identica_default_message',50,255,$identica_default_message,'',2).' 
     205</label></p> 
    129206</div><div class="col"> 
    130207<ul> 
    131 <li>'.__('Send automatically message to tweeter on new post only if status of new post is "pusblished".').'</li> 
     208<li>'.__('Send automatically message to Identi.ca on new post only if status of new post is "pusblished".').'</li> 
    132209<li>'.__('Leave empty "ident" to not use this feature.').'</li> 
    133210<li>'.__('For message, use wildcard: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%').'</li> 
    134 </ul> 
     211</ul>'; 
     212if (!$has_tac) { 
     213     echo '<p>'.__('To use a Twitter account you must install plugin called "TaC"').'</p>'; 
     214} 
     215echo ' 
    135216</div></div> 
    136 </fieldset> 
    137  
     217</fieldset>'; 
     218 
     219if ($has_tac) { 
     220     echo ' 
     221     <fieldset id="setting-twitter"><legend>'.__('Twitter').'</legend> 
     222     <div class="two-cols"><div class="col">'; 
     223 
     224     if (!$has_access) { 
     225          echo ' 
     226          <p><a href="'.$p_url. 
     227          '&amp;part=setting&amp;action=requesttwitter&amp;section=setting-twitter'. 
     228          '"><img src="index.php?pf=TaC/img/tac_light.png" alt="Sign in with Twitter"/></a></p>'; 
     229     } 
     230     else { 
     231          $user = $tac->get('account/verify_credentials'); 
     232          $content = $tac->get('account/rate_limit_status'); 
     233           
     234          echo ' 
     235          <ul> 
     236          <li>'.sprintf(__('Your are connected as "%s"'),$user->screen_name).'</li> 
     237          <li>'.sprintf(__('It remains %s API hits'),$content->remaining_hits).'</li> 
     238          <li><a href="'.$p_url.'&amp;part=setting&amp;action=cleantwitter&amp;section=setting-twitter">'.__('Disconnect and clean access').'</a></li> 
     239          </ul>'; 
     240     } 
     241 
     242     echo ' 
     243     <h3>'.__('Message').'</h3> 
     244     <p><label class="classic">'.__('Text:').'<br />'. 
     245     form::field('twitter_default_message',50,255,$twitter_default_message,'',2).' 
     246     </label></p> 
     247     </div><div class="col"> 
     248     <ul> 
     249     <li>'.__('Send automatically message to Twitter on new post only if status of new post is "pusblished".').'</li> 
     250     <li>'.__('Leave empty "ident" to not use this feature.').'</li> 
     251     <li>'.__('For message, use wildcard: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%').'</li> 
     252     </ul> 
     253     </div></div> 
     254     </fieldset> 
     255     '; 
     256} 
     257 
     258echo ' 
    138259<fieldset id="setting-display"><legend>'. __('Display').'</legend> 
    139260<div class="two-cols"><div class="col"> 
  • plugins/zoneclearFeedServer/locales/fr/main.lang.php

    r2403 r2632  
    11<?php 
    22// Language: Français  
    3 // Module: zoneclearFeedServer - 1.0-alpha1 
    4 // Date: 2010-06-27 21:59:25  
    5 // Translated with dcTranslater - 1.4.1  
     3// Module: zoneclearFeedServer - 1.1 
     4// Date: 2010-09-08 17:26:11  
     5// Translated with dcTranslater - 1.5  
    66 
    77#_admin.php:19 
    88#inc/index.feed.php:593 
    99#inc/index.feeds.php:381 
    10 #inc/index.setting.php:74 
     10#inc/index.setting.php:142 
    1111#index.php:36 
    1212$GLOBALS['__l10n']['Feeds server'] = 'Serveur de flux'; 
     
    9898$GLOBALS['__l10n']['%s entries'] = '%s billets'; 
    9999 
    100 #inc/class.zoneclear.feed.server.php:665 
     100#inc/class.zoneclear.feed.server.php:702 
    101101$GLOBALS['__l10n']['disabled'] = 'désactivé'; 
    102102 
    103 #inc/class.zoneclear.feed.server.php:666 
     103#inc/class.zoneclear.feed.server.php:703 
    104104$GLOBALS['__l10n']['enabled'] = 'activé'; 
    105105 
    106 #inc/class.zoneclear.feed.server.php:673 
     106#inc/class.zoneclear.feed.server.php:710 
    107107$GLOBALS['__l10n']['every hour'] = 'toutes les heures'; 
    108108 
    109 #inc/class.zoneclear.feed.server.php:674 
     109#inc/class.zoneclear.feed.server.php:711 
    110110$GLOBALS['__l10n']['every two hours'] = 'toutes les deux heures'; 
    111111 
    112 #inc/class.zoneclear.feed.server.php:675 
     112#inc/class.zoneclear.feed.server.php:712 
    113113$GLOBALS['__l10n']['two times per day'] = 'deux fois par jour'; 
    114114 
    115 #inc/class.zoneclear.feed.server.php:676 
     115#inc/class.zoneclear.feed.server.php:713 
    116116$GLOBALS['__l10n']['every day'] = 'tous les jours'; 
    117117 
    118 #inc/class.zoneclear.feed.server.php:677 
     118#inc/class.zoneclear.feed.server.php:714 
    119119$GLOBALS['__l10n']['every two days'] = 'tous les deux jours'; 
    120120 
    121 #inc/class.zoneclear.feed.server.php:678 
     121#inc/class.zoneclear.feed.server.php:715 
    122122$GLOBALS['__l10n']['every week'] = 'toutes les semaines'; 
    123123 
    124 #inc/class.zoneclear.feed.server.php:733 
     124#inc/class.zoneclear.feed.server.php:770 
    125125$GLOBALS['__l10n']['home page'] = 'la page d\'accueil'; 
    126126 
    127 #inc/class.zoneclear.feed.server.php:734 
     127#inc/class.zoneclear.feed.server.php:771 
    128128$GLOBALS['__l10n']['post pages'] = 'la page d\'un billet'; 
    129129 
    130 #inc/class.zoneclear.feed.server.php:735 
     130#inc/class.zoneclear.feed.server.php:772 
    131131$GLOBALS['__l10n']['tags pages'] = 'les pages des tags'; 
    132132 
    133 #inc/class.zoneclear.feed.server.php:736 
     133#inc/class.zoneclear.feed.server.php:773 
    134134$GLOBALS['__l10n']['archives pages'] = 'les pages des archives'; 
    135135 
    136 #inc/class.zoneclear.feed.server.php:737 
     136#inc/class.zoneclear.feed.server.php:774 
    137137$GLOBALS['__l10n']['category pages'] = 'les pages de catégorie'; 
    138138 
    139 #inc/class.zoneclear.feed.server.php:738 
     139#inc/class.zoneclear.feed.server.php:775 
    140140$GLOBALS['__l10n']['entries feed'] = 'le flux des billets'; 
    141141 
     
    169169#inc/index.feed.php:599 
    170170#inc/index.feeds.php:386 
    171 #inc/index.setting.php:83 
     171#inc/index.setting.php:151 
    172172$GLOBALS['__l10n']['Feeds'] = 'Fils de syndication'; 
    173173 
     
    178178#inc/index.feed.php:608 
    179179#inc/index.feeds.php:387 
    180 #inc/index.setting.php:85 
     180#inc/index.setting.php:153 
    181181$GLOBALS['__l10n']['New feed'] = 'Nouveau flux'; 
    182182 
     
    270270$GLOBALS['__l10n']['Selected feeds action:'] = 'Action sur les flux sélectionnés :'; 
    271271 
    272 #inc/index.setting.php:60 
     272#inc/index.setting.php:128 
    273273$GLOBALS['__l10n']['disable'] = 'désactiver'; 
    274274 
    275 #inc/index.setting.php:61 
     275#inc/index.setting.php:129 
    276276$GLOBALS['__l10n']['before display'] = 'avant l\'affichage'; 
    277277 
    278 #inc/index.setting.php:62 
     278#inc/index.setting.php:130 
    279279$GLOBALS['__l10n']['after display'] = 'après l\'affichage'; 
    280280 
    281 #inc/index.setting.php:63 
     281#inc/index.setting.php:131 
    282282$GLOBALS['__l10n']['through Ajax'] = 'A travers Ajax'; 
    283283 
    284 #inc/index.setting.php:84 
     284#inc/index.setting.php:152 
    285285#index.php:34 
    286286$GLOBALS['__l10n']['Settings'] = 'Paramètres'; 
    287287 
    288 #inc/index.setting.php:89 
     288#inc/index.setting.php:157 
    289289$GLOBALS['__l10n']['Plugin activation'] = 'Activation de l\'extension'; 
    290290 
    291 #inc/index.setting.php:92 
     291#inc/index.setting.php:160 
    292292$GLOBALS['__l10n']['Enable plugin'] = 'Activer l\'extension'; 
    293293 
    294 #inc/index.setting.php:95 
     294#inc/index.setting.php:163 
    295295$GLOBALS['__l10n']['General rules'] = 'Réglages'; 
    296296 
    297 #inc/index.setting.php:98 
     297#inc/index.setting.php:166 
    298298$GLOBALS['__l10n']['Status of new posts:'] = 'Status des nouveaux billets :'; 
    299299 
    300 #inc/index.setting.php:101 
     300#inc/index.setting.php:169 
    301301$GLOBALS['__l10n']['Owner of entries created by zoneclearFeedServer:'] = 'Propriétaire des billets créés par zoneclearFeedServer :'; 
    302302 
    303 #inc/index.setting.php:104 
     303#inc/index.setting.php:172 
    304304$GLOBALS['__l10n']['Update feeds on public side:'] = 'Mettre à jour les flux depuis la partie publique :'; 
    305305 
    306 #inc/index.setting.php:107 
     306#inc/index.setting.php:175 
    307307$GLOBALS['__l10n']['Number of feeds to update at one time:'] = 'Nombre de flux à mettre à jour à la fois :'; 
    308308 
    309 #inc/index.setting.php:111 
     309#inc/index.setting.php:179 
    310310$GLOBALS['__l10n']['Enable public page'] = 'Activer la page publique'; 
    311311 
    312 #inc/index.setting.php:115 
     312#inc/index.setting.php:183 
    313313$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.'; 
    314314 
    315 #inc/index.setting.php:116 
     315#inc/index.setting.php:184 
    316316$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.'; 
    317317 
    318 #inc/index.setting.php:117 
     318#inc/index.setting.php:185 
    319319$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.'; 
    320320 
    321 #inc/index.setting.php:118 
     321#inc/index.setting.php:186 
    322322$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 .'; 
    323323 
    324 #inc/index.setting.php:119 
     324#inc/index.setting.php:187 
    325325$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.'; 
    326326 
    327 #inc/index.setting.php:131 
    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:132 
     327#inc/index.setting.php:194 
     328$GLOBALS['__l10n']['Identi.ca account'] = 'Compte Identi.ca'; 
     329 
     330#inc/index.setting.php:195 
     331$GLOBALS['__l10n']['Login:'] = 'Identifiant :'; 
     332 
     333#inc/index.setting.php:201 
     334$GLOBALS['__l10n']['Type a password only to change old one.'] = 'Entrer un mot de passe uniquement pour changer l\'ancien.'; 
     335 
     336#inc/index.setting.php:202 
     337#inc/index.setting.php:243 
     338$GLOBALS['__l10n']['Message'] = 'Message'; 
     339 
     340#inc/index.setting.php:208 
     341$GLOBALS['__l10n']['Send automatically message to Identi.ca on new post only if status of new post is "pusblished".'] = 'Envoie automatiquement un message sur Identi.ca lors d\'ajout de billet si le status des nouveaux billets est "publié".'; 
     342 
     343#inc/index.setting.php:209 
     344#inc/index.setting.php:250 
    331345$GLOBALS['__l10n']['Leave empty "ident" to not use this feature.'] = 'Laisser vide votre identifiant pour ne pas envoyer de tweet.'; 
    332346 
    333 #inc/index.setting.php:133 
     347#inc/index.setting.php:210 
     348#inc/index.setting.php:251 
    334349$GLOBALS['__l10n']['For message, use wildcard: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%'] = 'Pour le message utiliser les jokers: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%'; 
    335350 
    336 #inc/index.setting.php:138 
     351#inc/index.setting.php:213 
     352$GLOBALS['__l10n']['To use a Twitter account you must install plugin called "TaC"'] = 'Pour utiliser un compte Twitter vous devez installer le plugin nommé "TaC"'; 
     353 
     354#inc/index.setting.php:249 
     355$GLOBALS['__l10n']['Send automatically message to Twitter on new post only if status of new post is "pusblished".'] = 'Envoie automatiquement un message sur Twitter lors d\'ajout de billet si le status des nouveaux billets est "publié".'; 
     356 
     357#inc/index.setting.php:259 
    337358$GLOBALS['__l10n']['Display'] = 'Affichage'; 
    338359 
    339 #inc/index.setting.php:141 
     360#inc/index.setting.php:262 
    340361$GLOBALS['__l10n']['Show full content on:'] = 'Afficher le contenu complet sur :'; 
    341362 
    342 #inc/index.setting.php:152 
     363#inc/index.setting.php:273 
    343364$GLOBALS['__l10n']['Entries title'] = 'Titre des billets'; 
    344365 
    345 #inc/index.setting.php:153 
     366#inc/index.setting.php:274 
    346367$GLOBALS['__l10n']['Redirect to original post on:'] = 'Rediriger vers le billet original sur :'; 
    347368 
    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 
     369#inc/lib.zcfs.statusnet.php:29 
    366370$GLOBALS['__l10n']['User is not set.'] = 'L\'utilisateur est pas renseigné.'; 
    367371 
    368 #inc/lib.dc.twitter.php:306 
     372#inc/lib.zcfs.statusnet.php:39 
    369373$GLOBALS['__l10n']['Nothing to send.'] = 'Il n\'y a rien à envoyer.'; 
    370374 
    371 #inc/lib.dc.twitter.php:330 
     375#inc/lib.zcfs.statusnet.php:54 
    372376$GLOBALS['__l10n']['Failed to send message (%s)'] = 'Impossible d\'envoyer le message (%s)'; 
    373377 
    374 #inc/lib.dc.twitter.php:390 
     378#inc/lib.zcfs.statusnet.php:115 
    375379$GLOBALS['__l10n']['Failed to get short url (%s)'] = 'Impossible de récupérer le lien court (%s)'; 
    376380 
    377 #inc/lib.dc.twitter.php:396 
     381#inc/lib.zcfs.statusnet.php:121 
    378382$GLOBALS['__l10n']['Failed to get short url'] = 'Impossible de récupérer le lien court'; 
    379383 
  • plugins/zoneclearFeedServer/locales/fr/main.po

    r2403 r2632  
    11# Language: Français 
    2 # Module: zoneclearFeedServer - 1.0-alpha1 
    3 # Date: 2010-06-27 21:59:25 
    4 # Translated with translater 1.4.1 
     2# Module: zoneclearFeedServer - 1.1 
     3# Date: 2010-09-08 17:26:11 
     4# Translated with translater 1.5 
    55 
    66msgid "" 
    77msgstr "" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: zoneclearFeedServer 1.0-alpha1\n" 
     9"Project-Id-Version: zoneclearFeedServer 1.1\n" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: 2010-06-27T21:59:25+00:00\n" 
     11"PO-Revision-Date: 2010-09-08T17:26:11+00:00\n" 
    1212"Last-Translator: JC Denis\n" 
    1313"Language-Team: \n" 
     
    1818#: inc/index.feed.php:593 
    1919#: inc/index.feeds.php:381 
    20 #: inc/index.setting.php:74 
     20#: inc/index.setting.php:142 
    2121#: index.php:36 
    2222msgid "Feeds server" 
     
    137137msgstr "%s billets" 
    138138 
    139 #: inc/class.zoneclear.feed.server.php:665 
     139#: inc/class.zoneclear.feed.server.php:702 
    140140msgid "disabled" 
    141141msgstr "désactivé" 
    142142 
    143 #: inc/class.zoneclear.feed.server.php:666 
     143#: inc/class.zoneclear.feed.server.php:703 
    144144msgid "enabled" 
    145145msgstr "activé" 
    146146 
    147 #: inc/class.zoneclear.feed.server.php:673 
     147#: inc/class.zoneclear.feed.server.php:710 
    148148msgid "every hour" 
    149149msgstr "toutes les heures" 
    150150 
    151 #: inc/class.zoneclear.feed.server.php:674 
     151#: inc/class.zoneclear.feed.server.php:711 
    152152msgid "every two hours" 
    153153msgstr "toutes les deux heures" 
    154154 
    155 #: inc/class.zoneclear.feed.server.php:675 
     155#: inc/class.zoneclear.feed.server.php:712 
    156156msgid "two times per day" 
    157157msgstr "deux fois par jour" 
    158158 
    159 #: inc/class.zoneclear.feed.server.php:676 
     159#: inc/class.zoneclear.feed.server.php:713 
    160160msgid "every day" 
    161161msgstr "tous les jours" 
    162162 
    163 #: inc/class.zoneclear.feed.server.php:677 
     163#: inc/class.zoneclear.feed.server.php:714 
    164164msgid "every two days" 
    165165msgstr "tous les deux jours" 
    166166 
    167 #: inc/class.zoneclear.feed.server.php:678 
     167#: inc/class.zoneclear.feed.server.php:715 
    168168msgid "every week" 
    169169msgstr "toutes les semaines" 
    170170 
    171 #: inc/class.zoneclear.feed.server.php:733 
     171#: inc/class.zoneclear.feed.server.php:770 
    172172msgid "home page" 
    173173msgstr "la page d'accueil" 
    174174 
    175 #: inc/class.zoneclear.feed.server.php:734 
     175#: inc/class.zoneclear.feed.server.php:771 
    176176msgid "post pages" 
    177177msgstr "la page d'un billet" 
    178178 
    179 #: inc/class.zoneclear.feed.server.php:735 
     179#: inc/class.zoneclear.feed.server.php:772 
    180180msgid "tags pages" 
    181181msgstr "les pages des tags" 
    182182 
    183 #: inc/class.zoneclear.feed.server.php:736 
     183#: inc/class.zoneclear.feed.server.php:773 
    184184msgid "archives pages" 
    185185msgstr "les pages des archives" 
    186186 
    187 #: inc/class.zoneclear.feed.server.php:737 
     187#: inc/class.zoneclear.feed.server.php:774 
    188188msgid "category pages" 
    189189msgstr "les pages de catégorie" 
    190190 
    191 #: inc/class.zoneclear.feed.server.php:738 
     191#: inc/class.zoneclear.feed.server.php:775 
    192192msgid "entries feed" 
    193193msgstr "le flux des billets" 
     
    231231#: inc/index.feed.php:599 
    232232#: inc/index.feeds.php:386 
    233 #: inc/index.setting.php:83 
     233#: inc/index.setting.php:151 
    234234msgid "Feeds" 
    235235msgstr "Fils de syndication" 
     
    242242#: inc/index.feed.php:608 
    243243#: inc/index.feeds.php:387 
    244 #: inc/index.setting.php:85 
     244#: inc/index.setting.php:153 
    245245msgid "New feed" 
    246246msgstr "Nouveau flux" 
     
    364364msgstr "Action sur les flux sélectionnés :" 
    365365 
    366 #: inc/index.setting.php:60 
     366#: inc/index.setting.php:128 
    367367msgid "disable" 
    368368msgstr "désactiver" 
    369369 
    370 #: inc/index.setting.php:61 
     370#: inc/index.setting.php:129 
    371371msgid "before display" 
    372372msgstr "avant l'affichage" 
    373373 
    374 #: inc/index.setting.php:62 
     374#: inc/index.setting.php:130 
    375375msgid "after display" 
    376376msgstr "après l'affichage" 
    377377 
    378 #: inc/index.setting.php:63 
     378#: inc/index.setting.php:131 
    379379msgid "through Ajax" 
    380380msgstr "A travers Ajax" 
    381381 
    382 #: inc/index.setting.php:84 
     382#: inc/index.setting.php:152 
    383383#: index.php:34 
    384384msgid "Settings" 
    385385msgstr "Paramètres" 
    386386 
    387 #: inc/index.setting.php:89 
     387#: inc/index.setting.php:157 
    388388msgid "Plugin activation" 
    389389msgstr "Activation de l'extension" 
    390390 
    391 #: inc/index.setting.php:92 
     391#: inc/index.setting.php:160 
    392392msgid "Enable plugin" 
    393393msgstr "Activer l'extension" 
    394394 
    395 #: inc/index.setting.php:95 
     395#: inc/index.setting.php:163 
    396396msgid "General rules" 
    397397msgstr "Réglages" 
    398398 
    399 #: inc/index.setting.php:98 
     399#: inc/index.setting.php:166 
    400400msgid "Status of new posts:" 
    401401msgstr "Status des nouveaux billets :" 
    402402 
    403 #: inc/index.setting.php:101 
     403#: inc/index.setting.php:169 
    404404msgid "Owner of entries created by zoneclearFeedServer:" 
    405405msgstr "Propriétaire des billets créés par zoneclearFeedServer :" 
    406406 
    407 #: inc/index.setting.php:104 
     407#: inc/index.setting.php:172 
    408408msgid "Update feeds on public side:" 
    409409msgstr "Mettre à jour les flux depuis la partie publique :" 
    410410 
    411 #: inc/index.setting.php:107 
     411#: inc/index.setting.php:175 
    412412msgid "Number of feeds to update at one time:" 
    413413msgstr "Nombre de flux à mettre à jour à la fois :" 
    414414 
    415 #: inc/index.setting.php:111 
     415#: inc/index.setting.php:179 
    416416msgid "Enable public page" 
    417417msgstr "Activer la page publique" 
    418418 
    419 #: inc/index.setting.php:115 
     419#: inc/index.setting.php:183 
    420420msgid "A writable cache folder is required to use this extension." 
    421421msgstr "Un dossier de cache accessible en écriture est nécessaire pour utiliser cette extension." 
    422422 
    423 #: inc/index.setting.php:116 
     423#: inc/index.setting.php:184 
    424424msgid "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." 
    425425msgstr "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." 
    426426 
    427 #: inc/index.setting.php:117 
     427#: inc/index.setting.php:185 
    428428msgid "If you use cron script, you can disable public update." 
    429429msgstr "Si vous utilisez un script cron, vous pouvez désactiver la mise à jour publique." 
    430430 
    431 #: inc/index.setting.php:118 
     431#: inc/index.setting.php:186 
    432432msgid "If active, a public list of feeds are available at \"%s\"." 
    433433msgstr "Si activé, une page publique de la liste des flux est disponible à l'adresse %s ." 
    434434 
    435 #: inc/index.setting.php:119 
     435#: inc/index.setting.php:187 
    436436msgid "In order to do update through Ajax, your theme must have behavior publicHeadContent." 
    437437msgstr "Pour utiliser la mise à jour depuis Ajax, votre thème doit avoir le behavior publicheadContent." 
    438438 
    439 #: inc/index.setting.php:131 
    440 msgid "Send automatically message to tweeter on new post only if status of new post is \"pusblished\"." 
    441 msgstr "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:132 
     439#: inc/index.setting.php:194 
     440msgid "Identi.ca account" 
     441msgstr "Compte Identi.ca" 
     442 
     443#: inc/index.setting.php:195 
     444msgid "Login:" 
     445msgstr "Identifiant :" 
     446 
     447#: inc/index.setting.php:201 
     448msgid "Type a password only to change old one." 
     449msgstr "Entrer un mot de passe uniquement pour changer l'ancien." 
     450 
     451#: inc/index.setting.php:202 
     452#: inc/index.setting.php:243 
     453msgid "Message" 
     454msgstr "Message" 
     455 
     456#: inc/index.setting.php:208 
     457msgid "Send automatically message to Identi.ca on new post only if status of new post is \"pusblished\"." 
     458msgstr "Envoie automatiquement un message sur Identi.ca lors d'ajout de billet si le status des nouveaux billets est \"publié\"." 
     459 
     460#: inc/index.setting.php:209 
     461#: inc/index.setting.php:250 
    444462msgid "Leave empty \"ident\" to not use this feature." 
    445463msgstr "Laisser vide votre identifiant pour ne pas envoyer de tweet." 
    446464 
    447 #: inc/index.setting.php:133 
     465#: inc/index.setting.php:210 
     466#: inc/index.setting.php:251 
    448467msgid "For message, use wildcard: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%" 
    449468msgstr "Pour le message utiliser les jokers: %posttitle%, %postlink%, %postauthor%, %posttweeter%, %sitetitle%, %sitelink%" 
    450469 
    451 #: inc/index.setting.php:138 
     470#: inc/index.setting.php:213 
     471msgid "To use a Twitter account you must install plugin called \"TaC\"" 
     472msgstr "Pour utiliser un compte Twitter vous devez installer le plugin nommé \"TaC\"" 
     473 
     474#: inc/index.setting.php:249 
     475msgid "Send automatically message to Twitter on new post only if status of new post is \"pusblished\"." 
     476msgstr "Envoie automatiquement un message sur Twitter lors d'ajout de billet si le status des nouveaux billets est \"publié\"." 
     477 
     478#: inc/index.setting.php:259 
    452479msgid "Display" 
    453480msgstr "Affichage" 
    454481 
    455 #: inc/index.setting.php:141 
     482#: inc/index.setting.php:262 
    456483msgid "Show full content on:" 
    457484msgstr "Afficher le contenu complet sur :" 
    458485 
    459 #: inc/index.setting.php:152 
     486#: inc/index.setting.php:273 
    460487msgid "Entries title" 
    461488msgstr "Titre des billets" 
    462489 
    463 #: inc/index.setting.php:153 
     490#: inc/index.setting.php:274 
    464491msgid "Redirect to original post on:" 
    465492msgstr "Rediriger vers le billet original sur :" 
    466493 
    467 #: inc/lib.dc.twitter.php:171 
    468 msgid "Twitter account" 
    469 msgstr "Compte Twitter" 
    470  
    471 #: inc/lib.dc.twitter.php:172 
    472 #: inc/lib.dc.twitter.php:180 
    473 msgid "Login:" 
    474 msgstr "Identifiant :" 
    475  
    476 #: inc/lib.dc.twitter.php:178 
    477 #: inc/lib.dc.twitter.php:186 
    478 msgid "Type a password only to change old one." 
    479 msgstr "Entrer un mot de passe uniquement pour changer l'ancien." 
    480  
    481 #: inc/lib.dc.twitter.php:179 
    482 msgid "Identi.ca account" 
    483 msgstr "Compte Identi.ca" 
    484  
    485 #: inc/lib.dc.twitter.php:187 
    486 msgid "Message" 
    487 msgstr "Message" 
    488  
    489 #: inc/lib.dc.twitter.php:298 
     494#: inc/lib.zcfs.statusnet.php:29 
    490495msgid "User is not set." 
    491496msgstr "L'utilisateur est pas renseigné." 
    492497 
    493 #: inc/lib.dc.twitter.php:306 
     498#: inc/lib.zcfs.statusnet.php:39 
    494499msgid "Nothing to send." 
    495500msgstr "Il n'y a rien à envoyer." 
    496501 
    497 #: inc/lib.dc.twitter.php:330 
     502#: inc/lib.zcfs.statusnet.php:54 
    498503msgid "Failed to send message (%s)" 
    499504msgstr "Impossible d'envoyer le message (%s)" 
    500505 
    501 #: inc/lib.dc.twitter.php:390 
     506#: inc/lib.zcfs.statusnet.php:115 
    502507msgid "Failed to get short url (%s)" 
    503508msgstr "Impossible de récupérer le lien court (%s)" 
    504509 
    505 #: inc/lib.dc.twitter.php:396 
     510#: inc/lib.zcfs.statusnet.php:121 
    506511msgid "Failed to get short url" 
    507512msgstr "Impossible de récupérer le lien court" 
  • plugins/zoneclearFeedServer/release.txt

    r2403 r2632  
    11x.x xxxxxxxx 
    22 * Not fixed disallow self blog feeds 
     3 
     4x.x.x 
     5 * Fixed bug on dcTwitter shorten service 
     6 
     71.1 20100908 
     8 * Removed old Twitter functions 
     9 * Added StatusNet small functions (Identica) 
     10 * Required plugin Tac for Twitter ability 
    311 
    4121.0 20100627 
Note: See TracChangeset for help on using the changeset viewer.

Sites map