Dotclear

Changeset 1414


Ignore:
Timestamp:
08/28/09 23:35:00 (14 years ago)
Author:
JcDenis
Message:

dcMiniUrl 0.3:

  • Fixed failed to delete miniurl from admin
  • Added option to limit short url to blog
  • Added postWidgetText support
  • Added _uninstall.php feature
Location:
plugins/dcMiniUrl
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • plugins/dcMiniUrl/_admin.php

    r1408 r1414  
    3939     { 
    4040          global $core; 
    41           $_o = new dcMiniUrl($core); 
     41          $O = new dcMiniUrl($core); 
    4242 
    4343          $id = -1; 
     
    4646               $post_url = $core->blog->url.$core->url->getBase('post').'/'.$post->post_url; 
    4747 
    48                $type = 'miniurl'; 
    49                if (-1 == ($id = $_o->id('miniurl',$post_url))) { 
    50                     $type = 'customurl'; 
    51                     $id = $_o->id('customurl',$post_url); 
     48               $type = 'customurl'; 
     49               if (-1 == ($id = $O->id($type,$post_url))) { 
     50                    $type = 'miniurl'; 
     51                    $id = $O->id($type,$post_url); 
    5252               } 
    5353          } 
     
    6262               __('Create short link').'</label></p>'; 
    6363          } else { 
    64                $count = $_o->counter($type,$id); 
     64               $count = $O->counter($type,$id); 
    6565               if ($count == 0) 
    6666                    $follow = __('never followed'); 
     
    8080     { 
    8181          global $core; 
    82           $_o = new dcMiniUrl($core); 
     82          $O = new dcMiniUrl($core); 
    8383 
    8484          # Create: see adminAfterPostCreate 
     
    8989               $old_post_url = $_POST['miniurl_old_post_url']; 
    9090 
    91                $type = 'miniurl'; 
    92                if (-1 == ($id = $_o->id($type,$old_post_url))) { 
    93                     $type = 'customurl'; 
    94                     if (-1 == ($id = $_o->id($type,$old_post_url))) 
     91               $type = 'customurl'; 
     92               if (-1 == ($id = $O->id($type,$old_post_url))) { 
     93                    $type = 'miniurl'; 
     94                    if (-1 == ($id = $O->id($type,$old_post_url))) 
    9595                         return; 
    9696               } 
     
    102102               if ($rs->isEmpty()) return; 
    103103 
    104                $new_post_url = $core->blog->url.$core->url->getBase('post').'/'.$rs->f(0); 
     104               $new_post_url = $core->blog->url.$core->url->getBase('post').'/'.$rs->post_url; 
    105105 
    106106               if ($old_post_url == $new_post_url) return; 
    107107 
    108                $_o->update($type,$id,$type,$id,$new_post_url); 
     108               $O->update($type,$id,$type,$id,$new_post_url); 
    109109          } 
    110110     } 
     
    113113     { 
    114114          global $core; 
    115           $_o = new dcMiniUrl($core); 
     115          $O = new dcMiniUrl($core); 
    116116 
    117117          if (empty($_POST['miniurl_create'])) return; 
     
    123123          if ($rs->isEmpty()) return; 
    124124 
    125           $_o->create('miniurl',$core->blog->url.$core->url->getBase('post').'/'.$rs->f(0)); 
     125          $new_post_url = $core->blog->url.$core->url->getBase('post').'/'.$rs->post_url; 
     126 
     127          $O->create('miniurl',$new_post_url); 
    126128     } 
    127129 
     
    129131     { 
    130132          global $core; 
    131           $_o = new dcMiniUrl($core); 
     133          $O = new dcMiniUrl($core); 
    132134 
    133135          $rs = $core->con->select( 
     
    137139          if ($rs->isEmpty()) return; 
    138140 
    139           $post_url = $core->blog->url.$core->url->getBase('post').'/'.$rs->f(0); 
    140  
    141           $type = 'miniurl'; 
    142           if (-1 == ($id = $_o->id($type,$post_url))) { 
    143                $type = 'customurl'; 
    144                if (-1 == ($id = $_o->id($type,$post_url))) 
     141          $post_url = $core->blog->url.$core->url->getBase('post').'/'.$rs->post_url; 
     142 
     143          $type = 'customurl'; 
     144          if (-1 == ($id = $O->id($type,$post_url))) { 
     145               $type = 'miniurl'; 
     146               if (-1 == ($id = $O->id($type,$post_url))) 
    145147                    return; 
    146148          } 
    147149 
    148           $_o->delete($type,$id); 
     150          $O->delete($type,$id); 
    149151     } 
    150152//?& 
     
    167169 
    168170          try { 
    169                $_o = new dcMiniUrl($core); 
     171               $O = new dcMiniUrl($core); 
    170172 
    171173               while ($posts->fetch()) { 
    172174                    $post_url = $core->blog->url.$core->url->getBase('post').'/'.$posts->post_url; 
    173175 
    174                     $type = 'miniurl'; 
    175                     if (-1 == ($id = $_o->id($type,$post_url))) { 
    176                          $type = 'customurl'; 
    177                          if (-1 == ($id = $_o->id($type,$post_url))) 
     176                    $type = 'customurl'; 
     177                    if (-1 == ($id = $O->id($type,$post_url))) { 
     178                         $type = 'miniurl'; 
     179                         if (-1 == ($id = $O->id($type,$post_url))) 
    178180                              $type = ''; 
    179181                    } 
     
    182184 
    183185                         if ($action == 'miniurl_delete') 
    184                               $_o->delete($type,$id); 
     186                              $O->delete($type,$id); 
    185187                               
    186188                         elseif ($action == 'miniurl_counter_reset') 
    187                               $_o->counter($type,$id,'reset'); 
     189                              $O->counter($type,$id,'reset'); 
    188190                    } 
    189191 
    190192                    if ($type == '' && $action == 'miniurl_create') 
    191                          $_o->create('miniurl',$post_url); 
     193                         $O->create('miniurl',$post_url); 
    192194               } 
    193                $core->triggerBlog(); 
     195               $core->blog->triggerBlog(); 
    194196               http::redirect($redir.'&done=1'); 
    195197          } 
  • plugins/dcMiniUrl/_define.php

    r1408 r1414  
    1717     /* Description*/         "Use short url on your blog", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.2', 
     19     /* Version */            '0.3', 
    2020     /* Permissions */        'admin' 
    2121); 
    22      /* date */          #20090822 
     22     /* date */          #20090828 
    2323?> 
  • plugins/dcMiniUrl/_install.php

    r1408 r1414  
    4747          $core->blog->settings->put('miniurl_blog_autoshorturl', 
    4848               false,'boolean','Enabled miniurl auto short url on contents',false,true); 
     49          $core->blog->settings->put('miniurl_only_blog', 
     50               false,'boolean','Limited miniurl short url to current blog',false,true); 
    4951          $core->blog->settings->put('miniurl_protocols', 
    5052               'http:,https:,ftp:,ftps:,irc:','string','Allowed miniurl protocols',false,true); 
  • plugins/dcMiniUrl/_prepend.php

    r1408 r1414  
    2323     array('urlMiniUrl','redirectMiniUrl')); 
    2424 
    25  
     25# Scan some contents and replace links inside 
    2626if ($core->blog->settings->miniurl_active  
    2727 && $core->blog->settings->miniurl_core_autoshorturl) { 
     
    4141     $core->addBehavior('coreBeforeCategoryCreate', 
    4242          array('coreUpdateMiniUrl','category')); 
     43 
     44     $core->addBehavior('postWidgetTextBeforeCreate', 
     45          array('coreUpdateMiniUrl','postWidgetText')); 
    4346} 
    4447?> 
  • plugins/dcMiniUrl/_public.php

    r1409 r1414  
    6262          $protocols = $core->blog->settings->miniurl_protocols; 
    6363          $protocols = !$protocols ? '' : explode(',',$protocols); 
    64  
    65           $O = new dcMiniUrl($core,$autoshorturl,$protocols); 
     64          $onlyblog = (boolean) $core->blog->settings->miniurl_only_blog; 
     65 
     66          $O = new dcMiniUrl($core,$autoshorturl,$protocols,$onlyblog); 
    6667 
    6768          if ($m[1] == '/' && $args == '') 
     
    126127               } 
    127128               if (!$err) { 
     129                    if ($core->blog->settings->miniurl_only_blog && !$O->isBlog($str)) { 
     130                         $err = true; 
     131                         $_ctx->miniurl_msg = __('This link is not a blog link'); 
     132                    } 
     133               } 
     134               if (!$err) { 
    128135                    if (!$O->isAllowed($str)) { 
    129136                         $err = true; 
     
    159166          $protocols = $core->blog->settings->miniurl_protocols; 
    160167          $protocols = !$protocols ? array('http:') : explode(',',$protocols); 
    161  
    162           $_ctx->miniurl = new dcMiniUrl($core,$autoshorturl,$protocols); 
    163       
     168          $onlyblog = (boolean) $core->blog->settings->miniurl_only_blog; 
     169 
     170          $_ctx->miniurl = new dcMiniUrl($core,$autoshorturl,$protocols,$onlyblog); 
    164171     } 
    165172} 
  • plugins/dcMiniUrl/_widgets.php

    r1409 r1414  
    3939          $w->rankminiurl->setting('limit',__('Limit:'),'10','text'); 
    4040          $w->rankminiurl->setting('hideempty',__('Hide no followed links:'),true,'combo',array( 
    41                __('Yes') => true,__('No') => false)); 
     41               __('yes') => true,__('no') => false)); 
    4242          $w->rankminiurl->setting('homeonly',__('Home page only'),1,'check'); 
    4343     } 
  • plugins/dcMiniUrl/inc/class.dc.miniurl.php

    r1408 r1414  
    2222 
    2323     protected $enable_autoshorturl = false; 
    24      protected $allowed_protocols = array('http;','ftp:','https:','ftps:');  
    25  
    26      public function __construct($core,$enable_autoshorturl=false,$allowed_protocols=array()) 
     24     protected $allowed_protocols = array('http;','ftp:','https:','ftps:'); 
     25     protected $only_blog = false; 
     26 
     27     public function __construct($core,$enable_autoshorturl=false,$allowed_protocols=array(),$only_blog=false) 
    2728     { 
    2829          $this->core = $core; 
     
    3536               $this->allowed_protocols = $allowed_protocols; 
    3637          } 
     38          $this->only_blog = (boolean) $only_blog; 
    3739     } 
    3840 
     
    4951     } 
    5052 
     53     public static function isBlog($str) 
     54     { 
     55          global $core; 
     56          $url = $core->blog->url; 
     57          $str = substr($str,0,strlen($url)); 
     58 
     59          return $str == $url; 
     60     } 
     61 
    5162     public static function isMini($str) 
    5263     { 
     
    8596 
    8697          if (self::isMini($str)) 
     98               return -1; 
     99 
     100          if ($this->only_blog && !self::isBlog($str)) 
    87101               return -1; 
    88102 
  • plugins/dcMiniUrl/inc/lib.miniurl.blog.update.php

    r1408 r1414  
    4949     } 
    5050 
     51     public static function postWidgetText($cur,$format) 
     52     { 
     53          $pattern['XHTML'] = '/<a(.+?)href="(.*?)"/'; 
     54          $pattern['Wiki'] = '/\[(.*?)\|(.*?)\|(.*?)\]/'; 
     55 
     56          $type = $format == 'wiki' ? 'Wiki' : 'XHTML'; 
     57 
     58          $cur->wtext_content = preg_replace_callback($pattern[$type], 
     59               array('coreUpdateMiniUrl','replaceContent'.$type),$cur->wtext_content); 
     60          $cur->wtext_content_xhtml = preg_replace_callback($pattern['XHTML'], 
     61               array('coreUpdateMiniUrl','replaceContentXHTML'),$cur->wtext_content_xhtml); 
     62     } 
     63 
    5164     public static function replaceContentXHTML($m) 
    5265     { 
     
    5669          global $core; 
    5770 
    58           $miniurl = new dcMiniUrl($core,true); 
     71          $protocols = $core->blog->settings->miniurl_protocols; 
     72          $protocols = !$protocols ? '' : explode(',',$protocols); 
     73          $onlyblog = (boolean) $core->blog->settings->miniurl_only_blog; 
     74 
     75          $miniurl = new dcMiniUrl($core,true,$protocols,$onlyblog); 
    5976          $id = $miniurl->auto($str,array('miniurl','customurl')); 
    6077 
     
    7289          global $core; 
    7390 
    74           $miniurl = new dcMiniUrl($core,true); 
     91          $protocols = $core->blog->settings->miniurl_protocols; 
     92          $protocols = !$protocols ? '' : explode(',',$protocols); 
     93          $onlyblog = (boolean) $core->blog->settings->miniurl_only_blog; 
     94 
     95          $miniurl = new dcMiniUrl($core,true,$protocols,$onlyblog); 
    7596          $id = $miniurl->auto($str,array('miniurl','customurl')); 
    7697 
  • plugins/dcMiniUrl/inc/lib.miniurl.list.php

    r1408 r1414  
    4646               $iter = 0; 
    4747               while ($iter < $nb_per_page) { 
    48                     echo $this->urlLine($url); 
    49                     if ($this->rs->isEnd()) { 
     48 
     49                    echo $this->urlLine($url,$iter); 
     50 
     51                    if ($this->rs->isEnd()) 
    5052                         break; 
    51                     } 
    52                     else { 
     53                    else 
    5354                         $this->rs->moveNext(); 
    54                          $iter++; 
    55                     } 
     55 
     56                    $iter++; 
    5657               } 
    5758               echo $blocks[1]; 
     
    6061     } 
    6162 
    62      private function urlLine($url) 
     63     private function urlLine($url,$loop) 
    6364     { 
    6465          $url = $this->core->blog->url.$this->core->url->getBase('miniUrl').'/'.html::escapeHTML($this->rs->miniurl_id); 
     
    6970          '<tr class="line">'."\n". 
    7071          '<td class="nowrap">'. 
    71                form::checkbox(array('entries[]'),$this->rs->miniurl_id,0). 
    72                form::hidden(array('urltypes[]'),$this->rs->miniurl_type). 
     72               form::checkbox(array('entries['.$loop.']'),$this->rs->miniurl_id,0). 
     73               form::hidden(array('urltypes['.$loop.']'),$this->rs->miniurl_type). 
    7374          '</td>'. 
    7475          '<td class="nowrap">'. 
  • plugins/dcMiniUrl/index.php

    r1408 r1414  
    2424 
    2525$page = !empty($_GET['page']) ? (integer) $_GET['page'] : 1; 
    26 $nb_per_page =  10; 
     26$nb_per_page =  30; 
    2727if (!empty($_GET['nb']) && (integer) $_GET['nb'] > 0) { 
    2828     if ($nb_per_page != $_GET['nb']) $show_filters = true; 
     
    7878$protocols = $core->blog->settings->miniurl_protocols; 
    7979$protocols = !$protocols ? '' : explode(',',$protocols); 
    80 $O = new dcMiniUrl($core,$autoshorturl,$protocols); 
     80$onlyblog = (boolean) $core->blog->settings->miniurl_only_blog; 
     81 
     82$O = new dcMiniUrl($core,$autoshorturl,$protocols,$onlyblog); 
    8183 
    8284# Save settings 
     
    104106               'Enabled miniurl auto shorturl on contents', 
    105107               true,false); 
     108          $core->blog->settings->put('miniurl_only_blog', 
     109               isset($_POST['miniurl_only_blog']), 
     110               'boolean', 
     111               'Limited miniurl shorturl to current blog', 
     112               true,false); 
    106113          $core->blog->settings->put('miniurl_protocols', 
    107114               $_POST['miniurl_protocols'], 
     
    132139          if ($O->isMini($str)) 
    133140               throw new Exception(__('This link is already a short link')); 
     141 
     142          if ($core->blog->settings->miniurl_only_blog && !$O->isBlog($str)) 
     143               throw new Exception(__('This link is not a blog link')); 
    134144 
    135145          if (!$O->isAllowed($str)) 
     
    366376    </p> 
    367377 
     378    <p><label class="classic"><?php echo 
     379      form::checkbox(array('miniurl_only_blog'),'1', 
     380       $core->blog->settings->miniurl_only_blog).' '. 
     381     __('Limit shorturl to current blog'); ?> 
     382     </label></p> 
     383    <p class="form-note"> 
     384      <?php echo __('Only link started with this blog url could be shortened'); ?> 
     385    </p> 
     386 
    368387    <p><label class="classic"> 
    369388      <?php echo __('Allowed protocols'); ?><br /> 
  • plugins/dcMiniUrl/locales/fr/main.lang.php

    r1408 r1414  
    22// Language: français  
    33// Module: dcMiniUrl - 0.2 
    4 // Date: 2009-08-22 13:10:33  
     4// Date: 2009-08-23 01:27:20  
    55// Author: JC Denis, jcdenis@gdwd.com 
    66// Translated with dcTranslater - 0.2.4  
    77 
    8 #index.php:232 
    9 $GLOBALS['__l10n']['Links shortener'] = 'Raccourcisseur de lien'; 
     8#index.php:242 
     9$GLOBALS['__l10n']['Links shortener'] = 'Raccourcisseur de liens'; 
    1010 
    1111#index.php:46 
    1212$GLOBALS['__l10n']['Short link'] = 'Lien court'; 
    1313 
    14 #index.php:254 
     14#index.php:264 
    1515$GLOBALS['__l10n']['Create short link'] = 'Créer un lien court'; 
    1616 
    17 #_public.php:337 
     17#_public.php:417 
    1818$GLOBALS['__l10n']['never followed'] = 'jamais suivi'; 
    1919 
    20 #_public.php:339 
     20#_public.php:419 
    2121$GLOBALS['__l10n']['followed one time'] = 'suivi une fois'; 
    2222 
    23 #_public.php:341 
     23#_public.php:421 
    2424$GLOBALS['__l10n']['followed %s times'] = 'suivi %s fois'; 
    2525 
    26 #_admin.php:156 
     26#_admin.php:158 
    2727$GLOBALS['__l10n']['create short link'] = 'créer un lien court'; 
    2828 
     
    3333$GLOBALS['__l10n']['reset short link counter'] = 'RAZ du conteur d\'un lien court'; 
    3434 
    35 #_public.php:102 
     35#_public.php:113 
    3636$GLOBALS['__l10n']['Failed to verify protected field'] = 'Impossible de verifier le champ de protection'; 
    3737 
    38 #index.php:130 
     38#index.php:137 
    3939$GLOBALS['__l10n']['This link is too short'] = 'Ce lien est trop court'; 
    4040 
    41 #index.php:133 
     41#index.php:140 
    4242$GLOBALS['__l10n']['This link is already a short link'] = 'Ce lien est déjà un lien court'; 
    4343 
    44 #index.php:136 
     44#index.php:143 
     45$GLOBALS['__l10n']['This link is not a blog link'] = 'Ce lien n\'appartient pas à ce blog'; 
     46 
     47#index.php:146 
    4548$GLOBALS['__l10n']['This type of link is not allowed'] = 'Ce type de lien n\'est pas autorisé'; 
    4649 
    47 #index.php:160 
     50#index.php:170 
    4851$GLOBALS['__l10n']['Failed to create short link'] = 'Impossible de créer le lien court'; 
    4952 
    50 #index.php:157 
     53#index.php:167 
    5154$GLOBALS['__l10n']['Short link for %s is %s'] = 'Le lien court pour %s est %s'; 
    5255 
    53 #index.php:239 
     56#index.php:249 
    5457$GLOBALS['__l10n']['Long link:'] = 'Lien long :'; 
    5558 
    56 #_public.php:295 
     59#_public.php:372 
    5760$GLOBALS['__l10n']['Write "%s" in next field:'] = 'Écrire "%s" dans le champs suivant :'; 
    5861 
    59 #_public.php:298 
     62#_public.php:375 
    6063$GLOBALS['__l10n']['Create'] = 'Créer'; 
    6164 
    62 #index.php:235 
     65#index.php:245 
    6366$GLOBALS['__l10n']['Shorten link'] = 'Raccourcir un lien'; 
    6467 
     
    7174#_widgets.php:39 
    7275$GLOBALS['__l10n']['Limit:'] = 'Limite :'; 
     76 
     77#_widgets.php:40 
     78$GLOBALS['__l10n']['Hide no followed links:'] = 'Cacher les liens non suivis :'; 
    7379 
    7480#inc/lib.miniurl.list.php:20 
     
    9096$GLOBALS['__l10n']['Follow'] = 'Suivie'; 
    9197 
    92 #index.php:127 
     98#index.php:134 
    9399$GLOBALS['__l10n']['Nothing to shorten'] = 'Rien à raccourcir'; 
    94100 
    95 #index.php:143 
     101#index.php:153 
    96102$GLOBALS['__l10n']['This short link is already taken'] = 'Ce lien court est déjà pris'; 
    97103 
    98 #index.php:148 
     104#index.php:158 
    99105$GLOBALS['__l10n']['This custom short link is already taken'] = 'Ce lien court personnalisé est déjà pris'; 
    100106 
    101 #index.php:244 
     107#index.php:254 
    102108$GLOBALS['__l10n']['Custom short link:'] = 'Lien court personalisé :'; 
    103109 
    104 #index.php:249 
     110#index.php:259 
    105111$GLOBALS['__l10n']['Only for custom short link.'] = 'Seulement pour un lien personnalisé'; 
    106112 
    107 #index.php:313 
     113#index.php:323 
    108114$GLOBALS['__l10n']['Selected links action:'] = 'Action sur les liens selectionnés :'; 
    109115 
    110 #index.php:333 
     116#index.php:343 
    111117$GLOBALS['__l10n']['Settings'] = 'Paramètres'; 
    112118 
    113 #index.php:338 
     119#index.php:348 
    114120$GLOBALS['__l10n']['Enable plugin'] = 'Activer l\'extension'; 
    115121 
    116 #index.php:344 
     122#index.php:354 
    117123$GLOBALS['__l10n']['Enable public page'] = 'Activer la page public'; 
    118124 
    119 #index.php:347 
     125#index.php:357 
    120126$GLOBALS['__l10n']['Allowed users to shortcut their links on public side'] = 'Autoriser les utilisateurs à créer leurs propres liens courts depuis une page publique'; 
    121127 
    122 #index.php:353 
     128#index.php:363 
    123129$GLOBALS['__l10n']['Enable auto shorturl on public urls'] = 'Activer la création automatique de lien court coté public'; 
    124130 
    125 #index.php:356 
     131#index.php:366 
    126132$GLOBALS['__l10n']['Shortcut links automatically when using template value like "EntryMiniUrl"'] = 'Raccourcir automatiquement les liens lors de l\'utilisation de balise de template comme "EntryMiniUrl"'; 
    127133 
    128 #index.php:362 
     134#index.php:372 
    129135$GLOBALS['__l10n']['Enable auto shorturl on contents'] = 'Activer la création automatique des liens courts sur les contenus'; 
    130136 
    131 #index.php:365 
     137#index.php:375 
    132138$GLOBALS['__l10n']['Shortcut links automatically found in contents when creating entry or comment'] = 'Raccourcir automatiquement les liens trouvés lors de la création de contenu comme les billets ou les commentaires'; 
    133139 
    134 #index.php:369 
     140#index.php:381 
     141$GLOBALS['__l10n']['Limit shorturl to current blog'] = 'Limiter la création de liens courts à ce blog'; 
     142 
     143#index.php:384 
     144$GLOBALS['__l10n']['Only link started with this blog url could be shortened'] = 'Uniquement les liens commençant par l\'URL de ce blog peuvent être raccroucis'; 
     145 
     146#index.php:388 
    135147$GLOBALS['__l10n']['Allowed protocols'] = 'Protocoles autorisés'; 
    136148 
    137 #index.php:374 
     149#index.php:393 
    138150$GLOBALS['__l10n']['Use comma seperated list like: "http:,https:,ftp:"'] = 'Utiliser une virgule pour séparer les protocoles, ex: "http:,https:,ftp:"'; 
    139151 
    140 #index.php:389 
     152#index.php:408 
    141153$GLOBALS['__l10n']['Note this'] = 'Á noter'; 
    142154 
    143 #index.php:392 
     155#index.php:411 
    144156$GLOBALS['__l10n']['If you use this plugin then uninstall it, note that you loose all short links'] = 'Si vous utilisez cette extention puis vous la désinstallez, notez que vous perdrez tous vos liens courts'; 
    145157 
    146 #index.php:396 
     158#index.php:415 
    147159$GLOBALS['__l10n']['We recommand that you use a rewrite engine in order to remove \'index.php\' from your blog\'s URLs'] = 'Nous vous recommandons d\'utiliser un system de réécriture d\'URL afin de supprimer "index.php" des URLs de votre blog'; 
    148160 
    149 #index.php:398 
     161#index.php:417 
    150162$GLOBALS['__l10n']['You can find more about this on the Dotclear Documentation'] = 'Vous pouvez trouver plus d\'information à ce sujet sur la Documentation Dotclear'; 
    151163 
  • plugins/dcMiniUrl/locales/fr/main.po

    r1408 r1414  
    11# Language: français 
    22# Module: dcMiniUrl - 0.2 
    3 # Date: 2009-08-22 13:10:33 
     3# Date: 2009-08-23 01:27:20 
    44# Author: JC Denis, jcdenis@gdwd.com 
    55# Translated with dcTranslater - 0.2.4 
     
    88msgstr "Content-Type: text/plain; charset=UTF-8\n" 
    99 
    10 #: index.php:232 
     10#: index.php:242 
    1111msgid "Links shortener" 
    12 msgstr "Raccourcisseur de lien" 
     12msgstr "Raccourcisseur de liens" 
    1313 
    1414#: index.php:46 
     
    1616msgstr "Lien court" 
    1717 
    18 #: index.php:254 
     18#: index.php:264 
    1919msgid "Create short link" 
    2020msgstr "Créer un lien court" 
    2121 
    22 #: _public.php:337 
     22#: _public.php:417 
    2323msgid "never followed" 
    2424msgstr "jamais suivi" 
    2525 
    26 #: _public.php:339 
     26#: _public.php:419 
    2727msgid "followed one time" 
    2828msgstr "suivi une fois" 
    2929 
    30 #: _public.php:341 
     30#: _public.php:421 
    3131msgid "followed %s times" 
    3232msgstr "suivi %s fois" 
    3333 
    34 #: _admin.php:156 
     34#: _admin.php:158 
    3535msgid "create short link" 
    3636msgstr "créer un lien court" 
     
    4444msgstr "RAZ du conteur d'un lien court" 
    4545 
    46 #: _public.php:102 
     46#: _public.php:113 
    4747msgid "Failed to verify protected field" 
    4848msgstr "Impossible de verifier le champ de protection" 
    4949 
    50 #: index.php:130 
     50#: index.php:137 
    5151msgid "This link is too short" 
    5252msgstr "Ce lien est trop court" 
    5353 
    54 #: index.php:133 
     54#: index.php:140 
    5555msgid "This link is already a short link" 
    5656msgstr "Ce lien est déjà un lien court" 
    5757 
    58 #: index.php:136 
     58#: index.php:143 
     59msgid "This link is not a blog link" 
     60msgstr "Ce lien n'appartient pas à ce blog" 
     61 
     62#: index.php:146 
    5963msgid "This type of link is not allowed" 
    6064msgstr "Ce type de lien n'est pas autorisé" 
    6165 
    62 #: index.php:160 
     66#: index.php:170 
    6367msgid "Failed to create short link" 
    6468msgstr "Impossible de créer le lien court" 
    6569 
    66 #: index.php:157 
     70#: index.php:167 
    6771msgid "Short link for %s is %s" 
    6872msgstr "Le lien court pour %s est %s" 
    6973 
    70 #: index.php:239 
     74#: index.php:249 
    7175msgid "Long link:" 
    7276msgstr "Lien long :" 
    7377 
    74 #: _public.php:295 
     78#: _public.php:372 
    7579msgid "Write "%s" in next field:" 
    7680msgstr "Écrire \"%s\" dans le champs suivant :" 
    7781 
    78 #: _public.php:298 
     82#: _public.php:375 
    7983msgid "Create" 
    8084msgstr "Créer" 
    8185 
    82 #: index.php:235 
     86#: index.php:245 
    8387msgid "Shorten link" 
    8488msgstr "Raccourcir un lien" 
     
    96100msgstr "Limite :" 
    97101 
     102#: _widgets.php:40 
     103msgid "Hide no followed links:" 
     104msgstr "Cacher les liens non suivis :" 
     105 
    98106#: inc/lib.miniurl.list.php:20 
    99107msgid "No short link" 
     
    120128msgstr "Suivie" 
    121129 
    122 #: index.php:127 
     130#: index.php:134 
    123131msgid "Nothing to shorten" 
    124132msgstr "Rien à raccourcir" 
    125133 
    126 #: index.php:143 
     134#: index.php:153 
    127135msgid "This short link is already taken" 
    128136msgstr "Ce lien court est déjà pris" 
    129137 
    130 #: index.php:148 
     138#: index.php:158 
    131139msgid "This custom short link is already taken" 
    132140msgstr "Ce lien court personnalisé est déjà pris" 
    133141 
    134 #: index.php:244 
     142#: index.php:254 
    135143msgid "Custom short link:" 
    136144msgstr "Lien court personalisé :" 
    137145 
    138 #: index.php:249 
     146#: index.php:259 
    139147msgid "Only for custom short link." 
    140148msgstr "Seulement pour un lien personnalisé" 
    141149 
    142 #: index.php:313 
     150#: index.php:323 
    143151msgid "Selected links action:" 
    144152msgstr "Action sur les liens selectionnés :" 
    145153 
    146 #: index.php:333 
     154#: index.php:343 
    147155msgid "Settings" 
    148156msgstr "Paramètres" 
    149157 
    150 #: index.php:338 
     158#: index.php:348 
    151159msgid "Enable plugin" 
    152160msgstr "Activer l'extension" 
    153161 
    154 #: index.php:344 
     162#: index.php:354 
    155163msgid "Enable public page" 
    156164msgstr "Activer la page public" 
    157165 
    158 #: index.php:347 
     166#: index.php:357 
    159167msgid "Allowed users to shortcut their links on public side" 
    160168msgstr "Autoriser les utilisateurs à créer leurs propres liens courts depuis une page publique" 
    161169 
    162 #: index.php:353 
     170#: index.php:363 
    163171msgid "Enable auto shorturl on public urls" 
    164172msgstr "Activer la création automatique de lien court coté public" 
    165173 
    166 #: index.php:356 
     174#: index.php:366 
    167175msgid "Shortcut links automatically when using template value like "EntryMiniUrl"" 
    168176msgstr "Raccourcir automatiquement les liens lors de l'utilisation de balise de template comme \"EntryMiniUrl\"" 
    169177 
    170 #: index.php:362 
     178#: index.php:372 
    171179msgid "Enable auto shorturl on contents" 
    172180msgstr "Activer la création automatique des liens courts sur les contenus" 
    173181 
    174 #: index.php:365 
     182#: index.php:375 
    175183msgid "Shortcut links automatically found in contents when creating entry or comment" 
    176184msgstr "Raccourcir automatiquement les liens trouvés lors de la création de contenu comme les billets ou les commentaires" 
    177185 
    178 #: index.php:369 
     186#: index.php:381 
     187msgid "Limit shorturl to current blog" 
     188msgstr "Limiter la création de liens courts à ce blog" 
     189 
     190#: index.php:384 
     191msgid "Only link started with this blog url could be shortened" 
     192msgstr "Uniquement les liens commençant par l'URL de ce blog peuvent être raccroucis" 
     193 
     194#: index.php:388 
    179195msgid "Allowed protocols" 
    180196msgstr "Protocoles autorisés" 
    181197 
    182 #: index.php:374 
     198#: index.php:393 
    183199msgid "Use comma seperated list like: "http:,https:,ftp:"" 
    184200msgstr "Utiliser une virgule pour séparer les protocoles, ex: \"http:,https:,ftp:\"" 
    185201 
    186 #: index.php:389 
     202#: index.php:408 
    187203msgid "Note this" 
    188204msgstr "Á noter" 
    189205 
    190 #: index.php:392 
     206#: index.php:411 
    191207msgid "If you use this plugin then uninstall it, note that you loose all short links" 
    192208msgstr "Si vous utilisez cette extention puis vous la désinstallez, notez que vous perdrez tous vos liens courts" 
    193209 
    194 #: index.php:396 
     210#: index.php:415 
    195211msgid "We recommand that you use a rewrite engine in order to remove 'index.php' from your blog's URLs" 
    196212msgstr "Nous vous recommandons d'utiliser un system de réécriture d'URL afin de supprimer \"index.php\" des URLs de votre blog" 
    197213 
    198 #: index.php:398 
     214#: index.php:417 
    199215msgid "You can find more about this on the Dotclear Documentation" 
    200216msgstr "Vous pouvez trouver plus d'information à ce sujet sur la Documentation Dotclear" 
  • plugins/dcMiniUrl/release.txt

    r1408 r1414  
     10.4 xxxxxxxx 
     2 - Fixed bugs on url specialchars on admin post 
     3 - Fixed extra args to be redirect 
     4 
     50.3 20090828 
     6 * Fixed failed to delete miniurl from admin 
     7 * Added option to limit short url to blog 
     8 * Added postWidgetText support 
     9 * Added _uninstall.php feature 
     10 
    1110.2 20090822 
    212 * First public release 
Note: See TracChangeset for help on using the changeset viewer.

Sites map