Dotclear


Ignore:
Timestamp:
11/09/09 12:29:03 (14 years ago)
Author:
JcDenis
Message:

licenseBoostrap 0.2

Location:
plugins/licenseBootstrap
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/licenseBootstrap/_define.php

    r1561 r1866  
    1717     /* Description*/         "Add license to your plugins and themes", 
    1818     /* Author */        "JC Denis", 
    19      /* Version */       '0.1', 
     19     /* Version */       '0.2', 
    2020     /* Permissions */        null 
    2121); 
    22      /* date */          #20091002 
     22     /* date */          #20091109 
    2323?> 
  • plugins/licenseBootstrap/_prepend.php

    r1561 r1866  
    2727     ); 
    2828} 
     29 
     30if ($core->blog->settings->licensebootstrap_translater_behavior) 
     31{ 
     32     $core->addBehavior( 
     33          'dcTranslaterAfterWriteLangFile', 
     34          array('licenseBootstrap','dcTranslaterAfterWriteLangFile') 
     35     ); 
     36} 
    2937?> 
  • plugins/licenseBootstrap/inc/class.license.bootstrap.php

    r1561 r1866  
    1515class licenseBootstrap 
    1616{ 
    17      # $core : dcCore 
    18      # $type : type of module, could be plugin or theme 
    19      # $id : module id 
    20      # $info : module info from dcModules 
    21      # $exts : array of files extensions to parse 
    22      # $license : license type (ex: gpl2) 
    23      # $header : special license header (used default if empty) 
    24      # $overwite : overwrite existing license in module 
    25      # 
    26      public static function license($core,$type,$id,$info,$exts=array('php','js'),$license='gpl2',$header='',$overwrite=false) 
    27      { 
    28           $info['id'] = $id; 
    29           $info['type'] = $type; 
    30           $info['user_cn'] = $core->auth->getInfo('user_cn'); 
    31           $info['user_name'] = $core->auth->getInfo('user_name'); 
    32           $info['user_email'] = $core->auth->getInfo('user_email'); 
     17     public $core; 
     18     public $extensions; 
     19     public $license; 
     20     public $head; 
     21     public $full; 
     22     public $addfull; 
     23     public $overwrite; 
     24     public $exclusion; 
     25 
     26     public function __construct($core,$extensions=null,$license=null,$head=null,$addfull=true,$overwrite=false,$exclusion='') 
     27     { 
     28          $this->core = $core; 
     29          $this->overwrite = (boolean) $overwrite; 
     30          $this->exclusion = (string) $exclusion; 
     31          $this->license = (string) $license; 
     32 
     33          $this->extensions = self::getDefaultExtensions($extensions); 
     34          $this->head = self::getDefaultLicenses('head',$license,$head); 
     35          $this->full = self::getDefaultLicenses('full',$license); 
     36     } 
     37 
     38     public function moduleInfo($type,$id) 
     39     { 
     40          $info = array(); 
     41 
     42          if ($type == 'plugin') 
     43          { 
     44               $modules = $this->core->plugins; 
     45          } 
     46          elseif ($type = 'theme') 
     47          { 
     48               $modules = new dcModules($core); 
     49               $modules->loadModules($this->core->blog->themes_path,null); 
     50          } 
     51          else 
     52          { 
     53               $type = ''; 
     54          } 
     55 
     56          if ($type && $modules->moduleExists($id)) 
     57          { 
     58               $info = $modules->getModules($id); 
     59               $info['user_cn'] = $this->core->auth->getInfo('user_cn'); 
     60               $info['user_name'] = $this->core->auth->getInfo('user_name'); 
     61               $info['user_email'] = $this->core->auth->getInfo('user_email'); 
     62          } 
     63 
     64          return $info; 
     65     } 
     66 
     67     public function writeModuleLicense($type,$id) 
     68     { 
     69          $info = $this->moduleInfo($type,$id); 
    3370 
    3471          # Try if root is writable 
     
    3976          $root = $info['root']; 
    4077 
    41           # Try if license exists 
    42           $licenses_dir = dirname(__FILE__).'/licenses'; 
    43           if (!file_exists($licenses_dir.'/'.$license.'.head.txt') 
    44            || !file_exists($licenses_dir.'/'.$license.'.full.txt')) 
    45           { 
    46                throw new Exception('Unknow license type'); 
    47           } 
    48  
    4978          # Get license text 
    50           $head = empty($header) ?  
    51                file_get_contents($licenses_dir.'/'.$license.'.head.txt') : $header; 
    52           $head = self::parseInfo($info,$head); 
    53           $full = file_get_contents($licenses_dir.'/'.$license.'.full.txt'); 
    54           $full = self::parseInfo($info,$full); 
     79          $head = self::parseInfo($type,$id,$info,$this->head[$this->license]); 
     80          $full = self::parseInfo($type,$id,$info,$this->full[$this->license]); 
    5581 
    5682          # Get files from module root 
     
    6490          if (!file_exists($root.'/LICENSE') || $overwrite) 
    6591          { 
    66                file_put_contents($root.'/LICENSE',$full); 
     92               files::putContent($root.'/LICENSE',$full); 
    6793          } 
    6894 
     
    7298               if (!is_file($root.'/'.$file)) continue; 
    7399 
     100               if (!empty($this->exclusion)) 
     101               { 
     102                    if (preg_match($this->exclusion,$file)) continue; 
     103               } 
     104 
    74105               $ext = files::getExtension($file) ; 
    75106               $func = 'filesLicenseBootstrap::'.$ext.'File'; 
    76                if (!in_array($ext,$exts) || !is_callable($func)) continue; 
     107               if (!in_array($ext,$this->extensions) || !is_callable($func)) continue; 
    77108 
    78109               $content = file_get_contents($root.'/'.$file); 
    79110 
    80                $content = call_user_func($func,$content,$head,$overwrite); 
     111               $content = call_user_func($func,$content,$head,$this->overwrite); 
    81112 
    82113               if (!empty($content)) 
    83114               { 
    84                     file_put_contents($root.'/'.$file,$content); 
     115                    files::putContent($root.'/'.$file,$content); 
    85116               } 
    86117          } 
     
    88119     } 
    89120 
    90      public static function getDefaultExts() 
    91      { 
    92           return array('php','js'); 
    93      } 
    94  
    95      public static function getDefaultHeaders() 
     121     public function addFileLicense($type,$id,$file,$content) 
     122     { 
     123          $info = $this->moduleInfo($type,$id); 
     124 
     125          $head = self::parseInfo($type,$id,$info,$this->head); 
     126 
     127          if (!empty($this->exclusion)) 
     128          { 
     129               if (preg_match($this->exclusion,$file)) return $content; 
     130          } 
     131 
     132          $ext = files::getExtension($file) ; 
     133          $func = 'filesLicenseBootstrap::'.$ext.'File'; 
     134          if (!in_array($ext,$this->extensions) || !is_callable($func)) return $content; 
     135 
     136          return call_user_func($func,$content,$head[$this->license],$this->overwrite); 
     137     } 
     138 
     139     public static function getDefaultExtensions($exts=null) 
     140     { 
     141          $default = array('php','js'); 
     142          if (null === $exts) $exts = $default; 
     143          elseif (!is_array($exts)) $exts = array($exts); 
     144 
     145          return array_intersect($default,$exts); 
     146     } 
     147 
     148     public static function getDefaultLicenses($type='head',$license=null,$content=null) 
    96149     { 
    97150          $rs = array(); 
    98           $files = files::scandir(dirname(__FILE__).'/licenses'); 
    99           foreach($files as $file) 
    100           { 
    101                if (preg_match('/^(.*?)\.head\.txt$/',$file,$m)) 
    102                { 
    103                     $rs[$m[1]] = file_get_contents(dirname(__FILE__).'/licenses/'.$m[0]); 
     151 
     152          if ($license && $content) 
     153          { 
     154               $rs = array($license => $content); 
     155          } 
     156 
     157          if ($license && !$content) 
     158          { 
     159               $f = dirname(__FILE__).'/licenses/'.$license.'.'.$type.'.txt'; 
     160               if (file_exists($f)) 
     161               { 
     162                    $rs = array($license => file_get_contents($f)); 
     163               } 
     164          } 
     165 
     166          if (!$license) 
     167          { 
     168               $files = files::scandir(dirname(__FILE__).'/licenses'); 
     169               foreach($files as $file) 
     170               { 
     171                    if (preg_match('/^(.*?)\.'.$type.'\.txt$/',$file,$m)) 
     172                    { 
     173                         $rs[$m[1]] = file_get_contents(dirname(__FILE__).'/licenses/'.$m[0]); 
     174                    } 
    104175               } 
    105176          } 
     
    107178     } 
    108179 
    109      private function parseInfo($info,$text) 
     180     private function parseInfo($type,$id,$info,$text) 
    110181     { 
    111182          return str_replace( 
     
    122193               array( 
    123194                    date('Y'), 
    124                     $info['id'], 
     195                    $id, 
    125196                    $info['name'], 
    126197                    $info['author'], 
    127                     $info['type'], 
     198                    $type, 
    128199                    $info['user_cn'], 
    129200                    $info['user_name'], 
     
    168239     } 
    169240 
    170      public static function packmanBeforeCreatePackage($info,$a,$b) 
     241     public static function packmanBeforeCreatePackage($info,$a,$b,$c,$d) 
    171242     { 
    172243          global $core; 
     244 
    173245          $s =& $core->blog->settings; 
     246 
     247          $addfull = (boolean) $s->licensebootstrap_addfull; 
    174248          $overwrite = (boolean) $s->licensebootstrap_overwrite; 
     249          $exclusion = $s->licensebootstrap_exclusion; 
     250 
    175251          $license = $s->licensebootstrap_license; 
    176252          if (empty($license)) $license = 'gpl2'; 
     253 
    177254          $exts = licenseBootstrap::decode($s->licensebootstrap_files_exts); 
    178           if (!is_array($exts)) $exts = self::getDefaultExts(); 
     255          if (!is_array($exts)) $exts = self::getDefaultExtensions(); 
     256 
    179257          $headers = licenseBootstrap::decode($s->licensebootstrap_licenses_headers); 
    180           if (!is_array($headers)) $headers = self::getDefaultheaders(); 
    181            
    182           self::license($core,$info['type'],$info['id'],$info,$exts,$license,$headers[$license],$overwrite); 
     258          if (!is_array($headers)) $headers = self::getDefaulLicenses(); 
     259 
     260          $license = new licenseBootstrap($core,$exts,$license,$headers[$license],$addfull,$overwrite,$exclusion); 
     261          $license->writeModuleLicense($info['type'],$info['id']); 
     262     } 
     263 
     264     public static function dcTranslaterAfterWriteLangFile($f,$file,$content,$throw) 
     265     { 
     266          if (!$f) return; 
     267 
     268          global $core; 
     269 
     270          $id = ''; 
     271          $type = 'theme'; 
     272          $dir = path::real($file); 
     273 
     274          # Is a plugin 
     275          $plugins_roots = explode(PATH_SEPARATOR,DC_PLUGINS_ROOT); 
     276          foreach($plugins_roots as $path) 
     277          { 
     278               $root = path::real($path); 
     279               if ($root == substr($dir,0,strlen($root))) 
     280               { 
     281                    $type = 'plugin'; 
     282                    $reg = '/'.preg_quote($root,'/').'\/([^\/]+)\/(.*?)/'; 
     283                    if (!preg_match($reg,$dir,$m)) 
     284                    { 
     285                         if ($throw) 
     286                         { 
     287                              throw new Exception('Failed to retreive module id for adding license'); 
     288                         } 
     289                         //return; 
     290                    } 
     291                    $id = $m[1]; 
     292                    break; 
     293               } 
     294          } 
     295          # Not a plugin try a theme 
     296          if ($type == 'theme') 
     297          { 
     298               $path = $core->blog->themes_path; 
     299               $root = path::real($path); 
     300               if ($root == substr($dir,0,strlen($root))) 
     301               { 
     302                    $reg = '/'.preg_quote($root,'/').'\/([^\/]+)\/(.*?)/'; 
     303                    if (!preg_match($reg,$dir,$m)) 
     304                    { 
     305                         if ($throw) 
     306                         { 
     307                              throw new Exception('Failed to retreive module id for adding license'); 
     308                         } 
     309                         //return; 
     310                    } 
     311                    $id = $m[1]; 
     312               } 
     313          } 
     314          # Not a plugin nor theme 
     315          if (empty($id)) return; 
     316 
     317          $s =& $core->blog->settings; 
     318 
     319          $addfull = (boolean) $s->licensebootstrap_addfull; 
     320          $overwrite = (boolean) $s->licensebootstrap_overwrite; 
     321          $exclusion = $s->licensebootstrap_exclusion; 
     322 
     323          $license = $s->licensebootstrap_license; 
     324          if (empty($license)) $license = 'gpl2'; 
     325 
     326          $exts = licenseBootstrap::decode($s->licensebootstrap_files_exts); 
     327          if (!is_array($exts)) $exts = self::getDefaultExtensions(); 
     328 
     329          $headers = licenseBootstrap::decode($s->licensebootstrap_licenses_headers); 
     330          if (!is_array($headers)) $headers = self::getDefaultLicenses(); 
     331 
     332          $license = new licenseBootstrap($core,$exts,$license,$headers[$license],$addfull,$overwrite,$exclusion); 
     333          $content = $license->addFileLicense($type,$id,$file,$content); 
     334 
     335          files::putContent($file,$content); 
    183336     } 
    184337} 
  • plugins/licenseBootstrap/index.php

    r1561 r1866  
    1717 
    1818# Default lists 
    19 $default_exts = licenseBootstrap::getDefaultExts(); 
    20 $default_headers = licenseBootstrap::getDefaultHeaders(); 
     19$default_exts = licenseBootstrap::getDefaultExtensions(); 
     20$default_headers = licenseBootstrap::getDefaultLicenses(); 
    2121 
    2222# Modules lists 
     
    2727# Settings 
    2828$s =& $core->blog->settings; 
     29$addfull = (boolean) $s->licensebootstrap_addfull; 
    2930$overwrite = (boolean) $s->licensebootstrap_overwrite; 
    3031$license = $s->licensebootstrap_license; 
     
    3435$licenses_headers = licenseBootstrap::decode($s->licensebootstrap_licenses_headers); 
    3536if (!is_array($licenses_headers)) $licenses_headers = array(); 
     37$exclusion = $s->licensebootstrap_exclusion; 
    3638 
    3739# Add to packman 
    3840$packman_behavior = $s->licensebootstrap_packman_behavior; 
    39  
    40 # Actions 
     41# Add to translater 
     42$translater_behavior = $s->licensebootstrap_translater_behavior; 
     43 
    4144try 
    4245{ 
     
    4548     { 
    4649          $s->setNamespace('licenseBootstrap'); 
     50          $s->put('licensebootstrap_addfull',true); 
    4751          $s->put('licensebootstrap_overwrite',false); 
    4852          $s->put('licensebootstrap_license','gpl2'); 
     
    5155          $s->put('licensebootstrap_licenses_headers', 
    5256               licenseBootstrap::encode($default_headers)); 
     57          $s->put('licensebootstrap_exclusion',''); 
    5358          $s->put('licensebootstrap_packman_behavior',false); 
     59          $s->put('licensebootstrap_translater_behavior',false); 
    5460          $s->setNamespace('system'); 
    5561 
     
    6066     if (isset($_POST['save_settings'])) 
    6167     { 
     68          $addfull = !empty($_POST['addfull']); 
    6269          $overwrite = !empty($_POST['overwrite']); 
    6370          $license = $_POST['license']; 
     
    6673          $licenses_headers = is_array($_POST['licenses_headers']) ?  
    6774               $_POST['licenses_headers'] : array(); 
     75          $exclusion = $_POST['exclusion']; 
    6876          $packman_behavior = !empty($_POST['packman_behavior']); 
     77          $translater_behavior = !empty($_POST['translater_behavior']); 
    6978 
    7079          $s->setNamespace('licenseBootstrap'); 
     80          $s->put('licensebootstrap_addfull',$addfull); 
    7181          $s->put('licensebootstrap_overwrite',$overwrite); 
    7282          $s->put('licensebootstrap_license',$license); 
     
    7585          $s->put('licensebootstrap_licenses_headers', 
    7686               licenseBootstrap::encode($licenses_headers)); 
     87          $s->put('licensebootstrap_exclusion',$exclusion); 
    7788          $s->put('licensebootstrap_packman_behavior',$packman_behavior); 
     89          $s->put('licensebootstrap_translater_behavior',$translater_behavior); 
    7890          $s->setNamespace('system'); 
    7991 
    8092          http::redirect($p_url.'&tab=setting&done=1'); 
    8193     } 
     94     # Object 
     95     $LB = new licenseBootstrap($core,$files_exts,$license,$licenses_headers[$license],$addfull,$overwrite,$exclusion); 
     96 
    8297 
    8398     # Add license to files 
     
    95110          foreach ($modules as $id) 
    96111          { 
    97                $info = ($type == 'theme') ?  
    98                     $themes->getModules($id) : 
    99                     $plugins->getModules($id); 
    100  
    101                if (null === $info) 
    102                { 
    103                     throw new Exception('No such module '.$id); 
    104                } 
    105  
    106                licenseBootstrap::license($core,$type,$id,$info,$files_exts, 
    107                     $license,$licenses_headers[$license],$overwrite 
    108                ); 
     112               $LB->writeModuleLicense($type,$id); 
    109113          } 
    110114 
     
    142146<p><label class="classic">'. 
    143147form::checkbox(array('overwrite'),'1',$overwrite).' '. 
    144 __('Overwrite existing license').'</label></p>'; 
     148__('Overwrite existing license').'</label></p> 
     149<p><label class="classic">'. 
     150form::checkbox(array('addfull'),'1',$addfull).' '. 
     151__('Add full LICENSE file to module root').'</label></p>'; 
    145152 
    146153foreach($default_exts as $ext) 
     
    153160 
    154161echo ' 
     162<p><label>'.__('Exclusion:'). 
     163form::field('exclusion',60,255,html::escapeHTML($exclusion)).' 
     164</label></p> 
     165</fieldset> 
     166<fieldset><legend>'.__('Tricks').'</legend> 
    155167<p><label class="classic">'. 
    156168form::checkbox(array('packman_behavior'),'1',$packman_behavior).' '. 
    157169__('Add license before create package with plugin pacKman').'</label></p> 
     170<p><label class="classic">'. 
     171form::checkbox(array('translater_behavior'),'1',$translater_behavior).' '. 
     172__('Add license after create lang file with plugin translater').'</label></p> 
    158173</fieldset> 
    159174<fieldset><legend>'.__('Headers').'</legend>'; 
     
    188203<hr class="clear"/> 
    189204<p class="right"> 
    190 pacKman - '.$core->plugins->moduleInfo('licenseBootstrap','version').'&nbsp; 
     205licenseBootstrap - '.$core->plugins->moduleInfo('licenseBootstrap','version').'&nbsp; 
    191206<img alt="'.__('licenseBootstrap').'" src="index.php?pf=licenseBootstrap/icon.png" /> 
    192207</p></body></html>'; 
  • plugins/licenseBootstrap/locales/en/help/help.html

    r1561 r1866  
    1616  <dt>Ajouter la licence aux entêtes de fichiers</dt> 
    1717  <dd>Permet de selectionner les types de fichiers auquels il faut ajouter la licence.</dd> 
     18 
     19  <dt>Exclusion</dt> 
     20  <dd>Permet d'exclure certains fichiers ou dossiers. Dans ce champs il faut utiliser une expression rationnelle.<br /> 
     21  Par exemple pour ne pas affecter les fichiers de traduction, il faut écrire:</br /> 
     22  /(\/locales\/)/</dd> 
    1823</dl> 
     24 
     25<h3>Paramètres des astuces</h3> 
     26<p>Ces paramètres utilisent les behaviors de certains plugins pour automatiser les ajouts de licence.</p> 
     27<dl> 
     28  <dt>Ajouter la licence avant de créer un paquetage avec le plugin pacKman</dt> 
     29  <dd>Si vous avez le plugin pacKman d'installé et que cette option est activé,  
     30  la licence sera ajoutée au module avec la création du paquetage.</dd> 
     31 
     32  <dt>Ajouter la licence après avoir créé une traduction avec le plugin translater</dt> 
     33  <dd>Si vous avez le plugin translater d'installé et que cette option est activé,  
     34  la licence sera ajoutée aux fichiers de traduction lors de la création de ces derniers.<br /> 
     35  Attention la liste d'exclusion est prioritaire.</dd> 
     36</dl> 
     37 
    1938<h3>Paramètres des entêtes</h3> 
    2039<p> 
  • plugins/licenseBootstrap/locales/fr/help/help.html

    r1712 r1866  
    1919  <dd>Permet de sélectionner les types de fichiers auxquels il faut ajouter la licence.</dd> 
    2020 
     21  <dt>Exclusion</dt> 
     22  <dd>Permet d'exclure certains fichiers ou dossiers. Dans ce champs il faut utiliser une expression rationnelle.<br /> 
     23  Par exemple pour ne pas affecter les fichiers de traduction, il faut écrire:</br /> 
     24  /(\/locales\/)/</dd> 
     25</dl> 
     26 
     27<h3>Paramètres des astuces</h3> 
     28<p>Ces paramètres utilisent les behaviors de certains plugins pour automatiser les ajouts de licence.</p> 
     29<dl> 
    2130  <dt>Ajouter la licence avant de créer un paquetage avec le plugin pacKman</dt> 
    2231  <dd>Si le plugin pacKman est installé et que cette option est activée,  
    2332  la licence sera ajoutée au module avec la création du paquetage.</dd> 
     33 
     34  <dt>Ajouter la licence après avoir créé une traduction avec le plugin translater</dt> 
     35  <dd>Si vous avez le plugin translater d'installé et que cette option est activé,  
     36  la licence sera ajoutée aux fichiers de traduction lors de la création de ces derniers.<br /> 
     37  Attention la liste d'exclusion est prioritaire.</dd> 
    2438</dl> 
     39 
    2540<h3>Paramètres des entêtes</h3> 
    2641<p>Les entêtes sont les résumés de licence. Elles sont placées en haut de chaque fichier d'un module sous forme de commentaire. 
  • plugins/licenseBootstrap/locales/fr/main.lang.php

    r1561 r1866  
    11<?php 
    2 # -- BEGIN LICENSE BLOCK ---------------------------------- 
    3 # This file is part of licenseBootstrap, a plugin for Dotclear 2. 
    4 #  
    5 # Copyright (c) 2009 JC Denis and contributors 
    6 # jcdenis@gdwd.com 
    7 #  
    8 # Licensed under the GPL version 2.0 license. 
    9 # A copy of this license is available in LICENSE file or at 
    10 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    11 # -- END LICENSE BLOCK ------------------------------------ 
    12  
    132// Language: français  
    143// Module: licenseBootstrap - 0.1 
    15 // Date: 2009-10-09 00:50:02  
    16 // Translated with dcTranslater - 1.1  
     4// Date: 2009-11-09 11:16:01  
     5// Translated with dcTranslater - 1.3  
    176 
    187#inc/lib.license.bootstrap.index.php:25 
    19 $GLOBALS['__l10n']['License successfully included'] = 'Licence inclue avec succès'; 
     8$GLOBALS['__l10n']['License successfully included'] = 'Licence incluse avec succès'; 
    209 
    2110#inc/lib.license.bootstrap.index.php:32 
     
    3120$GLOBALS['__l10n']['No available module'] = 'Pas de module disponibles'; 
    3221 
    33 #index.php:134 
     22#index.php:138 
    3423$GLOBALS['__l10n']['Settings'] = 'Paramètres'; 
    3524 
    36 #index.php:137 
     25#index.php:141 
    3726$GLOBALS['__l10n']['Configuration successfully saved'] = 'Configuration sauvergardée avec succès'; 
    3827 
    39 #index.php:141 
     28#index.php:145 
    4029$GLOBALS['__l10n']['Files'] = 'Fichiers'; 
    4130 
    42 #index.php:144 
    43 $GLOBALS['__l10n']['Overwrite existing license'] = 'Ecraser la licence existante'; 
     31#index.php:148 
     32$GLOBALS['__l10n']['Overwrite existing license'] = 'Écraser la licence existante'; 
    4433 
    4534#index.php:151 
     35$GLOBALS['__l10n']['Add full LICENSE file to module root'] = 'Ajouter le fichier de licence complet à la racine du module'; 
     36 
     37#index.php:158 
    4638$GLOBALS['__l10n']['Add license to the header of %s files'] = 'Ajouter la licence en entête de fichier %s'; 
    4739 
    48 #index.php:157 
     40#index.php:166 
     41$GLOBALS['__l10n']['Tricks'] = 'Astuces'; 
     42 
     43#index.php:169 
    4944$GLOBALS['__l10n']['Add license before create package with plugin pacKman'] = 'Ajouter la licence avant de créer un paquetage avec le plugin pacKman'; 
    5045 
    51 #index.php:159 
     46#index.php:172 
     47$GLOBALS['__l10n']['Add license after create lang file with plugin translater'] = 'Ajouter la licence après avoir créé une traduction avec le plugin translater'; 
     48 
     49#index.php:174 
    5250$GLOBALS['__l10n']['Headers'] = 'Entêtes'; 
    5351 
    54 #index.php:170 
     52#index.php:185 
    5553$GLOBALS['__l10n']['License %s:'] = 'Licence %s :'; 
    5654 
    57 #index.php:179 
    58 $GLOBALS['__l10n']['Reset settings'] = 'Remise à zero'; 
     55#index.php:194 
     56$GLOBALS['__l10n']['Reset settings'] = 'Remise à zéro'; 
    5957 
    6058?> 
  • plugins/licenseBootstrap/locales/fr/main.po

    r1712 r1866  
    11# Language: français 
    22# Module: licenseBootstrap - 0.1 
    3 # Date: 2009-10-09 00:50:02 
    4 # Translated with dcTranslater - 1.1 
     3# Date: 2009-11-09 11:16:01 
     4# Translated with translater 1.3 
     5 
    56msgid "" 
    67msgstr "" 
    78"Content-Type: text/plain; charset=UTF-8\n" 
    8 "Project-Id-Version: \n" 
     9"Project-Id-Version: licenseBootstrap 0.1\n" 
    910"POT-Creation-Date: \n" 
    10 "PO-Revision-Date: \n" 
    11 "Last-Translator: Kozlika <kozlika@free.fr>\n" 
     11"PO-Revision-Date: 2009-11-09T11:16:01+00:00\n" 
     12"Last-Translator: JC Denis\n" 
    1213"Language-Team: \n" 
    1314"MIME-Version: 1.0\n" 
     
    3435msgstr "Pas de module disponibles" 
    3536 
    36 #: index.php:134 
     37#: index.php:138 
    3738msgid "Settings" 
    3839msgstr "Paramètres" 
    3940 
    40 #: index.php:137 
     41#: index.php:141 
    4142msgid "Configuration successfully saved" 
    4243msgstr "Configuration sauvergardée avec succès" 
    4344 
    44 #: index.php:141 
     45#: index.php:145 
    4546msgid "Files" 
    4647msgstr "Fichiers" 
    4748 
    48 #: index.php:144 
     49#: index.php:148 
    4950msgid "Overwrite existing license" 
    5051msgstr "Écraser la licence existante" 
    5152 
    5253#: index.php:151 
     54msgid "Add full LICENSE file to module root" 
     55msgstr "Ajouter le fichier de licence complet à la racine du module" 
     56 
     57#: index.php:158 
    5358msgid "Add license to the header of %s files" 
    5459msgstr "Ajouter la licence en entête de fichier %s" 
    5560 
    56 #: index.php:157 
     61#: index.php:166 
     62msgid "Tricks" 
     63msgstr "Astuces" 
     64 
     65#: index.php:169 
    5766msgid "Add license before create package with plugin pacKman" 
    5867msgstr "Ajouter la licence avant de créer un paquetage avec le plugin pacKman" 
    5968 
    60 #: index.php:159 
     69#: index.php:172 
     70msgid "Add license after create lang file with plugin translater" 
     71msgstr "Ajouter la licence après avoir créé une traduction avec le plugin translater" 
     72 
     73#: index.php:174 
    6174msgid "Headers" 
    6275msgstr "Entêtes" 
    6376 
    64 #: index.php:170 
     77#: index.php:185 
    6578msgid "License %s:" 
    6679msgstr "Licence %s :" 
    6780 
    68 #: index.php:179 
     81#: index.php:194 
    6982msgid "Reset settings" 
    7083msgstr "Remise à zéro" 
  • plugins/licenseBootstrap/release.txt

    r1561 r1866  
     10.2 20091109 
     2 * Changed lots of things 
     3 
    140.1 20091009 
    25 * First lab release 
Note: See TracChangeset for help on using the changeset viewer.

Sites map