Changeset 556
- Timestamp:
- 11/10/08 13:51:39 (15 years ago)
- google:author:
- popech
- Location:
- plugins/carnaval
- Files:
-
- 1 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/carnaval/_define.php
r500 r556 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 if (!defined('DC_RC_PATH')) { return; }17 16 18 17 $this->registerModule( … … 20 19 /* Description*/ 'Identify comments and trackbacks', 21 20 /* Author */ 'Osku', 22 /* Version */ '1. 1',21 /* Version */ '1.2RC1', 23 22 /* Permissions */ 'contentadmin' 24 23 ); -
plugins/carnaval/_install.php
r459 r556 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 if (!defined('DC_CONTEXT_ADMIN')) { return; } 16 17 if (!defined('DC_CONTEXT_ADMIN')) { exit; } 17 18 18 19 # On lit la version du plugin … … 41 42 ->comment_author_site('varchar',255,true) 42 43 ->comment_class('varchar',255,false) 44 ->comment_text_color('varchar',7,false) 45 ->comment_background_color('varchar',7,false) 43 46 44 47 ->primary('pk_carnaval','class_id') -
plugins/carnaval/_public.php
r500 r556 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 if (!defined('DC_RC_PATH')) { return; }17 16 18 # New templates values if plugin active 17 # On surchage les fonctions template 18 19 19 if ($core->blog->settings->carnaval_active){ 20 20 $core->tpl->addValue('CommentIfMe',array('tplCarnaval','CommentIfMe')); 21 21 $core->tpl->addValue('PingIfOdd',array('tplCarnaval','PingIfOdd')); 22 $core->addBehavior('publicHeadContent',array('tplCarnaval','publicHeadContent')); 22 23 } 23 24 … … 61 62 return html::escapeHTML($classe_perso); 62 63 } 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 } 63 114 } 64 115 ?> -
plugins/carnaval/class.dc.carnaval.php
r358 r556 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 if (!defined('DC_CONTEXT_ADMIN')) { return; } 16 17 17 18 class dcCarnaval … … 23 24 public static $found; // Avoid multiple SQL requests 24 25 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 25 38 public static function init(&$blog) 26 39 { … … 39 52 $strReq = 40 53 '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 '. 42 56 'FROM '.self::$table.' '. 43 57 "WHERE blog_id = '".self::$con->escape(self::$blog->id)."' "; … … 64 78 } 65 79 66 public static function addClass($author,$mail,$site='',$ class)80 public static function addClass($author,$mail,$site='',$text,$backg,$class) 67 81 { 68 82 $cur = self::$con->openCursor(self::$table); … … 73 87 $cur->comment_author_site = (string) $site; 74 88 $cur->comment_class = (string) $class; 89 $cur->comment_text_color = (string) $text; 90 $cur->comment_background_color = (string) $backg; 75 91 76 92 if ($cur->comment_author == '') { … … 93 109 } 94 110 95 public static function updateClass($id,$author,$mail='',$site='',$ class='')111 public static function updateClass($id,$author,$mail='',$site='',$text,$backg,$class='') 96 112 { 97 113 $cur = self::$con->openCursor(self::$table); … … 100 116 $cur->comment_author_site = $site; 101 117 $cur->comment_class = $class; 118 $cur->comment_text_color = $text; 119 $cur->comment_background_color = $backg; 102 120 103 121 if ($cur->comment_author == '') { … … 156 174 } 157 175 } 176 class 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 } 158 309 ?> -
plugins/carnaval/edit.php
r500 r556 17 17 18 18 $id = $_REQUEST['id']; 19 $can_write_images = carnavalConfig::canWriteImages(); 19 20 20 21 try { … … 31 32 $comment_author_site = $rs->comment_author_site; 32 33 $comment_class = $rs->comment_class; 34 $comment_text_color = $rs->comment_text_color; 35 $comment_background_color = $rs->comment_background_color; 33 36 } 34 37 … … 40 43 $comment_author_site = $_POST['comment_author_site']; 41 44 $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']); 42 47 43 48 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 } 45 54 http::redirect($p_url.'&edit=1&id='.$id.'&upd=1'); 46 55 } catch (Exception $e) { … … 52 61 <html><head> 53 62 <title>Carnaval</title> 63 <?php echo dcPage::jsColorPicker(); ?> 54 64 </head><body> 55 65 <?php 56 66 require dirname(__FILE__).'/forms.php'; 57 echo '<p><a href="'.$p_url.'">'.__('Return to Carnaval').'</a></p>';67 echo '<p><a class="back" href="'.$p_url.'">'.__('Return to Carnaval').'</a></p>'; 58 68 59 69 if (isset($rs)) … … 74 84 } 75 85 ?> 76 </body></html> 86 87 <?php dcPage::helpBlock('carnaval');?> 88 </body> 89 </html> -
plugins/carnaval/forms.php
r500 r556 14 14 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * 15 15 \***************************************************************/ 16 if (!defined('DC_CONTEXT_ADMIN')) { return; }17 16 18 17 $forms = array(); 19 18 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> 19 if ($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> 33 39 '; 40 } 41 else { 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 } 34 57 ?> -
plugins/carnaval/index.php
r500 r556 21 21 } 22 22 23 $comment_author = $comment_author_mail = $comment_author_site = $comment_class = 24 $default_tab = ''; 23 if (!empty($_REQUEST['add'])) { 24 include dirname(__FILE__).'/add.php'; 25 return; 26 } 25 27 26 28 // Setting default parameters if missing configuration … … 41 43 // Getting current parameters 42 44 $active = (boolean)$core->blog->settings->carnaval_active; 43 44 # Add CSS Class45 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 }60 45 61 46 # Delete CSS Class … … 101 86 $core->error->add($e->getMessage()); 102 87 } 103 104 88 ?> 105 89 <html> 106 90 <head> 107 91 <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); ?>111 92 </head> 112 93 113 94 <body> 114 95 <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); ?> > Carnaval</h2> 96 <?php echo html::escapeHTML($core->blog->name); ?> › Carnaval - 97 <a class="button" href="<?php echo $p_url.'&add=1'; ?>"><?php echo html::escapeJS( 98 __('New CSS Class')); ?></a> 99 </h2> 116 100 117 101 <?php 118 102 119 103 if (!empty($_GET['removed'])) { 120 104 echo '<p class="message">'.__('Classes have been successfully removed.').'</p>'; 121 105 } 122 106 123 107 if (!empty($_GET['addclass'])) { 124 108 echo '<p class="message">'.__('Class has been successfully created.').'</p>'; 125 109 } 126 110 127 111 if (!empty($msg)) { 128 112 echo '<p class="message">'.$msg.'</p>'; 129 113 } 130 114 131 115 ?> 132 133 <div class="multi-part" title="<?php echo __('Carnaval'); ?>">134 116 <?php 135 echo '<form method="post" action="plugin.php">';117 echo '<form action="'.$p_url.'" method="post" id="config-form">'; 136 118 echo '<fieldset><legend>'.__('Plugin activation').'</legend>'; 137 119 echo … … 140 122 '<label class=" classic" for="active">'.__('Enable Carnaval').'</label></p></fieldset>'; 141 123 echo 142 '<p> <input type="hidden" name="p" value="carnaval" />'.124 '<p>'.form::hidden(array('p'),'carnaval'). 143 125 $core->formNonce(). 144 126 '<input type="submit" name="saveconfig" accesskey="s" value="'.__('Save configuration').' (s)"/>'; … … 147 129 <fieldset class="two-cols"><legend><?php echo __('My CSS Classes'); ?></legend> 148 130 <form action="plugin.php" method="post" id="classes-form"> 149 <table class="maximal dragable">131 <table class="maximal"> 150 132 <thead> 151 133 <tr> … … 154 136 <th><?php echo __('Mail'); ?></th> 155 137 <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> 156 140 </tr> 157 141 </thead> … … 167 151 html::escapeHTML($rs->comment_class).'</a></td>'. 168 152 '<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>'; 171 159 } 172 160 ?> … … 175 163 176 164 <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'); 167 echo $core->formNonce(); ?> 168 <input type="submit" name="removeaction" accesskey="d" 178 169 value="<?php echo __('Delete selected CSS Classes'); ?>" 179 170 onclick="return window.confirm('<?php echo html::escapeJS( 180 171 __('Are you sure you you want to delete selected CSS Classes ?')); ?>');" /></p> 181 172 </div> 173 182 174 </fieldset> 183 </div>184 175 185 <?php186 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 ?>197 176 <?php dcPage::helpBlock('carnaval');?> 198 177 </body></html> -
plugins/carnaval/locales/_pot/main.pot
r500 r556 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Dotclear 2 Carnaval module\n"9 "Project-Id-Version: PACKAGE VERSION\n" 10 10 "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" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 17 17 "Content-Transfer-Encoding: 8bit\n" 18 18 19 #: _admin.php:18 index.php:133 19 #: add.php:51 edit.php:67 20 msgid "Return to Carnaval" 21 msgstr "" 22 23 #: add.php:53 24 msgid "Add a new CSS Class" 25 msgstr "" 26 27 #: add.php:57 28 msgid "Add" 29 msgstr "" 30 31 #: _admin.php:18 20 32 msgid "Carnaval" 21 33 msgstr "" 22 34 23 #: class.dc.carnaval.php: 77 class.dc.carnaval.php:10435 #: class.dc.carnaval.php:93 class.dc.carnaval.php:122 24 36 msgid "You must provide a name" 25 37 msgstr "" 26 38 27 #: class.dc.carnaval.php: 80 class.dc.carnaval.php:10739 #: class.dc.carnaval.php:96 class.dc.carnaval.php:125 28 40 msgid "You must provide a CSS Class" 29 41 msgstr "" 30 42 31 #: class.dc.carnaval.php: 83 class.dc.carnaval.php:11043 #: class.dc.carnaval.php:99 class.dc.carnaval.php:128 32 44 msgid "You must provide an e-mail or a web site adress" 33 45 msgstr "" 34 46 35 #: edit.php:27 47 #: class.dc.carnaval.php:249 48 msgid "Unable to create images." 49 msgstr "" 50 51 #: edit.php:28 36 52 msgid "No such Class" 37 53 msgstr "" 38 54 39 #: edit.php:57 40 msgid "Return to Carnaval" 41 msgstr "" 42 43 #: edit.php:62 55 #: edit.php:72 44 56 msgid "CSS Class has been successfully updated" 45 57 msgstr "" 46 58 47 #: edit.php: 6759 #: edit.php:77 48 60 msgid "Edit Class" 49 61 msgstr "" 50 62 51 #: edit.php: 7163 #: edit.php:81 52 64 msgid "save" 53 65 msgstr "" 54 66 55 #: forms.php:21 forms.php:24 67 #: forms.php:21 forms.php:24 forms.php:43 forms.php:46 56 68 msgid "Required field" 57 69 msgstr "" 58 70 59 #: forms.php:21 71 #: forms.php:21 forms.php:43 60 72 msgid "Name:" 61 73 msgstr "" 62 74 63 #: forms.php:24 75 #: forms.php:24 forms.php:46 64 76 msgid "CSS Class:" 65 77 msgstr "" 66 78 67 #: forms.php:27 79 #: forms.php:27 forms.php:49 68 80 msgid "Mail:" 69 81 msgstr "" 70 82 71 #: forms.php:30 83 #: forms.php:30 forms.php:52 72 84 msgid "URL:" 73 85 msgstr "" 74 86 75 #: index.php:89 87 #: forms.php:33 88 msgid "Text color:" 89 msgstr "" 90 91 #: forms.php:36 92 msgid "Background color:" 93 msgstr "" 94 95 #: index.php:74 76 96 msgid "Configuration successfully updated." 77 97 msgstr "" 78 98 79 #: index.php:120 99 #: index.php:98 100 msgid "New CSS Class" 101 msgstr "" 102 103 #: index.php:104 80 104 msgid "Classes have been successfully removed." 81 105 msgstr "" 82 106 83 #: index.php:1 24107 #: index.php:108 84 108 msgid "Class has been successfully created." 85 109 msgstr "" 86 110 87 #: index.php:1 36111 #: index.php:118 88 112 msgid "Plugin activation" 89 113 msgstr "" 90 114 91 #: index.php:1 40115 #: index.php:122 92 116 msgid "Enable Carnaval" 93 117 msgstr "" 94 118 95 #: index.php:1 44119 #: index.php:126 96 120 msgid "Save configuration" 97 121 msgstr "" 98 122 99 #: index.php:1 47123 #: index.php:129 100 124 msgid "My CSS Classes" 101 125 msgstr "" 102 126 103 #: index.php:1 52127 #: index.php:134 104 128 msgid "Name" 105 129 msgstr "" 106 130 107 #: index.php:1 53131 #: index.php:135 108 132 msgid "CSS Class" 109 133 msgstr "" 110 134 111 #: index.php:1 54135 #: index.php:136 112 136 msgid "Mail" 113 137 msgstr "" 114 138 115 #: index.php:1 55139 #: index.php:137 116 140 msgid "URL" 117 141 msgstr "" 118 142 119 #: index.php:178 143 #: index.php:138 144 msgid "Text color" 145 msgstr "" 146 147 #: index.php:139 148 msgid "Background color" 149 msgstr "" 150 151 #: index.php:169 120 152 msgid "Delete selected CSS Classes" 121 153 msgstr "" 122 154 123 #: index.php:1 80155 #: index.php:171 124 156 msgid "Are you sure you you want to delete selected CSS Classes ?" 125 157 msgstr "" 126 158 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 140 160 msgid "To finish installation, please delete the whole cache/cbtpl directory." 141 161 msgstr "" -
plugins/carnaval/locales/fr/main.po
r500 r556 6 6 msgid "" 7 7 msgstr "" 8 "Project-Id-Version: Dotclear 2 Carnaval module\n"8 "Project-Id-Version: PACKAGE VERSION\n" 9 9 "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" 13 13 "Language-Team: French\n" 14 14 "MIME-Version: 1.0\n" … … 17 17 "Plural-Forms: nplurals=2; plural=(n > 1);\n" 18 18 19 #: _admin.php:18 index.php:133 19 #: add.php:51 edit.php:67 20 msgid "Return to Carnaval" 21 msgstr "Retour au Carnaval" 22 23 #: add.php:53 24 msgid "Add a new CSS Class" 25 msgstr "Ajouter une nouvelle classe CSS" 26 27 #: add.php:57 28 msgid "Add" 29 msgstr "Ajouter" 30 31 #: _admin.php:18 20 32 msgid "Carnaval" 21 33 msgstr "Carnaval" 22 34 23 #: class.dc.carnaval.php: 77 class.dc.carnaval.php:10435 #: class.dc.carnaval.php:93 class.dc.carnaval.php:122 24 36 msgid "You must provide a name" 25 37 msgstr "Vous devez renseigner un nom" 26 38 27 #: class.dc.carnaval.php: 80 class.dc.carnaval.php:10739 #: class.dc.carnaval.php:96 class.dc.carnaval.php:125 28 40 msgid "You must provide a CSS Class" 29 41 msgstr "Vous devez renseigner une classe CSS" 30 42 31 #: class.dc.carnaval.php: 83 class.dc.carnaval.php:11043 #: class.dc.carnaval.php:99 class.dc.carnaval.php:128 32 44 msgid "You must provide an e-mail or a web site adress" 33 45 msgstr "Vous devez renseigner une adresse de courriel ou d'un site web" 34 46 35 #: edit.php:27 47 #: class.dc.carnaval.php:249 48 msgid "Unable to create images." 49 msgstr "Impossible de créer les images" 50 51 #: edit.php:28 36 52 msgid "No such Class" 37 53 msgstr "Classe CSS inexistante" 38 54 39 #: edit.php:57 40 msgid "Return to Carnaval" 41 msgstr "Retour au Carnaval" 42 43 #: edit.php:62 55 #: edit.php:72 44 56 msgid "CSS Class has been successfully updated" 45 57 msgstr "La classe CSS a été mise à jour" 46 58 47 #: edit.php: 6759 #: edit.php:77 48 60 msgid "Edit Class" 49 61 msgstr "Editer la classe CSS" 50 62 51 #: edit.php: 7163 #: edit.php:81 52 64 msgid "save" 53 65 msgstr "enregistrer" 54 66 55 #: forms.php:21 forms.php:24 67 #: forms.php:21 forms.php:24 forms.php:43 forms.php:46 56 68 msgid "Required field" 57 69 msgstr "Champ obligatoire" 58 70 59 #: forms.php:21 71 #: forms.php:21 forms.php:43 60 72 msgid "Name:" 61 73 msgstr "Nom:" 62 74 63 #: forms.php:24 75 #: forms.php:24 forms.php:46 64 76 msgid "CSS Class:" 65 msgstr "Classe CSS :"77 msgstr "Classe CSS" 66 78 67 #: forms.php:27 79 #: forms.php:27 forms.php:49 68 80 msgid "Mail:" 69 81 msgstr "Adresse Email:" 70 82 71 #: forms.php:30 83 #: forms.php:30 forms.php:52 72 84 msgid "URL:" 73 msgstr " Site:"85 msgstr "URL:" 74 86 75 #: index.php:89 87 #: forms.php:33 88 msgid "Text color:" 89 msgstr "Couleur du texte:" 90 91 #: forms.php:36 92 msgid "Background color:" 93 msgstr "Couleur du fond:" 94 95 #: index.php:74 76 96 msgid "Configuration successfully updated." 77 97 msgstr "Configuration mise à jour avec succès." 78 98 79 #: index.php:120 99 #: index.php:98 100 msgid "New CSS Class" 101 msgstr "Nouvelle classe CSS" 102 103 #: index.php:104 80 104 msgid "Classes have been successfully removed." 81 105 msgstr "Les classes CSS ont été supprimées" 82 106 83 #: index.php:1 24107 #: index.php:108 84 108 msgid "Class has been successfully created." 85 109 msgstr "La classe CSS a été correctement créée" 86 110 87 #: index.php:1 36111 #: index.php:118 88 112 msgid "Plugin activation" 89 113 msgstr "Activation de l'extension" 90 114 91 #: index.php:1 40115 #: index.php:122 92 116 msgid "Enable Carnaval" 93 117 msgstr "Activer Carnaval" 94 118 95 #: index.php:1 44119 #: index.php:126 96 120 msgid "Save configuration" 97 121 msgstr "Enregistrer la configuration" 98 122 99 #: index.php:1 47123 #: index.php:129 100 124 msgid "My CSS Classes" 101 msgstr "Mes Classes CSS"125 msgstr "Mes classes CSS" 102 126 103 #: index.php:1 52127 #: index.php:134 104 128 msgid "Name" 105 129 msgstr "Nom" 106 130 107 #: index.php:1 53131 #: index.php:135 108 132 msgid "CSS Class" 109 133 msgstr "Classe CSS" 110 134 111 #: index.php:1 54135 #: index.php:136 112 136 msgid "Mail" 113 137 msgstr "Adresse Email" 114 138 115 #: index.php:1 55139 #: index.php:137 116 140 msgid "URL" 117 msgstr " Site"141 msgstr "URL" 118 142 119 #: index.php:178 143 #: index.php:138 144 msgid "Text color" 145 msgstr "Couleur du texte" 146 147 #: index.php:139 148 msgid "Background color" 149 msgstr "Couleur du fond" 150 151 #: index.php:169 120 152 msgid "Delete selected CSS Classes" 121 153 msgstr "Supprimer les classes CSS sélectionnées" 122 154 123 #: index.php:1 80155 #: index.php:171 124 156 msgid "Are you sure you you want to delete selected CSS Classes ?" 125 157 msgstr "Etes vous sûr(e) de vouloir effacer les personnalisations sélectionnées ?" 126 158 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 140 160 msgid "To finish installation, please delete the whole cache/cbtpl directory." 141 161 msgstr "Pour finir l'installation, merci de supprimer entièrement le dossier cache/cbtpl."
Note: See TracChangeset
for help on using the changeset viewer.