Dotclear

Changeset 556


Ignore:
Timestamp:
11/10/08 13:51:39 (15 years ago)
Author:
Osku
google:author:
popech
Message:

Carnaval 1.2RC - finally blowup friendly

Location:
plugins/carnaval
Files:
1 added
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/carnaval/_define.php

    r500 r556  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16 if (!defined('DC_RC_PATH')) { return; } 
    1716 
    1817$this->registerModule( 
     
    2019     /* Description*/    'Identify comments and trackbacks', 
    2120     /* Author */        'Osku', 
    22      /* Version */       '1.1', 
     21     /* Version */       '1.2RC1', 
    2322     /* Permissions */   'contentadmin' 
    2423); 
  • plugins/carnaval/_install.php

    r459 r556  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16 if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     16 
     17if (!defined('DC_CONTEXT_ADMIN')) { exit; } 
    1718 
    1819# On lit la version du plugin 
     
    4142     ->comment_author_site('varchar',255,true)       
    4243     ->comment_class('varchar',255,false) 
     44     ->comment_text_color('varchar',7,false) 
     45     ->comment_background_color('varchar',7,false) 
    4346      
    4447     ->primary('pk_carnaval','class_id') 
  • plugins/carnaval/_public.php

    r500 r556  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16 if (!defined('DC_RC_PATH')) { return; } 
    1716 
    18 # New templates values if plugin active 
     17# On surchage les fonctions template 
     18 
    1919if ($core->blog->settings->carnaval_active){ 
    2020$core->tpl->addValue('CommentIfMe',array('tplCarnaval','CommentIfMe')); 
    2121$core->tpl->addValue('PingIfOdd',array('tplCarnaval','PingIfOdd')); 
     22$core->addBehavior('publicHeadContent',array('tplCarnaval','publicHeadContent')); 
    2223} 
    2324 
     
    6162          return html::escapeHTML($classe_perso); 
    6263     } 
     64      
     65      
     66     public static function publicHeadContent(&$core) 
     67     { 
     68          if ($core->blog->settings->theme != 'default') { 
     69               return; 
     70          } 
     71          echo '<style type="text/css">'."\n".self::carnavalStyleHelper()."\n</style>\n"; 
     72     } 
     73      
     74     public static function carnavalStyleHelper() 
     75     { 
     76          $cval = dcCarnaval::getClasses(); 
     77          $css = array(); 
     78          while ($cval->fetch()) 
     79               { 
     80                    $res = ''; 
     81                    $cl_class = $cval->comment_class; 
     82                    $cl_txt = $cval->comment_text_color; 
     83                    $cl_backg = $cval->comment_background_color; 
     84                    self::prop($css,'#comments dd.'.$cl_class,'color',$cl_txt); 
     85                    self::prop($css,'#comments dd.'.$cl_class,'background-color',$cl_backg); 
     86                    self::backgroundImg($css,'#comments dt.'.$cl_class, $cl_backg,$cl_class.'-comment-t.png'); 
     87                    self::backgroundImg($css,'#comments dd.'.$cl_class,$cl_backg,$cl_class.'-comment-b.png'); 
     88                    foreach ($css as $selector => $values) 
     89                    { 
     90                         $res .= $selector." {\n"; 
     91                         foreach ($values as $k => $v) { 
     92                              $res .= $k.':'.$v.";\n"; 
     93                         } 
     94                         $res .= "}\n"; 
     95                    } 
     96               } 
     97               return $res; 
     98     } 
     99 
     100     protected static function prop(&$css,$selector,$prop,$value) 
     101     { 
     102          if ($value) { 
     103               $css[$selector][$prop] = $value; 
     104          } 
     105     } 
     106      
     107     protected static function backgroundImg(&$css,$selector,$value,$image) 
     108     { 
     109          $file = carnavalConfig::imagesPath().'/'.$image; 
     110          if ($value && file_exists($file)){ 
     111               $css[$selector]['background-image'] = 'url('.carnavalConfig::imagesURL().'/'.$image.')'; 
     112          } 
     113     } 
    63114} 
    64115?> 
  • plugins/carnaval/class.dc.carnaval.php

    r358 r556  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1617 
    1718class dcCarnaval 
     
    2324     public static $found;    // Avoid multiple SQL requests 
    2425 
     26     public static function cssPath() 
     27     { 
     28          global $core; 
     29          return path::real($core->blog->public_path).'/carnaval-css'; 
     30     } 
     31      
     32     public static function cssURL() 
     33     { 
     34          global $core; 
     35          return $core->blog->settings->public_url.'/carnaval-css'; 
     36     } 
     37 
    2538     public static function init(&$blog) 
    2639     { 
     
    3952          $strReq = 
    4053               'SELECT class_id, comment_author, comment_author_mail, '. 
    41                'comment_author_site, comment_class '. 
     54               'comment_author_site, comment_class, '. 
     55               'comment_text_color, comment_background_color '. 
    4256               'FROM '.self::$table.' '. 
    4357               "WHERE blog_id = '".self::$con->escape(self::$blog->id)."' "; 
     
    6478     } 
    6579 
    66      public static function addClass($author,$mail,$site='',$class) 
     80     public static function addClass($author,$mail,$site='',$text,$backg,$class) 
    6781     { 
    6882          $cur = self::$con->openCursor(self::$table); 
     
    7387          $cur->comment_author_site  = (string) $site; 
    7488          $cur->comment_class = (string) $class; 
     89          $cur->comment_text_color  = (string) $text; 
     90          $cur->comment_background_color = (string) $backg; 
    7591 
    7692          if ($cur->comment_author == '') { 
     
    93109     } 
    94110 
    95      public static function updateClass($id,$author,$mail='',$site='',$class='') 
     111     public static function updateClass($id,$author,$mail='',$site='',$text,$backg,$class='') 
    96112     { 
    97113          $cur = self::$con->openCursor(self::$table); 
     
    100116          $cur->comment_author_site  = $site; 
    101117          $cur->comment_class = $class; 
     118          $cur->comment_text_color  = $text; 
     119          $cur->comment_background_color = $backg; 
    102120 
    103121          if ($cur->comment_author == '') { 
     
    156174     } 
    157175} 
     176class carnavalConfig 
     177{ 
     178     public static function adjustColor($c) 
     179     { 
     180          if ($c === '') { 
     181               return ''; 
     182          } 
     183           
     184          $c = strtoupper($c); 
     185           
     186          if (preg_match('/^[A-F0-9]{3,6}$/',$c)) { 
     187               $c = '#'.$c; 
     188          } 
     189           
     190          if (preg_match('/^#[A-F0-9]{6}$/',$c)) { 
     191               return $c; 
     192          } 
     193           
     194          if (preg_match('/^#[A-F0-9]{3,}$/',$c)) { 
     195               return '#'.substr($c,1,1).substr($c,1,1).substr($c,2,1).substr($c,2,1).substr($c,3,1).substr($c,3,1); 
     196          } 
     197           
     198          return ''; 
     199     } 
     200      
     201     public static function imagesPath() 
     202     { 
     203          global $core; 
     204          return path::real($core->blog->public_path).'/carnaval-images'; 
     205     } 
     206      
     207     public static function imagesURL() 
     208     { 
     209          global $core; 
     210          return $core->blog->settings->public_url.'/carnaval-images'; 
     211     } 
     212      
     213     public static function canWriteImages($create=false) 
     214     { 
     215          global $core; 
     216           
     217          $public = path::real($core->blog->public_path); 
     218          $imgs = self::imagesPath(); 
     219           
     220          if (!function_exists('imagecreatetruecolor') || !function_exists('imagepng') || !function_exists('imagecreatefrompng')) { 
     221               return false; 
     222          } 
     223           
     224          if (!is_dir($public)) { 
     225               return false; 
     226          } 
     227           
     228          if (!is_dir($imgs)) { 
     229               if (!is_writable($public)) { 
     230                    return false; 
     231               } 
     232               if ($create) { 
     233                    files::makeDir($imgs); 
     234               } 
     235               return true; 
     236          } 
     237           
     238          if (!is_writable($imgs)) { 
     239               return false; 
     240          } 
     241           
     242          return true; 
     243     } 
     244      
     245      
     246     public static function createImages($color,$name) 
     247     { 
     248          if (!self::canWriteImages(true)) { 
     249               throw new Exception(__('Unable to create images.')); 
     250          } 
     251                     
     252          $comment_t = dirname(__FILE__).'/../../plugins/blowupConfig/alpha-img/comment-t.png'; 
     253          $comment_b = dirname(__FILE__).'/../../plugins/blowupConfig/alpha-img/comment-b.png'; 
     254 
     255          $cval_comment_t = $name.'-comment-t.png'; 
     256          $cval_comment_b = $name.'-comment-b.png'; 
     257           
     258          self::dropImage($cval_comment_t); 
     259          self::dropImage($cval_comment_b); 
     260           
     261          $color = self::adjustColor($color); 
     262           
     263          self::commentImages($color,$comment_t,$comment_b,$cval_comment_t,$cval_comment_b); 
     264 
     265     } 
     266      
     267     protected static function commentImages($comment_color,$comment_t,$comment_b,$dest_t,$dest_b) 
     268     { 
     269          $comment_color = sscanf($comment_color,'#%2X%2X%2X'); 
     270                
     271          $d_comment_t = imagecreatetruecolor(500,25); 
     272          $fill = imagecolorallocate($d_comment_t,$comment_color[0],$comment_color[1],$comment_color[2]); 
     273          imagefill($d_comment_t,0,0,$fill); 
     274           
     275          $s_comment_t = imagecreatefrompng($comment_t); 
     276          imagealphablending($s_comment_t,true); 
     277          imagecopy($d_comment_t,$s_comment_t,0,0,0,0,500,25); 
     278           
     279          imagepng($d_comment_t,self::imagesPath().'/'.$dest_t); 
     280          imagedestroy($d_comment_t); 
     281          imagedestroy($s_comment_t); 
     282           
     283          $d_comment_b = imagecreatetruecolor(500,7); 
     284          $fill = imagecolorallocate($d_comment_b,$comment_color[0],$comment_color[1],$comment_color[2]); 
     285          imagefill($d_comment_b,0,0,$fill); 
     286           
     287          $s_comment_b = imagecreatefrompng($comment_b); 
     288          imagealphablending($s_comment_b,true); 
     289          imagecopy($d_comment_b,$s_comment_b,0,0,0,0,500,7); 
     290           
     291          imagepng($d_comment_b,self::imagesPath().'/'.$dest_b); 
     292          imagedestroy($d_comment_b); 
     293          imagedestroy($s_comment_b); 
     294     } 
     295      
     296     public static function dropImage($img) 
     297     { 
     298          $img = path::real(self::imagesPath().'/'.$img); 
     299          if (is_writable(dirname($img))) { 
     300               @unlink($img); 
     301               @unlink(dirname($img).'/.'.basename($img,'.png').'_sq.jpg'); 
     302               @unlink(dirname($img).'/.'.basename($img,'.png').'_m.jpg'); 
     303               @unlink(dirname($img).'/.'.basename($img,'.png').'_s.jpg'); 
     304               @unlink(dirname($img).'/.'.basename($img,'.png').'_sq.jpg'); 
     305               @unlink(dirname($img).'/.'.basename($img,'.png').'_t.jpg'); 
     306          } 
     307     } 
     308} 
    158309?> 
  • plugins/carnaval/edit.php

    r500 r556  
    1717 
    1818$id = $_REQUEST['id']; 
     19$can_write_images = carnavalConfig::canWriteImages(); 
    1920 
    2021try { 
     
    3132     $comment_author_site = $rs->comment_author_site; 
    3233     $comment_class = $rs->comment_class; 
     34     $comment_text_color = $rs->comment_text_color; 
     35     $comment_background_color = $rs->comment_background_color; 
    3336} 
    3437 
     
    4043     $comment_author_site = $_POST['comment_author_site']; 
    4144     $comment_class = $_POST['comment_class']; 
     45     $comment_text_color = carnavalConfig::adjustColor($_POST['comment_text_color']); 
     46     $comment_background_color = carnavalConfig::adjustColor($_POST['comment_background_color']); 
    4247      
    4348     try { 
    44           dcCarnaval::updateClass($id,$comment_author,$comment_author_mail,$comment_author_site,$comment_class); 
     49          dcCarnaval::updateClass($id,$comment_author,$comment_author_mail,$comment_author_site,$comment_text_color,$comment_background_color,$comment_class); 
     50          if ($can_write_images) 
     51          { 
     52               carnavalConfig::createImages($comment_background_color,$comment_class); 
     53          } 
    4554          http::redirect($p_url.'&edit=1&id='.$id.'&upd=1'); 
    4655     } catch (Exception $e) { 
     
    5261<html><head> 
    5362  <title>Carnaval</title> 
     63  <?php echo dcPage::jsColorPicker(); ?> 
    5464</head><body> 
    5565<?php 
    5666require dirname(__FILE__).'/forms.php'; 
    57 echo '<p><a href="'.$p_url.'">'.__('Return to Carnaval').'</a></p>'; 
     67echo '<p><a class="back" href="'.$p_url.'">'.__('Return to Carnaval').'</a></p>'; 
    5868 
    5969if (isset($rs)) 
     
    7484} 
    7585?> 
    76 </body></html> 
     86 
     87<?php dcPage::helpBlock('carnaval');?> 
     88</body> 
     89</html> 
  • plugins/carnaval/forms.php

    r500 r556  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16 if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1716 
    1817$forms = array(); 
    1918 
    20 $forms['form_fields'] = ' 
    21 <p><label class="required" title="'.__('Required field').'">'.__('Name:').' '. 
    22      form::field('comment_author',30,255,html::escapeHTML($comment_author),'',2). 
    23 '</label></p> 
    24 <p><label class="required" title="'.__('Required field').'">'.__('CSS Class:').' '. 
    25      form::field('comment_class',30,255,html::escapeHTML($comment_class),'',5). 
    26 '</label></p> 
    27 <p><label>'.__('Mail:').' '. 
    28      form::field('comment_author_mail',30,255,html::escapeHTML($comment_author_mail),'',3). 
    29 '</label></p> 
    30 <p><label>'.__('URL:').' '. 
    31      form::field('comment_author_site',30,255,html::escapeHTML($comment_author_site),'',4). 
    32 '</label></p> 
     19if ($core->blog->settings->theme == 'default') { 
     20     $forms['form_fields'] = ' 
     21     <p><label class="required" title="'.__('Required field').'">'.__('Name:').' '. 
     22          form::field('comment_author',30,255,html::escapeHTML($comment_author),'',2). 
     23     '</label></p> 
     24     <p><label class="required" title="'.__('Required field').'">'.__('CSS Class:').' '. 
     25          form::field('comment_class',30,255,html::escapeHTML($comment_class),'',3). 
     26     '</label></p> 
     27     <p><label>'.__('Mail:').' '. 
     28          form::field('comment_author_mail',30,255,html::escapeHTML($comment_author_mail),'',4). 
     29     '</label></p> 
     30     <p><label>'.__('URL:').' '. 
     31          form::field('comment_author_site',30,255,html::escapeHTML($comment_author_site),'',5). 
     32     '</label></p> 
     33     <p><label>'.__('Text color:').' '. 
     34          form::field('comment_text_color',7,7,html::escapeHTML($comment_text_color),'colorpicker',6). 
     35     '</label></p> 
     36     <p><label>'.__('Background color:').' '. 
     37          form::field('comment_background_color',7,7,html::escapeHTML($comment_background_color),'colorpicker',7). 
     38     '</label></p> 
    3339'; 
     40} 
     41else { 
     42     $forms['form_fields'] = ' 
     43     <p><label class="required" title="'.__('Required field').'">'.__('Name:').' '. 
     44          form::field('comment_author',30,255,html::escapeHTML($comment_author),'',2). 
     45     '</label></p> 
     46     <p><label class="required" title="'.__('Required field').'">'.__('CSS Class:').' '. 
     47          form::field('comment_class',30,255,html::escapeHTML($comment_class),'',3). 
     48     '</label></p> 
     49     <p><label>'.__('Mail:').' '. 
     50          form::field('comment_author_mail',30,255,html::escapeHTML($comment_author_mail),'',4). 
     51     '</label></p> 
     52     <p><label>'.__('URL:').' '. 
     53          form::field('comment_author_site',30,255,html::escapeHTML($comment_author_site),'',5). 
     54     '</label></p> 
     55'; 
     56} 
    3457?> 
  • plugins/carnaval/index.php

    r500 r556  
    2121} 
    2222 
    23 $comment_author = $comment_author_mail = $comment_author_site = $comment_class = 
    24 $default_tab = ''; 
     23if (!empty($_REQUEST['add'])) { 
     24     include dirname(__FILE__).'/add.php'; 
     25     return; 
     26} 
    2527 
    2628// Setting default parameters if missing configuration 
     
    4143// Getting current parameters 
    4244$active = (boolean)$core->blog->settings->carnaval_active; 
    43  
    44 # Add CSS Class 
    45 if (!empty($_POST['add_class'])) 
    46 { 
    47      $comment_author = $_POST['comment_author']; 
    48      $comment_author_mail = $_POST['comment_author_mail']; 
    49      $comment_author_site = $_POST['comment_author_site']; 
    50      $comment_class = $_POST['comment_class']; 
    51       
    52      try { 
    53           dcCarnaval::addClass($comment_author,$comment_author_mail,$comment_author_site,$comment_class); 
    54           http::redirect($p_url.'&addclass=1'); 
    55      } catch (Exception $e) { 
    56           $core->error->add($e->getMessage()); 
    57           $default_tab = 'add-class'; 
    58      } 
    59 } 
    6045 
    6146# Delete CSS Class 
     
    10186     $core->error->add($e->getMessage()); 
    10287} 
    103  
    10488?> 
    10589<html> 
    10690<head> 
    10791  <title>Carnaval</title> 
    108   <?php echo dcPage::jsToolMan(); ?> 
    109   <?php echo dcPage::jsConfirmClose('classes-form','add-class-form'); ?> 
    110   <?php echo dcPage::jsPageTabs($default_tab); ?> 
    11192</head> 
    11293 
    11394<body> 
    11495<h2 style="padding:8px 0 8px 34px;background:url(index.php?pf=carnaval/icon_32.png) no-repeat;"> 
    115 <?php echo html::escapeHTML($core->blog->name); ?> &gt; Carnaval</h2> 
     96<?php echo html::escapeHTML($core->blog->name); ?> &rsaquo; Carnaval -  
     97<a class="button" href="<?php echo $p_url.'&amp;add=1'; ?>"><?php echo html::escapeJS( 
     98__('New CSS Class')); ?></a> 
     99</h2> 
    116100 
    117101<?php 
    118102 
    119103if (!empty($_GET['removed'])) { 
    120           echo '<p class="message">'.__('Classes have been successfully removed.').'</p>'; 
     104     echo '<p class="message">'.__('Classes have been successfully removed.').'</p>'; 
    121105} 
    122106 
    123107if (!empty($_GET['addclass'])) { 
    124           echo '<p class="message">'.__('Class has been successfully created.').'</p>'; 
     108     echo '<p class="message">'.__('Class has been successfully created.').'</p>'; 
    125109} 
    126110 
    127111if (!empty($msg)) { 
    128           echo '<p class="message">'.$msg.'</p>'; 
     112     echo '<p class="message">'.$msg.'</p>'; 
    129113} 
    130114 
    131115?> 
    132  
    133 <div class="multi-part" title="<?php echo __('Carnaval'); ?>"> 
    134116<?php 
    135      echo '<form method="post" action="plugin.php">'; 
     117     echo '<form action="'.$p_url.'" method="post" id="config-form">'; 
    136118     echo '<fieldset><legend>'.__('Plugin activation').'</legend>'; 
    137119     echo  
     
    140122               '<label class=" classic" for="active">'.__('Enable Carnaval').'</label></p></fieldset>'; 
    141123     echo  
    142      '<p><input type="hidden" name="p" value="carnaval" />'. 
     124     '<p>'.form::hidden(array('p'),'carnaval'). 
    143125          $core->formNonce(). 
    144126          '<input type="submit" name="saveconfig" accesskey="s" value="'.__('Save configuration').' (s)"/>'; 
     
    147129<fieldset class="two-cols"><legend><?php echo __('My CSS Classes'); ?></legend> 
    148130<form action="plugin.php" method="post" id="classes-form"> 
    149 <table class="maximal dragable"> 
     131<table class="maximal"> 
    150132<thead> 
    151133<tr> 
     
    154136  <th><?php echo __('Mail'); ?></th> 
    155137  <th><?php echo __('URL'); ?></th> 
     138  <th><?php if ($core->blog->settings->theme == 'default') {echo __('Text color');} ?></th> 
     139  <th><?php if ($core->blog->settings->theme == 'default') { echo __('Background color');} ?></th> 
    156140</tr> 
    157141</thead> 
     
    167151          html::escapeHTML($rs->comment_class).'</a></td>'. 
    168152     '<td>'.html::escapeHTML($rs->comment_author_mail).'</td>'. 
    169      '<td>'.html::escapeHTML($rs->comment_author_site).'</td>'. 
    170      '</tr>'; 
     153     '<td>'.html::escapeHTML($rs->comment_author_site).'</td>'; 
     154     if ($core->blog->settings->theme == 'default') { 
     155          echo '<td>'.html::escapeHTML($rs->comment_text_color).'</td>'. 
     156          '<td>'.html::escapeHTML($rs->comment_background_color).'</td>'; 
     157     } 
     158     echo '</tr>'; 
    171159} 
    172160?> 
     
    175163 
    176164<div class="two-cols"> 
    177 <p class="col"><input type="submit" name="removeaction" accesskey="d" 
     165<p class="col"> 
     166<?php echo form::hidden(array('p'),'carnaval'); 
     167echo $core->formNonce(); ?> 
     168<input type="submit" name="removeaction" accesskey="d" 
    178169value="<?php echo __('Delete selected CSS Classes'); ?>" 
    179170onclick="return window.confirm('<?php echo html::escapeJS( 
    180171__('Are you sure you you want to delete selected CSS Classes ?')); ?>');" /></p> 
    181172</div> 
     173 
    182174</fieldset> 
    183 </div> 
    184175 
    185 <?php 
    186 require dirname(__FILE__).'/forms.php'; 
    187 echo '<div class="multi-part" id="add-class" title="'.__('Add a CSS Class').'"> 
    188      <form action="plugin.php" method="post"> 
    189      <fieldset class="two-cols"><legend>'.__('Add a new CSS Class').'</legend> 
    190      '.$forms['form_fields'].' 
    191      <p>'.form::hidden(array('p'),'carnaval').$core->formNonce(). 
    192      '<input type="submit" name="add_class" accesskey="a" value="'.__('Add').' (a)" tabindex="6" /></p> 
    193      </fieldset> 
    194      </form> 
    195      </div>'; 
    196 ?> 
    197176<?php dcPage::helpBlock('carnaval');?> 
    198177</body></html> 
  • plugins/carnaval/locales/_pot/main.pot

    r500 r556  
    77msgid "" 
    88msgstr "" 
    9 "Project-Id-Version: Dotclear 2 Carnaval module\n" 
     9"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2008-09-20 22:48+0200\n" 
     11"POT-Creation-Date: 2008-11-10 13:14+0100\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    1717"Content-Transfer-Encoding: 8bit\n" 
    1818 
    19 #: _admin.php:18 index.php:133 
     19#: add.php:51 edit.php:67 
     20msgid "Return to Carnaval" 
     21msgstr "" 
     22 
     23#: add.php:53 
     24msgid "Add a new CSS Class" 
     25msgstr "" 
     26 
     27#: add.php:57 
     28msgid "Add" 
     29msgstr "" 
     30 
     31#: _admin.php:18 
    2032msgid "Carnaval" 
    2133msgstr "" 
    2234 
    23 #: class.dc.carnaval.php:77 class.dc.carnaval.php:104 
     35#: class.dc.carnaval.php:93 class.dc.carnaval.php:122 
    2436msgid "You must provide a name" 
    2537msgstr "" 
    2638 
    27 #: class.dc.carnaval.php:80 class.dc.carnaval.php:107 
     39#: class.dc.carnaval.php:96 class.dc.carnaval.php:125 
    2840msgid "You must provide a CSS Class" 
    2941msgstr "" 
    3042 
    31 #: class.dc.carnaval.php:83 class.dc.carnaval.php:110 
     43#: class.dc.carnaval.php:99 class.dc.carnaval.php:128 
    3244msgid "You must provide an e-mail or a web site adress" 
    3345msgstr "" 
    3446 
    35 #: edit.php:27 
     47#: class.dc.carnaval.php:249 
     48msgid "Unable to create images." 
     49msgstr "" 
     50 
     51#: edit.php:28 
    3652msgid "No such Class" 
    3753msgstr "" 
    3854 
    39 #: edit.php:57 
    40 msgid "Return to Carnaval" 
    41 msgstr "" 
    42  
    43 #: edit.php:62 
     55#: edit.php:72 
    4456msgid "CSS Class has been successfully updated" 
    4557msgstr "" 
    4658 
    47 #: edit.php:67 
     59#: edit.php:77 
    4860msgid "Edit Class" 
    4961msgstr "" 
    5062 
    51 #: edit.php:71 
     63#: edit.php:81 
    5264msgid "save" 
    5365msgstr "" 
    5466 
    55 #: forms.php:21 forms.php:24 
     67#: forms.php:21 forms.php:24 forms.php:43 forms.php:46 
    5668msgid "Required field" 
    5769msgstr "" 
    5870 
    59 #: forms.php:21 
     71#: forms.php:21 forms.php:43 
    6072msgid "Name:" 
    6173msgstr "" 
    6274 
    63 #: forms.php:24 
     75#: forms.php:24 forms.php:46 
    6476msgid "CSS Class:" 
    6577msgstr "" 
    6678 
    67 #: forms.php:27 
     79#: forms.php:27 forms.php:49 
    6880msgid "Mail:" 
    6981msgstr "" 
    7082 
    71 #: forms.php:30 
     83#: forms.php:30 forms.php:52 
    7284msgid "URL:" 
    7385msgstr "" 
    7486 
    75 #: index.php:89 
     87#: forms.php:33 
     88msgid "Text color:" 
     89msgstr "" 
     90 
     91#: forms.php:36 
     92msgid "Background color:" 
     93msgstr "" 
     94 
     95#: index.php:74 
    7696msgid "Configuration successfully updated." 
    7797msgstr "" 
    7898 
    79 #: index.php:120 
     99#: index.php:98 
     100msgid "New CSS Class" 
     101msgstr "" 
     102 
     103#: index.php:104 
    80104msgid "Classes have been successfully removed." 
    81105msgstr "" 
    82106 
    83 #: index.php:124 
     107#: index.php:108 
    84108msgid "Class has been successfully created." 
    85109msgstr "" 
    86110 
    87 #: index.php:136 
     111#: index.php:118 
    88112msgid "Plugin activation" 
    89113msgstr "" 
    90114 
    91 #: index.php:140 
     115#: index.php:122 
    92116msgid "Enable Carnaval" 
    93117msgstr "" 
    94118 
    95 #: index.php:144 
     119#: index.php:126 
    96120msgid "Save configuration" 
    97121msgstr "" 
    98122 
    99 #: index.php:147 
     123#: index.php:129 
    100124msgid "My CSS Classes" 
    101125msgstr "" 
    102126 
    103 #: index.php:152 
     127#: index.php:134 
    104128msgid "Name" 
    105129msgstr "" 
    106130 
    107 #: index.php:153 
     131#: index.php:135 
    108132msgid "CSS Class" 
    109133msgstr "" 
    110134 
    111 #: index.php:154 
     135#: index.php:136 
    112136msgid "Mail" 
    113137msgstr "" 
    114138 
    115 #: index.php:155 
     139#: index.php:137 
    116140msgid "URL" 
    117141msgstr "" 
    118142 
    119 #: index.php:178 
     143#: index.php:138 
     144msgid "Text color" 
     145msgstr "" 
     146 
     147#: index.php:139 
     148msgid "Background color" 
     149msgstr "" 
     150 
     151#: index.php:169 
    120152msgid "Delete selected CSS Classes" 
    121153msgstr "" 
    122154 
    123 #: index.php:180 
     155#: index.php:171 
    124156msgid "Are you sure you you want to delete selected CSS Classes ?" 
    125157msgstr "" 
    126158 
    127 #: index.php:187 
    128 msgid "Add a CSS Class" 
    129 msgstr "" 
    130  
    131 #: index.php:189 
    132 msgid "Add a new CSS Class" 
    133 msgstr "" 
    134  
    135 #: index.php:192 
    136 msgid "Add" 
    137 msgstr "" 
    138  
    139 #: _install.php:53 
     159#: _install.php:56 
    140160msgid "To finish installation, please delete the whole cache/cbtpl directory." 
    141161msgstr "" 
  • plugins/carnaval/locales/fr/main.po

    r500 r556  
    66msgid "" 
    77msgstr "" 
    8 "Project-Id-Version: Dotclear 2 Carnaval module\n" 
     8"Project-Id-Version: PACKAGE VERSION\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2008-09-20 22:48+0200\n" 
    11 "PO-Revision-Date: 2008-09-20 22:48+0200\n" 
    12 "Last-Translator: Osku <popech@gmail.com>\n" 
     10"POT-Creation-Date: 2008-11-10 13:14+0100\n" 
     11"PO-Revision-Date: 2008-11-10 13:14+0100\n" 
     12"Last-Translator: Greg <popech@gmail.com>\n" 
    1313"Language-Team: French\n" 
    1414"MIME-Version: 1.0\n" 
     
    1717"Plural-Forms: nplurals=2; plural=(n > 1);\n" 
    1818 
    19 #: _admin.php:18 index.php:133 
     19#: add.php:51 edit.php:67 
     20msgid "Return to Carnaval" 
     21msgstr "Retour au Carnaval" 
     22 
     23#: add.php:53 
     24msgid "Add a new CSS Class" 
     25msgstr "Ajouter une nouvelle classe CSS" 
     26 
     27#: add.php:57 
     28msgid "Add" 
     29msgstr "Ajouter" 
     30 
     31#: _admin.php:18 
    2032msgid "Carnaval" 
    2133msgstr "Carnaval" 
    2234 
    23 #: class.dc.carnaval.php:77 class.dc.carnaval.php:104 
     35#: class.dc.carnaval.php:93 class.dc.carnaval.php:122 
    2436msgid "You must provide a name" 
    2537msgstr "Vous devez renseigner un nom" 
    2638 
    27 #: class.dc.carnaval.php:80 class.dc.carnaval.php:107 
     39#: class.dc.carnaval.php:96 class.dc.carnaval.php:125 
    2840msgid "You must provide a CSS Class" 
    2941msgstr "Vous devez renseigner une classe CSS" 
    3042 
    31 #: class.dc.carnaval.php:83 class.dc.carnaval.php:110 
     43#: class.dc.carnaval.php:99 class.dc.carnaval.php:128 
    3244msgid "You must provide an e-mail or a web site adress" 
    3345msgstr "Vous devez renseigner une adresse de courriel ou d'un site web" 
    3446 
    35 #: edit.php:27 
     47#: class.dc.carnaval.php:249 
     48msgid "Unable to create images." 
     49msgstr "Impossible de créer les images" 
     50 
     51#: edit.php:28 
    3652msgid "No such Class" 
    3753msgstr "Classe CSS inexistante" 
    3854 
    39 #: edit.php:57 
    40 msgid "Return to Carnaval" 
    41 msgstr "Retour au Carnaval" 
    42  
    43 #: edit.php:62 
     55#: edit.php:72 
    4456msgid "CSS Class has been successfully updated" 
    4557msgstr "La classe CSS a été mise à jour" 
    4658 
    47 #: edit.php:67 
     59#: edit.php:77 
    4860msgid "Edit Class" 
    4961msgstr "Editer la classe CSS" 
    5062 
    51 #: edit.php:71 
     63#: edit.php:81 
    5264msgid "save" 
    5365msgstr "enregistrer" 
    5466 
    55 #: forms.php:21 forms.php:24 
     67#: forms.php:21 forms.php:24 forms.php:43 forms.php:46 
    5668msgid "Required field" 
    5769msgstr "Champ obligatoire" 
    5870 
    59 #: forms.php:21 
     71#: forms.php:21 forms.php:43 
    6072msgid "Name:" 
    6173msgstr "Nom:" 
    6274 
    63 #: forms.php:24 
     75#: forms.php:24 forms.php:46 
    6476msgid "CSS Class:" 
    65 msgstr "Classe CSS:" 
     77msgstr "Classe CSS" 
    6678 
    67 #: forms.php:27 
     79#: forms.php:27 forms.php:49 
    6880msgid "Mail:" 
    6981msgstr "Adresse Email:" 
    7082 
    71 #: forms.php:30 
     83#: forms.php:30 forms.php:52 
    7284msgid "URL:" 
    73 msgstr "Site:" 
     85msgstr "URL:" 
    7486 
    75 #: index.php:89 
     87#: forms.php:33 
     88msgid "Text color:" 
     89msgstr "Couleur du texte:" 
     90 
     91#: forms.php:36 
     92msgid "Background color:" 
     93msgstr "Couleur du fond:" 
     94 
     95#: index.php:74 
    7696msgid "Configuration successfully updated." 
    7797msgstr "Configuration mise à jour avec succès." 
    7898 
    79 #: index.php:120 
     99#: index.php:98 
     100msgid "New CSS Class" 
     101msgstr "Nouvelle classe CSS" 
     102 
     103#: index.php:104 
    80104msgid "Classes have been successfully removed." 
    81105msgstr "Les classes CSS ont été supprimées" 
    82106 
    83 #: index.php:124 
     107#: index.php:108 
    84108msgid "Class has been successfully created." 
    85109msgstr "La classe CSS a été correctement créée" 
    86110 
    87 #: index.php:136 
     111#: index.php:118 
    88112msgid "Plugin activation" 
    89113msgstr "Activation de l'extension" 
    90114 
    91 #: index.php:140 
     115#: index.php:122 
    92116msgid "Enable Carnaval" 
    93117msgstr "Activer Carnaval" 
    94118 
    95 #: index.php:144 
     119#: index.php:126 
    96120msgid "Save configuration" 
    97121msgstr "Enregistrer la configuration" 
    98122 
    99 #: index.php:147 
     123#: index.php:129 
    100124msgid "My CSS Classes" 
    101 msgstr "Mes Classes CSS" 
     125msgstr "Mes classes CSS" 
    102126 
    103 #: index.php:152 
     127#: index.php:134 
    104128msgid "Name" 
    105129msgstr "Nom" 
    106130 
    107 #: index.php:153 
     131#: index.php:135 
    108132msgid "CSS Class" 
    109133msgstr "Classe CSS" 
    110134 
    111 #: index.php:154 
     135#: index.php:136 
    112136msgid "Mail" 
    113137msgstr "Adresse Email" 
    114138 
    115 #: index.php:155 
     139#: index.php:137 
    116140msgid "URL" 
    117 msgstr "Site" 
     141msgstr "URL" 
    118142 
    119 #: index.php:178 
     143#: index.php:138 
     144msgid "Text color" 
     145msgstr "Couleur du texte" 
     146 
     147#: index.php:139 
     148msgid "Background color" 
     149msgstr "Couleur du fond" 
     150 
     151#: index.php:169 
    120152msgid "Delete selected CSS Classes" 
    121153msgstr "Supprimer les classes CSS sélectionnées" 
    122154 
    123 #: index.php:180 
     155#: index.php:171 
    124156msgid "Are you sure you you want to delete selected CSS Classes ?" 
    125157msgstr "Etes vous sûr(e) de vouloir effacer les personnalisations sélectionnées ?" 
    126158 
    127 #: index.php:187 
    128 msgid "Add a CSS Class" 
    129 msgstr "Ajouter une classe CSS" 
    130  
    131 #: index.php:189 
    132 msgid "Add a new CSS Class" 
    133 msgstr "Ajouter une nouvelle classe CSS" 
    134  
    135 #: index.php:192 
    136 msgid "Add" 
    137 msgstr "Ajouter" 
    138  
    139 #: _install.php:53 
     159#: _install.php:56 
    140160msgid "To finish installation, please delete the whole cache/cbtpl directory." 
    141161msgstr "Pour finir l'installation, merci de supprimer entièrement le dossier cache/cbtpl." 
Note: See TracChangeset for help on using the changeset viewer.

Sites map