Changeset 1620:542c321dc040
- Timestamp:
- 08/30/13 10:37:08 (10 years ago)
- Branch:
- default
- Parents:
- 1619:5d925866b5b3 (diff), 1593:0c884219a872 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Files:
-
- 78 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/blog_pref.php
r1537 r1620 174 174 175 175 if ($rs) { 176 throw new Exception(__('Th at blog Id is already in use.'));176 throw new Exception(__('This blog ID is already used.')); 177 177 } 178 178 } … … 256 256 } 257 257 258 if ($standalone) { 259 $breadcrumb = dcPage::breadcrumb( 260 array( 261 html::escapeHTML($blog_name) => '', 262 '<span class="page-title">'.__('Blog settings').'</span>' => '' 263 )); 264 } else { 265 $breadcrumb = dcPage::breadcrumb( 266 array( 267 __('System') => '', 268 __('Blogs') => 'blogs.php', 269 '<span class="page-title">'.__('Blog settings').' : '.html::escapeHTML($blog_name).'</span>' => '' 270 )); 271 } 272 258 273 dcPage::open(__('Blog settings'), 259 274 '<script type="text/javascript">'."\n". … … 272 287 $core->callBehavior('adminBlogPreferencesHeaders'). 273 288 274 dcPage::jsPageTabs() 289 dcPage::jsPageTabs(), 290 $breadcrumb 275 291 ); 276 292 277 293 if ($blog_id) 278 294 { 279 echo '<h2>'.(!$standalone ? '<a href="blogs.php">'.__('Blogs').'</a> › ' : '').280 html::escapeHTML($blog_name).' › <span class="page-title">'.281 __('Blog settings').'</span></h2>';282 283 295 if (!empty($_GET['add'])) { 284 dcPage:: message(__('Blog has been successfully created.'));296 dcPage::success(__('Blog has been successfully created.')); 285 297 } 286 298 287 299 if (!empty($_GET['upd'])) { 288 dcPage:: message(__('Blog has been successfully updated.'));300 dcPage::success(__('Blog has been successfully updated.')); 289 301 } 290 302 … … 295 307 296 308 echo 297 '< fieldset><legend>'.__('Blog details').'</legend>'.309 '<div class="fieldset"><h4>'.__('Blog details').'</h4>'. 298 310 $core->formNonce(); 299 311 … … 301 313 { 302 314 echo 303 '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:'). 304 form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</ label></p>'.315 '<p><label for="blog_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog ID:').'</label>'. 316 form::field('blog_id',30,32,html::escapeHTML($blog_id)).'</p>'. 305 317 '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p> '. 306 318 '<p class="form-note warn">'.__('Please note that changing your blog ID may require changes in your public index.php file.').'</p>'; … … 308 320 309 321 echo 310 '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:'). 311 form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</ label></p>';322 '<p><label for="blog_name" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog name:').'</label>'. 323 form::field('blog_name',30,255,html::escapeHTML($blog_name)).'</p>'; 312 324 313 325 if ($core->auth->isSuperAdmin()) 314 326 { 315 327 echo 316 '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:'). 317 form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</ label></p>'.318 319 '<p><label for="url_scan">'.__('URL scan method:'). 320 form::combo('url_scan',$url_scan_combo,$blog_settings->system->url_scan).'</ label></p>'.321 322 '<p><label for="blog_status">'.__('Blog status:'). 323 form::combo('blog_status',$status_combo,$blog_status).'</ label></p>';328 '<p><label for="blog_url" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Blog URL:').'</label>'. 329 form::field('blog_url',30,255,html::escapeHTML($blog_url)).'</p>'. 330 331 '<p><label for="url_scan">'.__('URL scan method:').'</label>'. 332 form::combo('url_scan',$url_scan_combo,$blog_settings->system->url_scan).'</p>'. 333 334 '<p><label for="blog_status">'.__('Blog status:').'</label>'. 335 form::combo('blog_status',$status_combo,$blog_status).'</p>'; 324 336 } 325 337 … … 327 339 '<p class="area"><label for="blog_desc">'.__('Blog description:').'</label>'. 328 340 form::textarea('blog_desc',60,5,html::escapeHTML($blog_desc)).'</p>'. 329 '</ fieldset>';330 331 332 echo 333 '< fieldset><legend>'.__('Blog configuration').'</legend>'.341 '</div>'; 342 343 344 echo 345 '<div class="fieldset"><h4>'.__('Blog configuration').'</h4>'. 334 346 '<div class="two-cols">'. 335 347 '<div class="col">'. 336 '<p><label for="editor">'.__('Blog editor name:'). 348 '<p><label for="editor">'.__('Blog editor name:').'</label>'. 337 349 form::field('editor',30,255,html::escapeHTML($blog_settings->system->editor)). 338 '</ label></p>'.339 340 '<p><label for="lang">'.__('Default language:'). 350 '</p>'. 351 352 '<p><label for="lang">'.__('Default language:').'</label>'. 341 353 form::combo('lang',$lang_combo,$blog_settings->system->lang,'l10n'). 342 '</ label></p>'.343 344 '<p><label for="blog_timezone">'.__('Blog timezone:'). 354 '</p>'. 355 356 '<p><label for="blog_timezone">'.__('Blog timezone:').'</label>'. 345 357 form::combo('blog_timezone',dt::getZones(true,true),html::escapeHTML($blog_settings->system->blog_timezone)). 346 '</ label></p>'.347 348 '<p><label for="copyright_notice">'.__('Copyright notice:'). 358 '</p>'. 359 360 '<p><label for="copyright_notice">'.__('Copyright notice:').'</label>'. 349 361 form::field('copyright_notice',30,255,html::escapeHTML($blog_settings->system->copyright_notice)). 350 '</ label></p>'.351 '</div>'. 352 353 '<div class="col">'. 354 '<p><label for="post_url_format">'.__('New post URL format:'). 362 '</p>'. 363 '</div>'. 364 365 '<div class="col">'. 366 '<p><label for="post_url_format">'.__('New post URL format:').'</label>'. 355 367 form::combo('post_url_format',$post_url_combo,html::escapeHTML($blog_settings->system->post_url_format)). 356 '</ label></p>'.357 358 '<p><label for="note_title_tag">'.__('Note title HTML tag:'). 368 '</p>'. 369 370 '<p><label for="note_title_tag">'.__('Note title HTML tag:').'</label>'. 359 371 form::combo('note_title_tag',$note_title_tag_combo,$blog_settings->system->note_title_tag). 360 '</ label></p>'.361 362 '<p><label for="enable_xmlrpc" class="classic">'. 372 '</p>'. 373 374 '<p><label for="enable_xmlrpc" class="classic">'.'</label>'. 363 375 form::checkbox('enable_xmlrpc','1',$blog_settings->system->enable_xmlrpc). 364 __('Enable XML/RPC interface').'</ label></p>';376 __('Enable XML/RPC interface').'</p>'; 365 377 366 378 echo … … 385 397 '</div>'. 386 398 '<br class="clear" />'. //Opera sucks 387 '</fieldset>'; 388 389 echo 390 '<fieldset><legend>'.__('Comments and trackbacks').'</legend>'. 399 '</div>'; 400 401 echo 402 '<div class="fieldset"><h4>'.__('Comments and trackbacks').'</h4>'. 403 391 404 '<div class="two-cols">'. 405 392 406 '<div class="col">'. 393 407 '<p><label for="allow_comments" class="classic">'. 394 408 form::checkbox('allow_comments','1',$blog_settings->system->allow_comments). 395 __('Accept comments').'</label></p>'. 396 409 __('Accept comments').'</label></p>'. 397 410 '<p><label for="comments_pub" class="classic">'. 398 411 form::checkbox('comments_pub','1',!$blog_settings->system->comments_pub). 399 __('Moderate comments').'</label></p>'. 400 412 __('Moderate comments').'</label></p>'. 401 413 '<p><label for="comments_ttl" class="classic">'.sprintf(__('Leave comments open for %s days'), 402 414 form::field('comments_ttl',2,3,$blog_settings->system->comments_ttl)). 403 415 '</label></p>'. 404 '<p class="form-note">'.__('Leave blank to disable this feature.').'</p>'. 405 416 '<p class="form-note">'.__('Leave blank to disable this feature.').'</p>'. 406 417 '<p><label for="wiki_comments" class="classic">'. 407 418 form::checkbox('wiki_comments','1',$blog_settings->system->wiki_comments). … … 412 423 '<p><label for="allow_trackbacks" class="classic">'. 413 424 form::checkbox('allow_trackbacks','1',$blog_settings->system->allow_trackbacks). 414 __('Accept trackbacks').'</label></p>'. 415 425 __('Accept trackbacks').'</label></p>'. 416 426 '<p><label for="trackbacks_pub" class="classic">'. 417 427 form::checkbox('trackbacks_pub','1',!$blog_settings->system->trackbacks_pub). 418 __('Moderate trackbacks').'</label></p>'. 419 428 __('Moderate trackbacks').'</label></p>'. 420 429 '<p><label for="trackbacks_ttl" class="classic">'.sprintf(__('Leave trackbacks open for %s days'), 421 430 form::field('trackbacks_ttl',2,3,$blog_settings->system->trackbacks_ttl)).'</label></p>'. 422 '<p class="form-note">'.__('Leave blank to disable this feature.').'</p>'. 423 431 '<p class="form-note">'.__('Leave blank to disable this feature.').'</p>'. 424 432 '<p><label for="comments_nofollow" class="classic">'. 425 433 form::checkbox('comments_nofollow','1',$blog_settings->system->comments_nofollow). 426 434 __('Add "nofollow" relation on comments and trackbacks links').'</label></p>'. 427 435 '</div>'. 428 '</div>'.429 436 '<br class="clear" />'. //Opera sucks 430 '</fieldset>'; 431 432 echo 433 '<fieldset><legend>'.__('Blog presentation').'</legend>'. 437 438 '</div>'. 439 '<br class="clear" />'. //Opera sucks 440 '</div>'; 441 442 echo 443 '<div class="fieldset"><h4>'.__('Blog presentation').'</h4>'. 434 444 '<div class="two-cols">'. 435 445 '<div class="col">'. 436 '<p><label for="date_format">'.__('Date format:'). 446 '<p><label for="date_format">'.__('Date format:').'</label>'. 437 447 form::field('date_format',30,255,html::escapeHTML($blog_settings->system->date_format)). 438 '</ label></p>'.439 440 '<p><label for="time_format">'.__('Time format:'). 448 '</p>'. 449 450 '<p><label for="time_format">'.__('Time format:').'</label>'. 441 451 form::field('time_format',30,255,html::escapeHTML($blog_settings->system->time_format)). 442 '</ label></p>'.452 '</p>'. 443 453 444 454 '<p><label for="use_smilies" class="classic">'. … … 466 476 '</div>'. 467 477 '<br class="clear" />'. //Opera sucks 468 '</ fieldset>';469 470 echo 471 '< fieldset><legend>'.__('Media and images').'</legend>'.478 '</div>'; 479 480 echo 481 '<div class="fieldset"><h4>'.__('Media and images').'</h4>'. 472 482 '<div class="two-cols">'. 473 483 '<div class="col">'. 474 '<h 4>'.__('Generated image sizes (in pixels)').'</h4>'.484 '<h5>'.__('Generated image sizes (in pixels)').'</h5>'. 475 485 '<p class="field"><label for="media_img_t_size">'.__('Thumbnails:').' '. 476 486 form::field('media_img_t_size',3,3,$blog_settings->system->media_img_t_size).'</label></p>'. … … 484 494 485 495 '<div class="col">'. 486 '<h 4><label for="media_img_title_pattern">'.__('Inserted image title').'</label></h4>'.496 '<h5><label for="media_img_title_pattern">'.__('Inserted image title').'</label></h5>'. 487 497 '<p>'.__('This defines image tag title when you insert it in a post from the media manager. It is retrieved from the picture\'s metadata.').'</p>'. 488 498 '<p>'.form::combo('media_img_title_pattern',$img_title_combo,html::escapeHTML($blog_settings->system->media_img_title_pattern)).'</p>'. … … 491 501 __('Use original media date if possible').'</label></p>'. 492 502 493 '<h 4>'.__('Default image insertion attributes').'</h4>'.494 '<p><label for="media_img_default_size">'.__('Image size:'). 503 '<h5>'.__('Default image insertion attributes').'</h5>'. 504 '<p><label for="media_img_default_size">'.__('Image size:').'</label>'. 495 505 form::combo('media_img_default_size',$img_default_size_combo, 496 506 (html::escapeHTML($blog_settings->system->media_img_default_size) != '' ? html::escapeHTML($blog_settings->system->media_img_default_size) : 'm')). 497 '</ label></p>'.498 '<p><label for="media_img_default_alignment">'.__('Image alignment ').507 '</p>'. 508 '<p><label for="media_img_default_alignment">'.__('Image alignment:').'</label>'. 499 509 form::combo('media_img_default_alignment',$img_default_alignment_combo,html::escapeHTML($blog_settings->system->media_img_default_alignment)). 500 '</ label></p>'.510 '</p>'. 501 511 '<p><label for="media_img_default_link" class="classic">'. 502 512 form::checkbox('media_img_default_link','1',$blog_settings->system->media_img_default_link). … … 504 514 '</div>'. 505 515 '</div>'. 506 507 '</fieldset>'; 508 509 echo 510 '<fieldset><legend>'.__('Search engines robots policy').'</legend>'; 516 '<br class="clear" />'. //Opera sucks 517 518 '</div>'; 519 520 echo 521 '<div class="fieldset"><h4>'.__('Search engines robots policy').'</h4>'; 511 522 512 523 $i = 0; … … 518 529 } 519 530 520 echo '</ fieldset>';531 echo '</div>'; 521 532 522 533 … … 540 551 } else { 541 552 if ($blog_id == $core->blog->id) { 542 echo '<p class="message">'.__('The current blog cannot be deleted ').'</p>';553 echo '<p class="message">'.__('The current blog cannot be deleted.').'</p>'; 543 554 } else { 544 echo '<p class="message">'.__('Only superadmin can delete a blog ').'</p>';555 echo '<p class="message">'.__('Only superadmin can delete a blog.').'</p>'; 545 556 } 546 557 } -
admin/blog_pref.php
r1615 r1620 111 111 # Image default size combo 112 112 $img_default_size_combo = array(); 113 $media = new dcMedia($core); 114 $img_default_size_combo[__('original')] = 'o'; 115 foreach ($media->thumb_sizes as $code => $size) { 116 $img_default_size_combo[__($size[2])] = $code; 113 try { 114 $media = new dcMedia($core); 115 $img_default_size_combo[__('original')] = 'o'; 116 foreach ($media->thumb_sizes as $code => $size) { 117 $img_default_size_combo[__($size[2])] = $code; 118 } 119 } catch (Exception $e) { 120 $core->error->add($e->getMessage()); 117 121 } 118 122 -
admin/index.php
r1591 r1620 121 121 $__dashboard_items = new ArrayObject(array(new ArrayObject,new ArrayObject)); 122 122 123 # Documentation links124 123 $dashboardItem = 0; 125 if ($core->auth->user_prefs->dashboard->doclinks) {126 if (!empty($__resources['doc']))127 {128 $doc_links = '<h3>'.__('Documentation and support').'</h3><ul>';129 130 foreach ($__resources['doc'] as $k => $v) {131 $doc_links .= '<li><a href="'.$v.'" title="'.$k.' '.__('(external link)').'">'.$k.'</a></li>';132 }133 134 $doc_links .= '</ul>';135 $__dashboard_items[$dashboardItem][] = $doc_links;136 $dashboardItem++;137 }138 }139 124 140 125 if ($core->auth->user_prefs->dashboard->dcnews) { … … 180 165 } 181 166 167 # Documentation links 168 if ($core->auth->user_prefs->dashboard->doclinks) { 169 if (!empty($__resources['doc'])) 170 { 171 $doc_links = '<h3>'.__('Documentation and support').'</h3><ul>'; 172 173 foreach ($__resources['doc'] as $k => $v) { 174 $doc_links .= '<li><a href="'.$v.'" title="'.$k.' '.__('(external link)').'">'.$k.'</a></li>'; 175 } 176 177 $doc_links .= '</ul>'; 178 $__dashboard_items[$dashboardItem][] = $doc_links; 179 $dashboardItem++; 180 } 181 } 182 182 183 $core->callBehavior('adminDashboardItems', $core, $__dashboard_items); 183 184 … … 193 194 dcPage::jsLoad('js/_index.js'). 194 195 # --BEHAVIOR-- adminDashboardHeaders 195 $core->callBehavior('adminDashboardHeaders') 196 $core->callBehavior('adminDashboardHeaders'), 197 dcPage::breadcrumb( 198 array( 199 '<span class="page-title">'.__('Dashboard').' : '.html::escapeHTML($core->blog->name).'</span>' => '' 200 ), 201 false) 196 202 ); 197 203 198 echo '<h2>'.html::escapeHTML($core->blog->name).' › <span class="page-title">'.__('Dashboard').'</span></h2>'; 204 # Dotclear updates notifications 205 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS)) 206 { 207 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 208 $new_v = $updater->check(DC_VERSION); 209 $version_info = $new_v ? $updater->getInfoURL() : ''; 210 211 if ($updater->getNotify() && $new_v) { 212 $message = 213 '<div><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '. 214 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'. 215 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'. 216 ($version_info ? ' </li><li><a href="'.$version_info.'">'.__('information about this version').'</a>' : ''). 217 '</li></ul></div>'; 218 dcPage::message($message,false,true); 219 } 220 } 199 221 200 222 if ($core->auth->getInfo('user_default_blog') != $core->blog->id && $core->auth->blog_count > 1) { … … 204 226 205 227 if ($core->blog->status == 0) { 206 echo '<p class="static-msg">'.__('This blog is offline').' </p>';228 echo '<p class="static-msg">'.__('This blog is offline').'.</p>'; 207 229 } elseif ($core->blog->status == -1) { 208 echo '<p class="static-msg">'.__('This blog is removed').' </p>';230 echo '<p class="static-msg">'.__('This blog is removed').'.</p>'; 209 231 } 210 232 … … 305 327 if ($i->count() > 0) 306 328 { 307 $dashboardItems .= '<div >';329 $dashboardItems .= '<div class="db-item">'; 308 330 foreach ($i as $v) { 309 331 $dashboardItems .= $v; … … 339 361 } 340 362 } catch (Exception $e) { } 341 363 342 364 echo 343 365 '<div id="quick">'. 344 366 '<h3>'.__('Quick entry').'</h3>'. 345 '<form id="quick-entry" action="post.php" method="post" >'.346 '< fieldset><legend>'.__('New entry').'</legend>'.347 '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 367 '<form id="quick-entry" action="post.php" method="post" class="fieldset">'. 368 '<h4>'.__('New entry').'</h4>'. 369 '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 348 370 form::field('post_title',20,255,'','maximal'). 349 '</ label></p>'.371 '</p>'. 350 372 '<p class="area"><label class="required" '. 351 373 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 352 374 form::textarea('post_content',50,7). 353 375 '</p>'. 354 '<p><label for="cat_id" class="classic">'.__('Category:').' '.355 form::combo('cat_id',$categories_combo).'</ label></p>'.376 '<p><label for="cat_id" class="classic">'.__('Category:').'</label> '. 377 form::combo('cat_id',$categories_combo).'</p>'. 356 378 ($core->auth->check('categories', $core->blog->id) 357 379 ? '<div>'. 358 '<p id="new_cat">'.__('Add a new category').'</p>'. 380 '<p id="new_cat" class="q-cat">'.__('Add a new category').'</p>'. 381 '<p class="q-cat"><label for="new_cat_title">'.__('Title:').'</label> '. 382 form::field('new_cat_title',30,255,'','').'</p>'. 383 '<p class="q-cat"><label for="new_cat_parent">'.__('Parent:').'</label> '. 384 form::combo('new_cat_parent',$categories_combo,'',''). 385 '</p>'. 359 386 '<p class="form-note info clear">'.__('This category will be created when you will save your post.').'</p>'. 360 '<p><label for="new_cat_title">'.__('Title:').' '.361 form::field('new_cat_title',30,255,'','maximal').'</label></p>'.362 '<p><label for="new_cat_parent">'.__('Parent:').' '.363 form::combo('new_cat_parent',$categories_combo,'','maximal').364 '</label></p>'.365 387 '</div>' 366 388 : ''). … … 376 398 form::hidden('post_notes',''). 377 399 '</p>'. 378 '</fieldset>'.379 400 '</form>'. 380 401 '</div>'; -
admin/index.php
r1558 r1620 247 247 } 248 248 249 $err = array(); 250 251 # Check cache directory 252 if (!is_dir(DC_TPL_CACHE)) { 253 $err[] = '<p>'.sprintf(__('Cache directory %s does not exist.'),DC_TPL_CACHE).'</p>'; 254 } else if (!is_writable(DC_TPL_CACHE)) { 255 $err[] = '<p>'.sprintf(__('Cache directory %s is not writable.'),DC_TPL_CACHE).'</p>'; 256 } 257 258 # Check public directory 259 if (!is_dir($core->blog->public_path)) { 260 $err[] = '<p>'.sprintf(__('Directory %s does not exist.'),$core->blog->public_path).'</p>'; 261 } else if (!is_writable($core->blog->public_path)) { 262 $err[] = '<p>'.sprintf(__('Directory %s is not writable.'),$core->blog->public_path).'</p>'; 263 } 264 265 # Error list 266 if (count($err) > 0) { 267 echo '<div class="error"><p><strong>Erreur :</strong></p>'. 268 '<ul><li>'.implode("</li><li>",$err).'</li></ul></div>'; 269 } 270 249 271 # Plugins install messages 250 272 if (!empty($plugins_install['success'])) … … 267 289 # Dashboard columns (processed first, as we need to know the result before displaying the icons.) 268 290 $dashboardItems = ''; 291 292 # Dotclear updates notifications 293 if ($core->auth->isSuperAdmin() && is_readable(DC_DIGESTS)) 294 { 295 $updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 296 $new_v = $updater->check(DC_VERSION); 297 $version_info = $new_v ? $updater->getInfoURL() : ''; 298 299 if ($updater->getNotify() && $new_v) { 300 $dashboardItems .= 301 '<div id="upg-notify" class="static-msg"><p>'.sprintf(__('Dotclear %s is available!'),$new_v).'</p> '. 302 '<ul><li><strong><a href="update.php">'.sprintf(__('Upgrade now'),$new_v).'</a></strong>'. 303 '</li><li><a href="update.php?hide_msg=1">'.__('Remind me later').'</a>'. 304 ($version_info ? ' </li><li>'.sprintf(__('<a href=\"%s\">Information about this version</a>.'),$version_info) : ''). 305 '</li></ul></div>'; 306 } 307 } 269 308 270 309 # Errors modules notifications -
admin/install/index.php
r1583 r1620 190 190 $core->auth->user_prefs->dashboard->put('doclinks',true,'boolean','',null,true); 191 191 $core->auth->user_prefs->dashboard->put('dcnews',true,'boolean','',null,true); 192 $core->auth->user_prefs->dashboard->put('quickentry', false,'boolean','',null,true);192 $core->auth->user_prefs->dashboard->put('quickentry',true,'boolean','',null,true); 193 193 194 194 # Add accessibility options … … 307 307 '<div id="main">'; 308 308 309 if (!is_writable(DC_TPL_CACHE)) { 310 echo '<div class="error"><p>'.sprintf(__('Cache directory %s is not writable.'),DC_TPL_CACHE).'</p></div>'; 311 } 312 309 313 if ($can_install && !empty($err)) { 310 314 echo '<div class="error"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'; … … 312 316 313 317 if (!empty($_GET['wiz'])) { 314 echo '<p class=" message">'.__('Configuration file has been successfully created.').'</p>';318 echo '<p class="success">'.__('Configuration file has been successfully created.').'</p>'; 315 319 } 316 320 … … 324 328 '<form action="index.php" method="post">'. 325 329 '<fieldset><legend>'.__('User information').'</legend>'. 326 '<p><label for="u_firstname">'.__('First Name:').' '.327 form::field('u_firstname',30,255,html::escapeHTML($u_firstname)).'</ label></p>'.328 '<p><label for="u_name">'.__('Last Name:').' '.329 form::field('u_name',30,255,html::escapeHTML($u_name)).'</ label></p>'.330 '<p><label for="u_email">'.__('Email:').' '.331 form::field('u_email',30,255,html::escapeHTML($u_email)).'</ label></p>'.330 '<p><label for="u_firstname">'.__('First Name:').'</label> '. 331 form::field('u_firstname',30,255,html::escapeHTML($u_firstname)).'</p>'. 332 '<p><label for="u_name">'.__('Last Name:').'</label> '. 333 form::field('u_name',30,255,html::escapeHTML($u_name)).'</p>'. 334 '<p><label for="u_email">'.__('Email:').'</label> '. 335 form::field('u_email',30,255,html::escapeHTML($u_email)).'</p>'. 332 336 '</fieldset>'. 333 337 … … 378 382 $plugins_install_result. 379 383 380 '<p >'.__('Dotclear has been successfully installed. Here is some useful information you should keep.').'</p>'.384 '<p class="success">'.__('Dotclear has been successfully installed. Here is some useful information you should keep.').'</p>'. 381 385 382 386 '<h3>'.__('Your account').'</h3>'. -
admin/install/index.php
r1553 r1620 267 267 268 268 <script type="text/javascript" src="../js/jquery/jquery.js"></script> 269 <?php echo dcPage::jsLoad('../js/jquery/jquery.pwstrength.js'); ?> 269 270 <script type="text/javascript"> 270 271 //<![CDATA[ … … 278 279 $(this).val(this.value.replace(login_re,'')); 279 280 }); 281 282 <?php echo "\$('#u_pwd').pwstrength({texts: ['". 283 sprintf(__('Password strength: %s'),__('very weak'))."', '". 284 sprintf(__('Password strength: %s'),__('weak'))."', '". 285 sprintf(__('Password strength: %s'),__('mediocre'))."', '". 286 sprintf(__('Password strength: %s'),__('strong'))."', '". 287 sprintf(__('Password strength: %s'),__('very strong'))."']});\n"; ?> 280 288 281 289 $('#u_login').parent().after($('<input type="hidden" name="u_date" value="' + Date().toLocaleString() + '" />')); … … 329 337 330 338 '<fieldset><legend>'.__('Username and password').'</legend>'. 331 '<p><label for="u_login" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').'</label> '. 332 form::field('u_login',30,32,html::escapeHTML($u_login)).'</p>'. 333 '<p><label for="u_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Password:').'</label> '. 334 form::password('u_pwd',30,255).'</p>'. 335 '<p><label for="u_pwd2" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Confirm password:').'</label> '. 336 form::password('u_pwd2',30,255).'</p>'. 339 '<p><label for="u_login" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 340 form::field('u_login',30,32,html::escapeHTML($u_login)).'</label></p>'. 341 '<div class="pw-table">'. 342 '<p class="pw-cell">'. 343 '<label for="u_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('New password:').'</label>'. 344 form::password('u_pwd',30,255,'','','',false,' data-indicator="pwindicator" '). 345 '</p>'. 346 '<div id="pwindicator">'. 347 ' <div class="bar"></div>'. 348 ' <p class="label no-margin"></p>'. 349 '</div>'. 350 '</div>'. 351 '<p><label for="u_pwd2" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Confirm password:').' '. 352 form::password('u_pwd2',30,255).'</label></p>'. 337 353 '</fieldset>'. 338 354 -
admin/post.php
r1537 r1620 50 50 } 51 51 52 # Getting categories 53 $categories_combo = array(' ' => ''); 54 try { 55 $categories = $core->blog->getCategories(array('post_type'=>'post')); 56 while ($categories->fetch()) { 57 $categories_combo[] = new formSelectOption( 58 str_repeat(' ',$categories->level-1).($categories->level-1 == 0 ? '' : '• ').html::escapeHTML($categories->cat_title), 59 $categories->cat_id 60 ); 61 } 62 } catch (Exception $e) { } 63 52 64 # Status combo 53 65 foreach ($core->blog->getAllPostStatus() as $k => $v) { … … 82 94 if (!empty($_REQUEST['id'])) 83 95 { 96 $page_title = __('Edit entry'); 97 84 98 $params['post_id'] = $_REQUEST['id']; 85 99 … … 111 125 $post_open_tb = (boolean) $post->post_open_tb; 112 126 113 $page_title = __('Edit entry');114 115 127 $can_edit_post = $post->isEditable(); 116 128 $can_delete= $post->isDeletable(); … … 121 133 if ($next_rs !== null) { 122 134 $next_link = sprintf($post_link,$next_rs->post_id, 123 html::escapeHTML($next_rs->post_title),__(' next entry').' »');135 html::escapeHTML($next_rs->post_title),__('Next entry').' »'); 124 136 $next_headlink = sprintf($post_headlink,'next', 125 137 html::escapeHTML($next_rs->post_title),$next_rs->post_id); … … 128 140 if ($prev_rs !== null) { 129 141 $prev_link = sprintf($post_link,$prev_rs->post_id, 130 html::escapeHTML($prev_rs->post_title),'« '.__(' previous entry'));142 html::escapeHTML($prev_rs->post_title),'« '.__('Previous entry')); 131 143 $prev_headlink = sprintf($post_headlink,'previous', 132 144 html::escapeHTML($prev_rs->post_title),$prev_rs->post_id); … … 316 328 } 317 329 330 if ($post_id) { 331 switch ($post_status) { 332 case 1: 333 $img_status = sprintf($img_status_pattern,__('Published'),'check-on.png'); 334 break; 335 case 0: 336 $img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png'); 337 break; 338 case -1: 339 $img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png'); 340 break; 341 case -2: 342 $img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png'); 343 break; 344 default: 345 $img_status = ''; 346 } 347 $edit_entry_str = __('“%s”'); 348 $page_title_edit = sprintf($edit_entry_str, html::escapeHTML($post_title)).' '.$img_status; 349 } else { 350 $img_status = ''; 351 } 352 353 318 354 dcPage::open($page_title.' - '.__('Entries'), 319 355 dcPage::jsDatePicker(). … … 326 362 $core->callBehavior('adminPostHeaders'). 327 363 dcPage::jsPageTabs($default_tab). 328 $next_headlink."\n".$prev_headlink 364 $next_headlink."\n".$prev_headlink, 365 dcPage::breadcrumb( 366 array( 367 html::escapeHTML($core->blog->name) => '', 368 __('Entries') => 'posts.php', 369 '<span class="page-title">'.($post_id ? $page_title_edit : $page_title).'</span>' => '' 370 )) 329 371 ); 330 372 331 373 if (!empty($_GET['upd'])) { 332 dcPage:: message(__('Entry has been successfully updated.'));374 dcPage::success(__('Entry has been successfully updated.')); 333 375 } 334 376 elseif (!empty($_GET['crea'])) { 335 dcPage:: message(__('Entry has been successfully created.'));377 dcPage::success(__('Entry has been successfully created.')); 336 378 } 337 379 elseif (!empty($_GET['attached'])) { 338 dcPage:: message(__('File has been successfully attached.'));380 dcPage::success(__('File has been successfully attached.')); 339 381 } 340 382 elseif (!empty($_GET['rmattach'])) { 341 dcPage:: message(__('Attachment has been successfully removed.'));383 dcPage::success(__('Attachment has been successfully removed.')); 342 384 } 343 385 344 386 if (!empty($_GET['creaco'])) { 345 dcPage:: message(__('Comment has been successfully created.'));387 dcPage::success(__('Comment has been successfully created.')); 346 388 } 347 389 … … 356 398 } 357 399 358 echo '<h2>'.html::escapeHTML($core->blog->name).' › '.'<a href="posts.php">'.__('Entries').'</a> › <span class="page-title">';359 if ($post_id) {360 switch ($post_status) {361 case 1:362 $img_status = sprintf($img_status_pattern,__('published'),'check-on.png');363 break;364 case 0:365 $img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png');366 break;367 case -1:368 $img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png');369 break;370 case -2:371 $img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png');372 break;373 default:374 $img_status = '';375 }376 $edit_entry_str = __('Edit entry “%s”');377 echo sprintf($edit_entry_str, html::escapeHTML($post_title)).' '.$img_status;378 } else {379 echo $page_title;380 }381 echo '</span></h2>';382 383 400 if ($post_id && $post->post_status == 1) { 384 echo '<p><a href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';401 echo '<p><a class="onblog_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 385 402 } 386 403 if ($post_id) 387 404 { 388 echo '<p >';405 echo '<p class="nav_prevnext">'; 389 406 if ($prev_link) { echo $prev_link; } 390 if ($next_link && $prev_link) { echo ' -'; }407 if ($next_link && $prev_link) { echo ' | '; } 391 408 if ($next_link) { echo $next_link; } 392 409 … … 403 420 exit; 404 421 } 405 406 422 /* Post form if we can edit post 407 423 -------------------------------------------------------- */ 408 424 if ($can_edit_post) 409 425 { 410 echo '<div class="multi-part" title="'.__('Edit entry').'" id="edit-entry">'; 426 $sidebar_items = new ArrayObject(array( 427 'status-box' => array( 428 'title' => __('Status'), 429 'items' => array( 430 'post_status' => 431 '<p class="entry-status"><label for="post_status" class="ib">'.__('Entry status').' '.$img_status.'</label>'. 432 form::combo('post_status',$status_combo,$post_status,'maximal','',!$can_publish). 433 '</p>', 434 'post_dt' => 435 '<p><label for="post_dt" class="ib">'.__('Publication date and hour').'</label>'. 436 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')). 437 '</p>', 438 'post_lang' => 439 '<p><label for="post_lang" class="ib">'.__('Entry lang').'</label>'. 440 form::combo('post_lang',$lang_combo,$post_lang). 441 '</p>', 442 'post_format' => 443 '<div>'. 444 '<h5 id="label_format"><label for="post_format" class="ib">'.__('Text formating').'</label></h5>'. 445 '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 446 '</p>'. 447 '<p>'.($post_id && $post_format != 'xhtml' ? 448 '<a id="convert-xhtml" class="button maximal" href="post.php?id='.$post_id.'&xconv=1">'. 449 __('Convert to XHTML').'</a>' : '').'</p></div>')), 450 'metas-box' => array( 451 'title' => __('Ordering'), 452 'items' => array( 453 'post_selected' => 454 '<p><label for="post_selected" class="classic">'. 455 form::checkbox('post_selected',1,$post_selected).' '. 456 __('Selected entry').'</label></p>', 457 'cat_id' => 458 '<p><label for="cat_id" class="ib">'.__('Category').'</label>'. 459 form::combo('cat_id',$categories_combo,$cat_id,'maximal'). 460 '</p>'. 461 ($core->auth->check('categories', $core->blog->id) ? 462 '<div>'. 463 '<h5 id="create_cat">'.__('Add a new category').'</h5>'. 464 '<p><label for="new_cat_title">'.__('Title:').' '. 465 form::field('new_cat_title',30,255,'','maximal').'</label></p>'. 466 '<p><label for="new_cat_parent">'.__('Parent:').' '. 467 form::combo('new_cat_parent',$categories_combo,'','maximal'). 468 '</label></p>'. 469 '</div>' 470 : ''))), 471 'options-box' => array( 472 'title' => __('Options'), 473 'items' => array( 474 'post_open_comment' => 475 '<p><label for="post_open_comment" class="classic">'. 476 form::checkbox('post_open_comment',1,$post_open_comment).' '. 477 __('Accept comments').'</label></p>'. 478 ($core->blog->settings->system->allow_comments ? 479 (isContributionAllowed($post_id,strtotime($post_dt),true) ? 480 '' : 481 '<p class="form-note warn">'. 482 __('Warning: Comments are not more accepted for this entry.').'</p>') : 483 '<p class="form-note warn">'. 484 __('Warning: Comments are not accepted on this blog.').'</p>'), 485 'post_open_tb' => 486 '<p><label for="post_open_tb" class="classic">'. 487 form::checkbox('post_open_tb',1,$post_open_tb).' '. 488 __('Accept trackbacks').'</label></p>'. 489 ($core->blog->settings->system->allow_trackbacks ? 490 (isContributionAllowed($post_id,strtotime($post_dt),false) ? 491 '' : 492 '<p class="form-note warn">'. 493 __('Warning: Trackbacks are not more accepted for this entry.').'</p>') : 494 '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>'), 495 'post_password' => 496 '<p><label for="post_password" class="ib">'.__('Password').'</label>'. 497 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 498 '</p>', 499 'post_url' => 500 '<div class="lockable">'. 501 '<p><label for="post_url" class="ib">'.__('Edit basename').'</label>'. 502 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 503 '</p>'. 504 '<p class="form-note warn">'. 505 __('Warning: If you set the URL manually, it may conflict with another entry.'). 506 '</p></div>' 507 )))); 508 509 $main_items = new ArrayObject(array( 510 "post_title" => 511 '<p class="col">'. 512 '<label class="required no-margin"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 513 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 514 '</p>', 515 516 "post_excerpt" => 517 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'<span class="form-note">'. 518 __('Add an introduction to the post.').'</span></label> '. 519 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 520 '</p>', 521 522 "post_content" => 523 '<p class="area"><label class="required" '. 524 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 525 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 526 '</p>', 527 528 "post_notes" => 529 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').'<span class="form-note">'. 530 __('Add unpublished notes.').'</span></label>'. 531 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 532 '</p>' 533 ) 534 ); 535 536 # --BEHAVIOR-- adminPostFormItems 537 $core->callBehavior('adminPostFormItems',$main_items,$sidebar_items, isset($post) ? $post : null); 538 539 echo '<div class="multi-part" title="'.($post_id ? __('Edit entry') : __('New entry')).'" id="edit-entry">'; 411 540 echo '<form action="post.php" method="post" id="entry-form">'; 412 541 echo '<div id="entry-wrapper">'; 413 542 echo '<div id="entry-content"><div class="constrained">'; 543 544 echo '<h3 class="hidden">'.__('Edit post').'</h3>'; 545 546 foreach ($main_items as $id => $item) { 547 echo $item; 548 } 549 550 # --BEHAVIOR-- adminPostForm (may be deprecated) 551 $core->callBehavior('adminPostForm',isset($post) ? $post : null); 414 552 415 553 echo 416 '<p class="col"><label class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 417 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 418 '</label></p>'. 419 420 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '. 421 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 422 '</p>'. 423 424 '<p class="area"><label class="required" '. 425 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 426 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 427 '</p>'. 428 429 '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'. 430 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 431 '</p>'; 432 433 # --BEHAVIOR-- adminPostForm 434 $core->callBehavior('adminPostForm',isset($post) ? $post : null); 435 436 echo 437 '<p>'. 554 '<p class="border-top">'. 438 555 ($post_id ? form::hidden('id',$post_id) : ''). 439 556 '<input type="submit" value="'.__('Save').' (s)" '. … … 460 577 echo '<div id="entry-sidebar">'; 461 578 462 echo 463 '<p><label for="cat_id">'.__('Category:'). 464 form::combo('cat_id',$categories_combo,$cat_id,'maximal'). 465 '</label></p>'. 466 467 ($core->auth->check('categories', $core->blog->id) ? 468 '<div>'. 469 '<p id="new_cat">'.__('Add a new category').'</p>'. 470 '<p class="form-note info clear">'.__('This category will be created when you will save your post.').'</p>'. 471 '<p><label for="new_cat_title">'.__('Title:').' '. 472 form::field('new_cat_title',30,255,'','maximal').'</label></p>'. 473 '<p><label for="new_cat_parent">'.__('Parent:').' '. 474 form::combo('new_cat_parent',$categories_combo,'','maximal'). 475 '</label></p>'. 476 '</div>' 477 : ''). 478 479 '<p><label for="post_status">'.__('Entry status:'). 480 form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). 481 '</label></p>'. 482 483 '<p><label for="post_dt">'.__('Published on:'). 484 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')). 485 '</label></p>'. 486 487 '<p><label for="post_format">'.__('Text formating:'). 488 form::combo('post_format',$formaters_combo,$post_format). 489 '</label>'. 490 '</p>'. 491 '<p>'.($post_id && $post_format != 'xhtml' ? '<a id="convert-xhtml" class="button" href="post.php?id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : '').'</p>'. 492 493 '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. 494 __('Accept comments').'</label></p>'. 495 ($core->blog->settings->system->allow_comments ? 496 (isContributionAllowed($post_id,strtotime($post_dt),true) ? 497 '' : 498 '<p class="form-note warn">'.__('Warning: Comments are not more accepted for this entry.').'</p>') : 499 '<p class="form-note warn">'.__('Warning: Comments are not accepted on this blog.').'</p>'). 500 501 '<p><label for="post_open_tb" class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb).' '. 502 __('Accept trackbacks').'</label></p>'. 503 ($core->blog->settings->system->allow_trackbacks ? 504 (isContributionAllowed($post_id,strtotime($post_dt),false) ? 505 '' : 506 '<p class="form-note warn">'.__('Warning: Trackbacks are not more accepted for this entry.').'</p>') : 507 '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>'). 508 509 '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected).' '. 510 __('Selected entry').'</label></p>'. 511 512 '<p><label for="post_lang">'.__('Entry lang:'). 513 form::combo('post_lang',$lang_combo,$post_lang). 514 '</label></p>'. 515 516 '<p><label for="post_password">'.__('Entry password:'). 517 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 518 '</label></p>'. 519 520 '<div class="lockable">'. 521 '<p><label for="post_url">'.__('Basename:'). 522 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 523 '</label></p>'. 524 '<p class="form-note warn">'. 525 __('Warning: If you set the URL manually, it may conflict with another entry.'). 526 '</p>'. 527 '</div>'; 528 529 # --BEHAVIOR-- adminPostFormSidebar 579 foreach ($sidebar_items as $id => $c) { 580 echo '<div id="'.$id.'" class="box">'. 581 '<h4>'.$c['title'].'</h4>'; 582 foreach ($c['items'] as $e_name=>$e_content) { 583 echo $e_content; 584 } 585 echo '</div>'; 586 } 587 588 589 # --BEHAVIOR-- adminPostFormSidebar (may be deprecated) 530 590 $core->callBehavior('adminPostFormSidebar',isset($post) ? $post : null); 531 532 591 echo '</div>'; // End #entry-sidebar 533 592 … … 560 619 if ($can_edit_post && $core->auth->check('publish,contentadmin',$core->blog->id)) 561 620 { 562 $combo_action[__(' publish')] = 'publish';563 $combo_action[__(' unpublish')] = 'unpublish';564 $combo_action[__(' mark as pending')] = 'pending';565 $combo_action[__(' mark as junk')] = 'junk';621 $combo_action[__('Publish')] = 'publish'; 622 $combo_action[__('Unpublish')] = 'unpublish'; 623 $combo_action[__('Mark as pending')] = 'pending'; 624 $combo_action[__('Mark as junk')] = 'junk'; 566 625 } 567 626 … … 571 630 } 572 631 632 echo 633 '<div id="comments" class="multi-part" title="'.__('Comments').'">'; 634 573 635 # --BEHAVIOR-- adminCommentsActionsCombo 574 636 $core->callBehavior('adminCommentsActionsCombo',array(&$combo_action)); 575 637 576 638 $has_action = !empty($combo_action) && (!$trackbacks->isEmpty() || !$comments->isEmpty()); 577 578 echo 579 '<div id="comments" class="multi-part" title="'.__('Comments').'">'; 639 echo 640 '<p class="top-add"><a class="button add onblog_link" href="#comment-form">'.__('Add a comment').'</a></p>'; 580 641 581 642 if ($has_action) { 582 echo '<form action="comments_actions.php" id="form-comments" method="post" >';583 } 584 585 echo '<h3 >'.__('Trackbacks').'</h3>';643 echo '<form action="comments_actions.php" id="form-comments" method="post" class="clear">'; 644 } 645 646 echo '<h3 class="clear">'.__('Trackbacks').'</h3>'; 586 647 587 648 if (!$trackbacks->isEmpty()) { … … 611 672 '</form>'; 612 673 } 613 614 echo '</div>'; 615 } 616 617 /* Add a comment 618 -------------------------------------------------------- */ 619 if ($post_id) 620 { 674 /* Add a comment 675 -------------------------------------------------------- */ 676 621 677 echo 622 '<div class=" multi-part" id="add-comment" title="'.__('Add a comment').'">'.678 '<div class="fieldset clear">'. 623 679 '<h3>'.__('Add a comment').'</h3>'. 624 680 625 681 '<form action="comment.php" method="post" id="comment-form">'. 626 682 '<div class="constrained">'. 627 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 683 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 628 684 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 629 '</ label></p>'.630 631 '<p><label for="comment_email">'.__('Email:'). 685 '</p>'. 686 687 '<p><label for="comment_email">'.__('Email:').'</label>'. 632 688 form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))). 633 '</ label></p>'.634 635 '<p><label for="comment_site">'.__('Web site:'). 689 '</p>'. 690 691 '<p><label for="comment_site">'.__('Web site:').'</label>'. 636 692 form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 637 '</ label></p>'.693 '</p>'. 638 694 639 695 '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '. … … 645 701 $core->formNonce(). 646 702 '<input type="submit" name="add" value="'.__('Save').'" /></p>'. 647 '</div>'. 703 '</div>'. #constrained 704 648 705 '</form>'. 649 '</div>'; 706 '</div>'. #add comment 707 '</div>'; #comments 650 708 } 651 709 … … 677 735 echo 678 736 '<table class="comments-list"><tr>'. 679 '<th colspan="2" >'.__('Author').'</th>'.737 '<th colspan="2" class="first">'.__('Author').'</th>'. 680 738 '<th>'.__('Date').'</th>'. 681 739 '<th class="nowrap">'.__('IP address').'</th>'. 682 740 '<th>'.__('Status').'</th>'. 683 '<th> </th>'.741 '<th>'.__('Edit').'</th>'. 684 742 '</tr>'; 685 743 … … 691 749 switch ($rs->comment_status) { 692 750 case 1: 693 $img_status = sprintf($img,__(' published'),'check-on.png');751 $img_status = sprintf($img,__('Published'),'check-on.png'); 694 752 break; 695 753 case 0: 696 $img_status = sprintf($img,__(' unpublished'),'check-off.png');754 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 697 755 break; 698 756 case -1: 699 $img_status = sprintf($img,__(' pending'),'check-wrn.png');757 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 700 758 break; 701 759 case -2: 702 $img_status = sprintf($img,__(' junk'),'junk.png');760 $img_status = sprintf($img,__('Junk'),'junk.png'); 703 761 break; 704 762 } … … 715 773 '<td class="nowrap status">'.$img_status.'</td>'. 716 774 '<td class="nowrap status"><a href="'.$comment_url.'">'. 717 '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> </a></td>'.775 '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> '.__('Edit').'</a></td>'. 718 776 719 777 '</tr>'; … … 723 781 } 724 782 725 dcPage::helpBlock('core_post','core_ wiki');783 dcPage::helpBlock('core_post','core_trackbacks','core_wiki'); 726 784 dcPage::close(); 727 785 ?> -
admin/post.php
r1619 r1620 147 147 try { 148 148 $core->media = new dcMedia($core); 149 } catch (Exception $e) {} 149 } catch (Exception $e) { 150 $core->error->add($e->getMessage()); 151 } 150 152 } 151 153 } -
admin/style/install.css
r1583 r1620 6 6 Please see http://dotclear.net/ for more details. 7 7 */ 8 html { 9 font-size: 62.5%; 10 } 8 11 body.install { 9 font: 0.875em Helvetica,Arial,sans-serif; 10 color: #000; 11 background-color: #fff; 12 line-height: 1.5em; 12 font: 1.2rem/1.5 Arial,Helvetica,sans-serif; 13 color: #333; 14 background: #fff; 15 margin: 0; 16 padding: 0; 13 17 } 14 18 body.install #content { … … 22 26 } 23 27 body.install h1,h2 { 24 font-family: Helvetica,arial,sans-serif;28 font-family: arial,Helvetica,sans-serif; 25 29 } 26 30 body.install h1 { -
admin/style/install.css
r1330 r1620 158 158 border: 1px solid #2C8FD1; 159 159 } 160 161 162 /* --------------------------------------------------------------- password indcator */ 163 .pw-table { 164 display: table; 165 margin-bottom: 1em; 166 } 167 .pw-cell { 168 display: table-cell; 169 margin-bottom: 1em; 170 } 171 #pwindicator { 172 display: table-cell; 173 vertical-align: bottom; 174 padding-left: 1.5em; 175 height: 3.8em; 176 } 177 #pwindicator .bar { 178 height: 6px; 179 margin-bottom: 4px; 180 } 181 .pw-very-weak .bar { 182 background: #900; 183 width: 30px; 184 } 185 .pw-weak .bar { 186 background: #c00; 187 width: 60px; 188 } 189 .pw-mediocre .bar { 190 background: #f60; 191 width: 90px; 192 } 193 .pw-strong .bar { 194 background: #060; 195 width: 120px; 196 } 197 .pw-very-strong .bar { 198 background: #0c0; 199 width: 150px; 200 } -
admin/update.php
r1591 r1620 174 174 dcPage::jsPageTabs($default_tab). 175 175 dcPage::jsLoad('js/_update.js') 176 : '') 176 : ''), 177 dcPage::breadcrumb( 178 array( 179 __('System') => '', 180 '<span class="page-title">'.__('Dotclear update').'</span>' => '' 181 )) 177 182 ); 178 183 179 184 if (!$core->error->flag()) { 180 echo '<h2>'.__('Dotclear update').'</h2>';181 182 185 if (!empty($_GET['nocache'])) { 183 dcPage:: message(__('Manual checking of update done successfully.'));186 dcPage::success(__('Manual checking of update done successfully.')); 184 187 } 185 188 } … … 200 203 echo 201 204 '<p class="static-msg">'.sprintf(__('Dotclear %s is available.'),$new_v). 202 ($version_info ? ' ('.sprintf(__('<a href=\"%s\">Information about this version</a>.'),$version_info).')' : '').205 ($version_info ? ' <a href="'.$version_info.'">('.__('Information about this version').')</a>' : ''). 203 206 '</p>'. 204 207 -
admin/update.php
r1553 r1620 249 249 '<p class="message">'. 250 250 __("Congratulations, you're one click away from the end of the update."). 251 ' <strong><a href="index.php?logout=1">'.__('Finish the update ').'</a>.</strong>'.251 ' <strong><a href="index.php?logout=1">'.__('Finish the update.').'</a></strong>'. 252 252 '</p>'; 253 253 } -
admin/user.php
r1583 r1620 15 15 dcPage::checkSuper(); 16 16 17 $page_title = __(' new user');17 $page_title = __('New user'); 18 18 19 19 $user_id = ''; … … 187 187 188 188 # --BEHAVIOR-- adminUserHeaders 189 $core->callBehavior('adminUserHeaders') 189 $core->callBehavior('adminUserHeaders'), 190 191 dcPage::breadcrumb( 192 array( 193 __('System') => '', 194 __('Users') => 'users.php', 195 '<span class="page-title">'.$page_title.'</span>' => '' 196 )) 190 197 ); 191 198 192 199 if (!empty($_GET['upd'])) { 193 dcPage:: message(__('User has been successfully updated.'));200 dcPage::success(__('User has been successfully updated.')); 194 201 } 195 202 196 203 if (!empty($_GET['add'])) { 197 dcPage::message(__('User has been successfully created.')); 198 } 199 200 echo '<h2><a href="users.php">'.__('Users').'</a> › <span class="page-title">'.$page_title.'</span></h2>'; 204 dcPage::success(__('User has been successfully created.')); 205 } 206 207 echo 208 '<form action="user.php" method="post" id="user-form" class="fieldset">'. 209 '<div class="two-cols">'. 210 211 '<div class="col">'. 212 '<h3>'.__('User profile').'</h3>'. 213 214 '<p><label for="user_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('User ID:').'</label> '. 215 form::field('user_id',20,255,html::escapeHTML($user_id)). 216 '</p>'. 217 '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'; 201 218 202 219 if ($user_id == $core->auth->userID()) { … … 231 248 232 249 '<p><label for="new_pwd_c" '.($user_id != '' ? '' : 'class="required"').'>'. 233 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Confirm password:').' '.250 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Confirm password:').'</label> '. 234 251 form::password('new_pwd_c',20,255). 235 '</label></p>'. 236 237 '<p><label for="user_name">'.__('Last Name:').' '. 238 form::field('user_name',20,255,html::escapeHTML($user_name)). 239 '</label></p>'. 240 241 '<p><label for="user_firstname">'.__('First Name:').' '. 242 form::field('user_firstname',20,255,html::escapeHTML($user_firstname)). 243 '</label></p>'. 244 245 '<p><label for="user_displayname">'.__('Display name:').' '. 246 form::field('user_displayname',20,255,html::escapeHTML($user_displayname)). 247 '</label></p>'. 248 249 '<p><label for="user_email">'.__('Email:').' '. 250 form::field('user_email',20,255,html::escapeHTML($user_email)). 251 '</label></p>'. 252 '<p class="form-note">'.__('Mandatory for password recovering procedure.').'</p>'. 253 '</div>'. 254 255 '<div class="col">'. 256 '<p><label for="user_url">'.__('URL:').' '. 257 form::field('user_url',30,255,html::escapeHTML($user_url)). 258 '</label></p>'. 259 '<p><label for="user_post_format">'.__('Preferred format:').' '. 260 form::combo('user_post_format',$formaters_combo,$user_options['post_format']). 261 '</label></p>'. 262 263 '<p><label for="user_post_status">'.__('Default entry status:').' '. 264 form::combo('user_post_status',$status_combo,$user_post_status). 265 '</label></p>'. 266 267 '<p><label for="user_edit_size">'.__('Entry edit field height:').' '. 268 form::field('user_edit_size',5,4,(integer) $user_options['edit_size']). 269 '</label></p>'. 270 271 '<p><label for="user_lang">'.__('User language:').' '. 272 form::combo('user_lang',$lang_combo,$user_lang,'l10n'). 273 '</label></p>'. 274 275 '<p><label for="user_tz">'.__('User timezone:').' '. 276 form::combo('user_tz',dt::getZones(true,true),$user_tz). 277 '</label></p>'; 252 '</p>'; 278 253 279 254 if ($core->auth->allowPassChange()) { … … 285 260 286 261 $super_disabled = $user_super && $user_id == $core->auth->userID(); 287 288 262 echo 289 263 '<p><label for="user_super" class="classic">'.form::checkbox('user_super','1',$user_super,'','',$super_disabled).' '. 290 264 __('Super administrator').'</label></p>'. 265 266 '<p><label for="user_name">'.__('Last Name:').'</label> '. 267 form::field('user_name',20,255,html::escapeHTML($user_name)). 268 '</p>'. 269 270 '<p><label for="user_firstname">'.__('First Name:').'</label> '. 271 form::field('user_firstname',20,255,html::escapeHTML($user_firstname)). 272 '</p>'. 273 274 '<p><label for="user_displayname">'.__('Display name:').'</label> '. 275 form::field('user_displayname',20,255,html::escapeHTML($user_displayname)). 276 '</p>'. 277 278 '<p><label for="user_email">'.__('Email:').'</label> '. 279 form::field('user_email',20,255,html::escapeHTML($user_email)). 280 '</p>'. 281 '<p class="form-note">'.__('Mandatory for password recovering procedure.').'</p>'. 282 283 '<p><label for="user_url">'.__('URL:').'</label> '. 284 form::field('user_url',30,255,html::escapeHTML($user_url)). 285 '</p>'. 291 286 '</div>'. 292 '</div>'. 293 '</fieldset>'; 287 288 '<div class="col">'. 289 '<h3>'.__('Options').'</h3>'. 290 '<h4>'.__('Interface').'</h4>'. 291 '<p><label for="user_lang">'.__('Language:').'</label> '. 292 form::combo('user_lang',$lang_combo,$user_lang,'l10n'). 293 '</p>'. 294 295 '<p><label for="user_tz">'.__('Timezone:').'</label> '. 296 form::combo('user_tz',dt::getZones(true,true),$user_tz). 297 '</p>'. 298 299 '<h4>'.__('Edition').'</h4>'. 300 '<p><label for="user_post_format">'.__('Preferred format:').'</label> '. 301 form::combo('user_post_format',$formaters_combo,$user_options['post_format']). 302 '</p>'. 303 304 '<p><label for="user_post_status">'.__('Default entry status:').'</label> '. 305 form::combo('user_post_status',$status_combo,$user_post_status). 306 '</p>'. 307 308 '<p><label for="user_edit_size">'.__('Entry edit field height:').'</label> '. 309 form::field('user_edit_size',5,4,(integer) $user_options['edit_size']). 310 '</p>'; 294 311 295 312 # --BEHAVIOR-- adminUserForm 296 313 $core->callBehavior('adminUserForm',isset($rs) ? $rs : null); 297 314 315 echo 316 '</div>'. 317 '</div>'; 318 319 298 320 echo 299 '<p ><label for="your_pwd" '.($user_id != '' ? '' : 'class="required"').'>'.300 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> ').__('Your password:').301 form::password('your_pwd',20,255).'</ label></p>'.321 '<p class="clear border-top"><label for="your_pwd" class="required">'. 322 '<abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').'</label>'. 323 form::password('your_pwd',20,255).'</p>'. 302 324 '<p class="clear"><input type="submit" name="save" accesskey="s" value="'.__('Save').'" />'. 303 325 ($user_id != '' ? '' : ' <input type="submit" name="saveplus" value="'.__('Save and create another').'" />'). … … 310 332 if ($user_id) 311 333 { 312 echo '<div class="clear fieldset"><h3>'.__('Permissions').'</h3>'. 313 '<form action="users_actions.php" method="post">'. 314 '<p><input type="submit" value="'.__('Add new permissions').'" />'. 315 form::hidden(array('redir'),'user.php?id='.$user_id). 316 form::hidden(array('action'),'blogs'). 317 form::hidden(array('users[]'),$user_id). 318 $core->formNonce(). 319 '</p>'. 320 '</form>'; 321 322 $permissions = $core->getUserPermissions($user_id); 323 $perm_types = $core->auth->getPermissionsTypes(); 324 325 if (count($permissions) == 0) 334 echo '<div class="clear fieldset">'. 335 '<h3>'.__('Permissions').'</h3>'; 336 337 if (!$user_super) 326 338 { 327 echo '<p>'.__('No permissions.').'</p>'; 328 } 329 else 330 { 331 foreach ($permissions as $k => $v) 339 echo 340 '<form action="users_actions.php" method="post">'. 341 '<p><input type="submit" value="'.__('Add new permissions').'" />'. 342 form::hidden(array('redir'),'user.php?id='.$user_id). 343 form::hidden(array('action'),'blogs'). 344 form::hidden(array('users[]'),$user_id). 345 $core->formNonce(). 346 '</p>'. 347 '</form>'; 348 349 $permissions = $core->getUserPermissions($user_id); 350 $perm_types = $core->auth->getPermissionsTypes(); 351 352 if (count($permissions) == 0) 332 353 { 333 if (count($v['p']) > 0) 354 echo '<p>'.__('No permissions so far.').'</p>'; 355 } 356 else 357 { 358 foreach ($permissions as $k => $v) 334 359 { 335 echo 336 '<form action="users_actions.php" method="post">'. 337 '<h4><a href="blog.php?id='.html::escapeHTML($k).'">'. 338 html::escapeHTML($v['name']).'</a> ('.html::escapeHTML($k).')</h4>'; 339 340 echo '<ul>'; 341 foreach ($v['p'] as $p => $V) { 342 if (isset($perm_types[$p])) { 343 echo '<li>'.__($perm_types[$p]).'</li>'; 360 if (count($v['p']) > 0) 361 { 362 echo 363 '<form action="users_actions.php" method="post">'. 364 '<p class="blog-perm">'.__('Blog:').' <a href="blog.php?id='.html::escapeHTML($k).'">'. 365 html::escapeHTML($v['name']).'</a> ('.html::escapeHTML($k).')</p>'; 366 367 echo '<ul class="ul-perm">'; 368 foreach ($v['p'] as $p => $V) { 369 if (isset($perm_types[$p])) { 370 echo '<li>'.__($perm_types[$p]).'</li>'; 371 } 344 372 } 373 echo 374 '</ul>'. 375 '<p class="add-perm"><input type="submit" class="reset" value="'.__('Change permissions').'" />'. 376 form::hidden(array('redir'),'user.php?id='.$user_id). 377 form::hidden(array('action'),'perms'). 378 form::hidden(array('users[]'),$user_id). 379 form::hidden(array('blogs[]'),$k). 380 $core->formNonce(). 381 '</p>'. 382 '</form>'; 345 383 } 346 echo '</ul>'. 347 '<p><input type="submit" value="'.__('Change permissions').'" />'. 348 form::hidden(array('redir'),'user.php?id='.$user_id). 349 form::hidden(array('action'),'perms'). 350 form::hidden(array('users[]'),$user_id). 351 form::hidden(array('blogs[]'),$k). 352 $core->formNonce(). 353 '</p>'. 354 '</form>'; 355 } 356 } 357 } 358 384 } 385 } 386 387 } 388 else { 389 echo '<p>'.sprintf(__('User %s is super admin.'),$user_id).'</p>'; 390 } 359 391 echo '</div>'; 360 392 } -
admin/user.php
r1609 r1620 172 172 dcPage::open($page_title, 173 173 dcPage::jsConfirmClose('user-form'). 174 dcPage::jsLoad('js/jquery/jquery.pwstrength.js'). 175 '<script type="text/javascript">'."\n". 176 "//<![CDATA[\n". 177 "\$(function() {\n". 178 " \$('#new_pwd').pwstrength({texts: ['". 179 sprintf(__('Password strength: %s'),__('very weak'))."', '". 180 sprintf(__('Password strength: %s'),__('weak'))."', '". 181 sprintf(__('Password strength: %s'),__('mediocre'))."', '". 182 sprintf(__('Password strength: %s'),__('strong'))."', '". 183 sprintf(__('Password strength: %s'),__('very strong'))."']});\n". 184 "});\n". 185 "\n//]]>\n". 186 "</script>\n". 174 187 175 188 # --BEHAVIOR-- adminUserHeaders … … 211 224 212 225 echo 213 '<p><label for="new_pwd" '.($user_id != '' ? '' : 'class="required"').'>'. 214 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> '). 215 ($user_id != '' ? __('New password:') : __('Password:')).'</label> '. 216 form::password('new_pwd',20,255). 217 '</p>'. 226 '<form action="user.php" method="post" id="user-form">'. 227 '<fieldset><legend>'.__('User information').'</legend>'. 228 '<div class="two-cols">'. 229 '<div class="col">'. 230 '<p><label for="user_id" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Username:').' '. 231 form::field('user_id',20,255,html::escapeHTML($user_id)). 232 '</label></p>'. 233 '<p class="form-note">'.__('At least 2 characters using letters, numbers or symbols.').'</p>'. 234 235 '<div class="pw-table">'. 236 '<p class="pw-cell">'. 237 '<label for="new_pwd" '.($user_id != '' ? '' : 'class="required"').'>'. 238 ($user_id != '' ? '' : '<abbr title="'.__('Required field').'">*</abbr> '). 239 ($user_id != '' ? __('New password:') : __('Password:')).'</label>'. 240 form::password('new_pwd',20,255,'','','',false,' data-indicator="pwindicator" '). 241 '</p>'. 242 '<div id="pwindicator">'. 243 ' <div class="bar"></div>'. 244 ' <p class="label no-margin"></p>'. 245 '</div>'. 246 '</div>'. 218 247 '<p class="form-note">'.__('Password must contain at least 6 characters.').'</p>'. 219 248 -
admin/users_actions.php
r1555 r1620 131 131 /* DISPLAY 132 132 -------------------------------------------------------- */ 133 if (!empty($users) && empty($blogs) && $action == 'blogs') { 134 $breadcrumb = dcPage::breadcrumb( 135 array( 136 __('System') => '', 137 __('Users') => 'users.php', 138 '<span class="page-title">'.__('Permissions').'</span>' => '' 139 )); 140 } else { 141 $breadcrumb = dcPage::breadcrumb( 142 array( 143 __('System') => '', 144 __('Users') => 'users.php', 145 '<span class="page-title">'.__('Actions').'</span>' => '' 146 )); 147 } 148 133 149 dcPage::open( 134 150 __('Users'), 135 151 dcPage::jsLoad('js/_users_actions.js'). 136 152 # --BEHAVIOR-- adminUsersActionsHeaders 137 $core->callBehavior('adminUsersActionsHeaders') 153 $core->callBehavior('adminUsersActionsHeaders'), 154 $breadcrumb 138 155 ); 139 156 … … 162 179 } 163 180 181 echo '<p><a class="back" href="'.html::escapeURL($redir).'">'.__('Back to user profile').'</a></p>'; 182 164 183 # --BEHAVIOR-- adminUsersActionsContent 165 184 $core->callBehavior('adminUsersActionsContent',$core,$action,$hidden_fields); … … 177 196 } 178 197 179 echo 180 '<h2><a href="users.php">'.__('Users').'</a> › <span class="page-title">'.__('Permissions').'</span></h2>'. 198 echo 181 199 '<p>'.sprintf( 182 200 __('Choose one or more blogs to which you want to give permissions to users %s.'), … … 239 257 240 258 echo 241 '<h2><a href="users.php">'.__('Users').'</a> › <span class="page-title">'.__('Permissions').'</span></h2>'.242 259 '<p>'.sprintf( 243 260 __('You are about to change permissions on the following blogs for users %s.'), … … 248 265 foreach ($blogs as $b) 249 266 { 250 echo '<h3> <a href="blog.php?id='.html::escapeHTML($b).'">'.html::escapeHTML($b).'</a>'.267 echo '<h3>'.('Blog:').' <a href="blog.php?id='.html::escapeHTML($b).'">'.html::escapeHTML($b).'</a>'. 251 268 form::hidden(array('blogs[]'),$b).'</h3>'; 252 269 … … 268 285 269 286 echo 270 '< fieldset><legend>'.__('Validate permissions').'</legend>'.271 '< p><label for="your_pwd" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Your password:').272 form::password('your_pwd',20,255).'</label></p>'.273 '</fieldset>'.287 '<div class="fieldset">'. 288 '<h3>'.__('Validate permissions').'</h3>'. 289 '<p><label for="your_pwd">'.__('Your password:').'</label>'. 290 form::password('your_pwd',20,255).'</p>'. 274 291 '<p><input type="submit" accesskey="s" value="'.__('Save').'" />'. 275 292 $hidden_fields. 276 293 form::hidden(array('action'),'updateperm'). 277 294 $core->formNonce().'</p>'. 295 '</div>'. 278 296 '</form>'; 279 297 } 280 281 echo '<p><a class="back" href="'.html::escapeURL($redir).'">'.__('back').'</a></p>';282 298 283 299 dcPage::close(); -
inc/admin/prepend.php
r1592 r1620 261 261 'images/menu/users.png','images/menu/users-b.png', 262 262 null,null,null)); 263 $_fav['plugins'] = new ArrayObject(array('plugins','Plugins ','plugins.php',263 $_fav['plugins'] = new ArrayObject(array('plugins','Plugins management','plugins.php', 264 264 'images/menu/plugins.png','images/menu/plugins-b.png', 265 265 null,null,null)); … … 284 284 # Set menu titles 285 285 286 $_menu['System']->title = __('System ');286 $_menu['System']->title = __('System settings'); 287 287 $_menu['Blog']->title = __('Blog'); 288 288 $_menu['Plugins']->title = __('Plugins'); … … 328 328 preg_match('/langs.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 329 329 $core->auth->isSuperAdmin()); 330 $_menu['System']->prependItem(__('Plugins '),'plugins.php','images/menu/plugins.png',330 $_menu['System']->prependItem(__('Plugins management'),'plugins.php','images/menu/plugins.png', 331 331 preg_match('/plugins.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 332 332 $core->auth->isSuperAdmin()); -
inc/admin/prepend.php
r1604 r1620 322 322 $core->auth->check('usage,contentadmin',$core->blog->id),'menu-new-post'); 323 323 324 $_menu['System']->prependItem(__('Update s'),'update.php','images/menu/update.png',324 $_menu['System']->prependItem(__('Update'),'update.php','images/menu/update.png', 325 325 preg_match('/update.php(\?.*)?$/',$_SERVER['REQUEST_URI']), 326 326 $core->auth->isSuperAdmin() && is_readable(DC_DIGESTS)); -
inc/core/class.dc.blog.php
r1570 r1620 81 81 $this->desc = $b->blog_desc; 82 82 $this->url = $b->blog_url; 83 $this->host = preg_replace('|^([a-z]{3,}://)(.*?)/.*$|','$1$2',$this->url);83 $this->host = http::getHostFromURL($this->url); 84 84 $this->creadt = strtotime($b->blog_creadt); 85 85 $this->upddt = strtotime($b->blog_upddt); … … 91 91 $this->public_path = path::fullFromRoot($this->settings->system->public_path,DC_ROOT); 92 92 93 $this->post_status['-2'] = __(' pending');94 $this->post_status['-1'] = __(' scheduled');95 $this->post_status['0'] = __(' unpublished');96 $this->post_status['1'] = __(' published');97 98 $this->comment_status['-2'] = __(' junk');99 $this->comment_status['-1'] = __(' pending');100 $this->comment_status['0'] = __(' unpublished');101 $this->comment_status['1'] = __(' published');93 $this->post_status['-2'] = __('Pending'); 94 $this->post_status['-1'] = __('Scheduled'); 95 $this->post_status['0'] = __('Unpublished'); 96 $this->post_status['1'] = __('Published'); 97 98 $this->comment_status['-2'] = __('Junk'); 99 $this->comment_status['-1'] = __('Pending'); 100 $this->comment_status['0'] = __('Unpublished'); 101 $this->comment_status['1'] = __('Published'); 102 102 103 103 # --BEHAVIOR-- coreBlogConstruct … … 300 300 $counter = $this->getCategoriesCounter($c_params); 301 301 302 $without_empty = $this->core->auth->userID() == false; # For public display 302 if (isset($params['without_empty']) && ($params['without_empty'] == false)) { 303 $without_empty = false; 304 } else { 305 $without_empty = $this->core->auth->userID() == false; # Get all categories if in admin display 306 } 303 307 304 308 $start = isset($params['start']) ? (integer) $params['start'] : 0; … … 550 554 $this->triggerBlog(); 551 555 } 556 557 /** 558 Set category position 559 560 @param id <b>integer</b> Category ID 561 @param left <b>integer</b> Category ID before 562 @param right <b>integer</b> Category ID after 563 */ 564 public function updCategoryPosition($id,$left,$right) 565 { 566 $this->categories()->updatePosition($id,$left,$right); 567 $this->triggerBlog(); 568 } 552 569 553 570 /** -
inc/core/class.dc.blog.php
r1610 r1620 203 203 @param ids <b>mixed</b> Comment(s) ID(s) 204 204 @param del <b>boolean</b> If comment is delete, set this to true 205 */ 206 public function triggerComments($ids,$del=false) 207 { 208 $co_ids = dcUtils::cleanIds($ids); 209 210 # a) Retrieve posts affected by comments edition 205 @param affected_posts <b>mixed</b> Posts(s) ID(s) 206 */ 207 public function triggerComments($ids, $del=false, $affected_posts=null) 208 { 209 $comments_ids = dcUtils::cleanIds($ids); 210 211 # Get posts affected by comments edition 212 if (empty($affected_posts)) { 213 $strReq = 214 'SELECT post_id '. 215 'FROM '.$this->prefix.'comment '. 216 'WHERE comment_id'.$this->con->in($comments_ids). 217 'GROUP BY post_id'; 218 219 $rs = $this->con->select($strReq); 220 221 $affected_posts = array(); 222 while ($rs->fetch()) { 223 $affected_posts[] = (integer) $rs->post_id; 224 } 225 } 226 227 if (!is_array($affected_posts) || empty($affected_posts)) { 228 return; 229 } 230 231 # Count number of comments if exists for affected posts 211 232 $strReq = 212 'SELECT post_id, comment_trackback '. 213 'FROM '.$this->prefix.'comment '. 214 'WHERE comment_id'.$this->con->in($co_ids). 215 'GROUP BY post_id,comment_trackback'; 216 217 $rs = $this->con->select($strReq); 218 219 $a_ids = $a_tbs = array(); 220 while ($rs->fetch()) { 221 $a_ids[] = (integer) $rs->post_id; 222 $a_tbs[] = (integer) $rs->comment_trackback; 223 } 224 225 # b) Count comments of each posts previously retrieved 226 # Note that this does not return posts without comment 227 $strReq = 228 'SELECT post_id, COUNT(post_id) AS nb_comment,comment_trackback '. 233 'SELECT post_id, COUNT(post_id) AS nb_comment, comment_trackback '. 229 234 'FROM '.$this->prefix.'comment '. 230 235 'WHERE comment_status = 1 '. 231 (count($a_ids) > 0 ? 'AND post_id'.$this->con->in($a_ids) : ' '); 232 233 if ($del) { 234 $strReq .= 235 'AND comment_id NOT'.$this->con->in($co_ids); 236 } 237 238 $strReq .= 236 'AND post_id'.$this->con->in($affected_posts). 239 237 'GROUP BY post_id,comment_trackback'; 240 238 241 239 $rs = $this->con->select($strReq); 242 240 243 $ b_ids = $b_tbs = $b_nbs = array();241 $posts = array(); 244 242 while ($rs->fetch()) { 245 $b_ids[] = (integer) $rs->post_id; 246 $b_tbs[] = (integer) $rs->comment_trackback; 247 $b_nbs[] = (integer) $rs->nb_comment; 248 } 249 250 # c) Update comments numbers on posts 251 # This compare previous requests to update also posts without comment 243 if ($rs->comment_trackback) { 244 $posts[$rs->post_id]['trackback'] = $rs->nb_comment; 245 } else { 246 $posts[$rs->post_id]['comment'] = $rs->nb_comment; 247 } 248 } 249 250 # Update number of comments on affected posts 252 251 $cur = $this->con->openCursor($this->prefix.'post'); 253 254 foreach($a_ids as $a_key => $a_id) 255 { 256 $nb_comment = $nb_trackback = 0; 257 foreach($b_ids as $b_key => $b_id) 258 { 259 if ($a_id != $b_id || $a_tbs[$a_key] != $b_tbs[$b_key]) { 260 continue; 261 } 262 263 if ($b_tbs[$b_key]) { 264 $nb_trackback = $b_nbs[$b_key]; 265 } else { 266 $nb_comment = $b_nbs[$b_key]; 267 } 268 } 269 270 if ($a_tbs[$a_key]) { 271 $cur->nb_trackback = $nb_trackback; 252 foreach($affected_posts as $post_id) 253 { 254 $cur->clean(); 255 256 if (!array_key_exists($post_id,$posts)) { 257 $cur->nb_trackback = 0; 258 $cur->nb_comment = 0; 272 259 } else { 273 $cur->nb_comment = $nb_comment; 274 } 275 $cur->update('WHERE post_id = '.$a_id); 260 $cur->nb_trackback = empty($posts[$post_id]['trackback']) ? 0 : $posts[$post_id]['trackback']; 261 $cur->nb_comment = empty($posts[$post_id]['comment']) ? 0 : $posts[$post_id]['comment']; 262 } 263 264 $cur->update('WHERE post_id = '.$post_id); 276 265 } 277 266 } … … 509 498 $this->core->callBehavior('coreBeforeCategoryCreate',$this,$cur); 510 499 511 $this->categories()->addNode($cur,$parent); 500 $id = $this->categories()->addNode($cur,$parent); 501 # Update category's cursor 502 $rs = $this->getCategory($id); 503 if (!$rs->isEmpty()) { 504 $cur->cat_lft = $rs->cat_lft; 505 $cur->cat_rgt = $rs->cat_rgt; 506 } 512 507 513 508 # --BEHAVIOR-- coreAfterCategoryCreate … … 739 734 - no_content: Don't retrieve entry content (excerpt and content) 740 735 - post_type: Get only entries with given type (default "post", array for many types and '' for no type) 741 - post_id: (integer ) Get entry with given post_id736 - post_id: (integer or array) Get entry with given post_id 742 737 - post_url: Get entry with given post_url field 743 738 - user_id: (integer) Get entries belonging to given user ID … … 759 754 - limit: Limit parameter 760 755 - sql_only : return the sql request instead of results. Only ids are selected 756 - exclude_post_id : (integer or array) Exclude entries with given post_id 761 757 762 758 Please note that on every cat_id or cat_url, you can add ?not to exclude … … 852 848 } 853 849 $strReq .= 'AND P.post_id '.$this->con->in($params['post_id']); 850 } 851 852 if (isset($params['exclude_post_id']) && $params['exclude_post_id'] !== '') { 853 if (is_array($params['exclude_post_id'])) { 854 array_walk($params['exclude_post_id'],create_function('&$v,$k','if($v!==null){$v=(integer)$v;}')); 855 } else { 856 $params['exclude_post_id'] = array((integer) $params['exclude_post_id']); 857 } 858 $strReq .= 'AND P.post_id NOT '.$this->con->in($params['exclude_post_id']); 854 859 } 855 860 … … 2235 2240 $co_ids = dcUtils::cleanIds($ids); 2236 2241 2237 if (empty($ ids)) {2242 if (empty($co_ids)) { 2238 2243 throw new Exception(__('No such comment ID')); 2244 } 2245 2246 # Retrieve posts affected by comments edition 2247 $affected_posts = array(); 2248 $strReq = 2249 'SELECT post_id '. 2250 'FROM '.$this->prefix.'comment '. 2251 'WHERE comment_id'.$this->con->in($co_ids). 2252 'GROUP BY post_id'; 2253 2254 $rs = $this->con->select($strReq); 2255 2256 while ($rs->fetch()) { 2257 $affected_posts[] = (integer) $rs->post_id; 2239 2258 } 2240 2259 … … 2266 2285 2267 2286 $this->con->execute($strReq); 2268 $this->triggerComments($co_ids, true);2287 $this->triggerComments($co_ids, true, $affected_posts); 2269 2288 $this->triggerBlog(); 2270 2289 } … … 2321 2340 2322 2341 if ($cur->comment_site !== null && $cur->comment_site != '') { 2323 if (!preg_match('|^http(s?)://| ',$cur->comment_site)) {2342 if (!preg_match('|^http(s?)://|i',$cur->comment_site, $matches)) { 2324 2343 $cur->comment_site = 'http://'.$cur->comment_site; 2344 }else{ 2345 $cur->comment_site = strtolower($matches[0]).substr($cur->comment_site, strlen($matches[0])); 2325 2346 } 2326 2347 } -
locales/bn/main.po
r1592 r1620 215 215 216 216 #, fuzzy 217 msgid "Th at blog Id is already in use."217 msgid "This blog ID is already used." 218 218 msgstr "Dotclear ইতিমধ্যেই ইন্সটল করা আছে।" 219 219 … … 459 459 460 460 #, php-format 461 msgid "You are currently using \"%s\""461 msgid "You are currently using <strong>%s</strong>" 462 462 msgstr "আপনি বর্তমানে ব্যবহার করছেন \"%s\"" 463 463 … … 759 759 msgstr "মন্তব্যের লেখক:" 760 760 761 msgid "You have one spam comment s."761 msgid "You have one spam comment." 762 762 msgstr "আপনার একটি স্প্যাম মন্তব্য আছে।" 763 763 … … 2122 2122 msgstr "সব সিলেক্ট করুন" 2123 2123 2124 msgid " invert selection"2124 msgid "Invert selection" 2125 2125 msgstr "" 2126 2126 -
locales/bn/main.po
r1615 r1620 836 836 msgstr "পড়ে মনে করিয়ে দিও" 837 837 838 msgid " information about this version"838 msgid "<a href=\"%s\">Information about this version</a>." 839 839 msgstr "" 840 840 … … 2397 2397 msgstr "ব্লগ" 2398 2398 2399 msgid "Update s"2399 msgid "Update" 2400 2400 msgstr "" 2401 2401 -
locales/ca/main.po
r1592 r1620 219 219 220 220 #, fuzzy 221 msgid "Th at blog Id is already in use."221 msgid "This blog ID is already used." 222 222 msgstr "DotClear esta instal·lat." 223 223 … … 468 468 469 469 #, php-format 470 msgid "You are currently using \"%s\""470 msgid "You are currently using <strong>%s</strong>" 471 471 msgstr "" 472 472 … … 787 787 msgstr "Autor del comentari:" 788 788 789 msgid "You have one spam comment s."789 msgid "You have one spam comment." 790 790 msgstr "Te un comentari no desitjat." 791 791 … … 2200 2200 msgstr "Seleccionar tot" 2201 2201 2202 msgid " invert selection"2202 msgid "Invert selection" 2203 2203 msgstr "invertir la selecció" 2204 2204 -
locales/ca/main.po
r1615 r1620 867 867 msgstr "" 868 868 869 msgid " information about this version"869 msgid "<a href=\"%s\">Information about this version</a>." 870 870 msgstr "" 871 871 … … 2478 2478 msgstr "Blog" 2479 2479 2480 msgid "Update s"2480 msgid "Update" 2481 2481 msgstr "" 2482 2482 -
locales/cs/main.po
r1592 r1620 214 214 msgstr "Zakázat vyhledavacím enginům indexovat nebo archivovat obsah blogu." 215 215 216 msgid "Th at blog Id is already in use."216 msgid "This blog ID is already used." 217 217 msgstr "Blog ID je už použito." 218 218 … … 457 457 458 458 #, php-format 459 msgid "You are currently using \"%s\""459 msgid "You are currently using <strong>%s</strong>" 460 460 msgstr "Používáte \"%s\" vzhled" 461 461 … … 764 764 msgstr "Autor komentáře:" 765 765 766 msgid "You have one spam comment s."766 msgid "You have one spam comment." 767 767 msgstr "Máte jeden spam komentář." 768 768 … … 2126 2126 msgstr "vybrat vše" 2127 2127 2128 msgid " invert selection"2128 msgid "Invert selection" 2129 2129 msgstr "obrátit výběr" 2130 2130 -
locales/cs/main.po
r1615 r1620 844 844 msgstr "Připomenout později" 845 845 846 msgid " information about this version"846 msgid "<a href=\"%s\">Information about this version</a>." 847 847 msgstr "" 848 848 … … 2399 2399 msgstr "Blog" 2400 2400 2401 msgid "Update s"2401 msgid "Update" 2402 2402 msgstr "Aktualizace" 2403 2403 -
locales/da/main.po
r1592 r1620 215 215 216 216 #, fuzzy 217 msgid "Th at blog Id is already in use."217 msgid "This blog ID is already used." 218 218 msgstr "Dotclear er allerede installeret." 219 219 … … 459 459 460 460 #, php-format 461 msgid "You are currently using \"%s\""461 msgid "You are currently using <strong>%s</strong>" 462 462 msgstr "Du bruger lige nu \"%s\"" 463 463 … … 765 765 msgstr "Kommentar ejer:" 766 766 767 msgid "You have one spam comment s."767 msgid "You have one spam comment." 768 768 msgstr "Du har en spam kommentar." 769 769 … … 2134 2134 msgstr "" 2135 2135 2136 msgid " invert selection"2136 msgid "Invert selection" 2137 2137 msgstr "" 2138 2138 -
locales/da/main.po
r1615 r1620 845 845 msgstr "Påmind mig senere" 846 846 847 msgid " information about this version"847 msgid "<a href=\"%s\">Information about this version</a>." 848 848 msgstr "" 849 849 … … 2409 2409 msgstr "" 2410 2410 2411 msgid "Update s"2411 msgid "Update" 2412 2412 msgstr "" 2413 2413 -
locales/de/main.po
r1592 r1620 212 212 msgstr "Erlaube Suchmaschinen weder das Durchsuchen und Archivieren des Inhaltes noch des Archivs dieses Blogs." 213 213 214 msgid "Th at blog Id is already in use."214 msgid "This blog ID is already used." 215 215 msgstr "Diese Blog-ID wird schon verwendet." 216 216 … … 457 457 458 458 #, php-format 459 msgid "You are currently using \"%s\""459 msgid "You are currently using <strong>%s</strong>" 460 460 msgstr "Du verwendest gerade \"%s\"" 461 461 … … 763 763 msgstr "Autor des Kommentars" 764 764 765 msgid "You have one spam comment s."765 msgid "You have one spam comment." 766 766 msgstr "Du hast Spam in deinen Kommentaren." 767 767 … … 2126 2126 msgstr "alles markieren" 2127 2127 2128 msgid " invert selection"2128 msgid "Invert selection" 2129 2129 msgstr "Auswahl entfernen" 2130 2130 -
locales/de/main.po
r1615 r1620 841 841 msgstr "Erinnere mich später" 842 842 843 msgid " information about this version"843 msgid "<a href=\"%s\">Information about this version</a>." 844 844 msgstr "Informationen zu dieser Version" 845 845 … … 2400 2400 msgstr "Blog" 2401 2401 2402 msgid "Update s"2402 msgid "Update" 2403 2403 msgstr "Aktualisierungen" 2404 2404 -
locales/en/main.po
r1592 r1620 211 211 msgstr "" 212 212 213 msgid "Th at blog Id is already in use."213 msgid "This blog ID is already used." 214 214 msgstr "" 215 215 … … 453 453 454 454 #, php-format 455 msgid "You are currently using \"%s\""455 msgid "You are currently using <strong>%s</strong>" 456 456 msgstr "" 457 457 … … 753 753 msgstr "" 754 754 755 msgid "You have one spam comment s."755 msgid "You have one spam comment." 756 756 msgstr "" 757 757 … … 2074 2074 msgstr "" 2075 2075 2076 msgid "Select:" 2077 msgstr "" 2078 2076 2079 msgid "no selection" 2077 2080 msgstr "" … … 2080 2083 msgstr "" 2081 2084 2082 msgid " invert selection"2085 msgid "Invert selection" 2083 2086 msgstr "" 2084 2087 … … 2159 2162 2160 2163 msgid "You have unsaved changes. Switch post format will loose these changes. Proceed anyway?" 2161 msgstr ""2162 2163 msgid "Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?"2164 2164 msgstr "" 2165 2165 -
locales/en/main.po
r1615 r1620 829 829 msgstr "" 830 830 831 msgid "information about this version" 831 #, php-format 832 msgid "<a href=\"%s\">Information about this version</a>." 832 833 msgstr "" 833 834 … … 2358 2359 msgstr "" 2359 2360 2360 msgid "Update s"2361 msgid "Update" 2361 2362 msgstr "" 2362 2363 -
locales/eo/main.po
r1592 r1620 211 211 msgstr "" 212 212 213 msgid "Th at blog Id is already in use."213 msgid "This blog ID is already used." 214 214 msgstr "" 215 215 … … 453 453 454 454 #, php-format 455 msgid "You are currently using \"%s\""455 msgid "You are currently using <strong>%s</strong>" 456 456 msgstr "" 457 457 … … 750 750 msgstr "" 751 751 752 msgid "You have one spam comment s."752 msgid "You have one spam comment." 753 753 msgstr "" 754 754 … … 2073 2073 msgstr "" 2074 2074 2075 msgid " invert selection"2075 msgid "Invert selection" 2076 2076 msgstr "" 2077 2077 -
locales/eo/main.po
r1615 r1620 826 826 msgstr "" 827 827 828 msgid " information about this version"828 msgid "<a href=\"%s\">Information about this version</a>." 829 829 msgstr "" 830 830 … … 2346 2346 msgstr "" 2347 2347 2348 msgid "Update s"2348 msgid "Update" 2349 2349 msgstr "" 2350 2350 -
locales/es-ar/main.po
r1592 r1620 217 217 218 218 #, fuzzy 219 msgid "Th at blog Id is already in use."219 msgid "This blog ID is already used." 220 220 msgstr "Dotclear ya está instalado." 221 221 … … 460 460 461 461 #, php-format 462 msgid "You are currently using \"%s\""462 msgid "You are currently using <strong>%s</strong>" 463 463 msgstr "Actualmente usas \"%s\"" 464 464 … … 767 767 msgstr "Autor del comentario:" 768 768 769 msgid "You have one spam comment s."769 msgid "You have one spam comment." 770 770 msgstr "Tiene un comentario no deseado." 771 771 … … 2141 2141 msgstr "seleccionar todo" 2142 2142 2143 msgid " invert selection"2143 msgid "Invert selection" 2144 2144 msgstr "invertir la selección" 2145 2145 -
locales/es-ar/main.po
r1615 r1620 847 847 msgstr "Recordar mas tarde" 848 848 849 msgid " information about this version"849 msgid "<a href=\"%s\">Information about this version</a>." 850 850 msgstr "" 851 851 … … 2416 2416 msgstr "Blog" 2417 2417 2418 msgid "Update s"2418 msgid "Update" 2419 2419 msgstr "Actualizaciones" 2420 2420 -
locales/es/main.po
r1592 r1620 218 218 219 219 #, fuzzy 220 msgid "Th at blog Id is already in use."220 msgid "This blog ID is already used." 221 221 msgstr "Dotclear ya está instalado." 222 222 … … 462 462 463 463 #, php-format 464 msgid "You are currently using \"%s\""464 msgid "You are currently using <strong>%s</strong>" 465 465 msgstr "Actualmente está usando «%s»" 466 466 … … 769 769 msgstr "Autor del comentario:" 770 770 771 msgid "You have one spam comment s."771 msgid "You have one spam comment." 772 772 msgstr "Tiene un comentario no deseado." 773 773 … … 2139 2139 msgstr "Seleccionar todo" 2140 2140 2141 msgid " invert selection"2141 msgid "Invert selection" 2142 2142 msgstr "Invertir la selección" 2143 2143 -
locales/es/main.po
r1615 r1620 850 850 msgstr "Recordármelo más tarde" 851 851 852 msgid " information about this version"852 msgid "<a href=\"%s\">Information about this version</a>." 853 853 msgstr "" 854 854 … … 2421 2421 msgstr "Blog" 2422 2422 2423 msgid "Update s"2423 msgid "Update" 2424 2424 msgstr "Actualizaciones" 2425 2425 -
locales/eu/main.po
r1592 r1620 211 211 msgstr "" 212 212 213 msgid "Th at blog Id is already in use."213 msgid "This blog ID is already used." 214 214 msgstr "" 215 215 … … 453 453 454 454 #, php-format 455 msgid "You are currently using \"%s\""455 msgid "You are currently using <strong>%s</strong>" 456 456 msgstr "" 457 457 … … 750 750 msgstr "" 751 751 752 msgid "You have one spam comment s."752 msgid "You have one spam comment." 753 753 msgstr "" 754 754 … … 2073 2073 msgstr "" 2074 2074 2075 msgid " invert selection"2075 msgid "Invert selection" 2076 2076 msgstr "" 2077 2077 -
locales/eu/main.po
r1615 r1620 826 826 msgstr "" 827 827 828 msgid " information about this version"828 msgid "<a href=\"%s\">Information about this version</a>." 829 829 msgstr "" 830 830 … … 2346 2346 msgstr "" 2347 2347 2348 msgid "Update s"2348 msgid "Update" 2349 2349 msgstr "" 2350 2350 -
locales/fr/main.po
r1592 r1620 82 82 msgstr "Changer votre mot de passe" 83 83 84 msgid "Change my password" 85 msgstr "Changer mon mot de passe" 86 84 87 msgid "New password:" 85 88 msgstr "Nouveau mot de passe :" 86 89 87 90 msgid "Confirm password:" 88 msgstr "Confirme zle mot de passe :"91 msgstr "Confirmer le mot de passe :" 89 92 90 93 msgid "change" … … 95 98 96 99 msgid "This mode allows you to login without activating any of your plugins. This may be useful to solve compatibility problems" 97 msgstr " \"Ce mode vous permet de vous connecter sans activer de plugins. Il peut être utile pour résoudre un problème de compatibilité"100 msgstr "Ce mode vous permet de vous connecter sans activer de plugins. Il peut être utile pour résoudre un problème de compatibilité" 98 101 99 102 msgid "Disable or delete any plugin suspected to cause trouble, then log out and log back in normally." … … 227 230 msgstr "Je souhaite que mon blog ne soit ni indexé ni archivé par les moteurs de recherche et archiveurs." 228 231 229 msgid "Th at blog Id is already in use."232 msgid "This blog ID is already used." 230 233 msgstr "Cet identifiant est déjà utilisé." 231 234 … … 371 374 372 375 msgid "This defines image tag title when you insert it in a post from the media manager. It is retrieved from the picture's metadata." 373 msgstr "Ceci définit le titre de la balise d'une image insérée depuis l e gestionnaire de media. Les informations sont obtenues depuis les métadonnées de l'image."376 msgstr "Ceci définit le titre de la balise d'une image insérée depuis la médiathèque. Les informations sont obtenues depuis les métadonnées de l'image." 374 377 375 378 msgid "Use original media date if possible" … … 481 484 482 485 #, php-format 483 msgid "You are currently using \"%s\""484 msgstr "Vous utilisez actuellement \"%s\""486 msgid "You are currently using <strong>%s</strong>" 487 msgstr "Vous utilisez actuellement <strong>%s</strong>" 485 488 486 489 msgid "Use selected theme" … … 601 604 602 605 msgid "The category has been successfully removed." 603 msgstr "Catégorie supprimée avec succès." 606 msgid_plural "The categories have been successfully removed." 607 msgstr[0] "Catégorie supprimée avec succès." 608 msgstr[1] "Catégories supprimées avec succès." 604 609 605 610 msgid "Categories have been successfully reordered." … … 612 617 msgstr "Pas encore de catégorie." 613 618 614 msgid " Categories list"615 msgstr "Liste des catégories "619 msgid "List of blog\'s categories" 620 msgstr "Liste des catégories du blog" 616 621 617 622 #, php-format … … 647 652 msgstr "Choisissez une catégorie à supprimer :" 648 653 649 msgid "And choose the category which will receive its entries:" 650 msgstr "Et sélectionnez la catégorie qui recevra ses (éventuels) billets :" 654 msgid "Categories order" 655 msgstr "Ordonnancement des catégories" 656 657 msgid "Save categories order" 658 msgstr "Enregistrer l'ordre des catégories" 659 660 msgid "Choose the category which will receive its entries:" 661 msgstr "Sélectionnez la catégorie qui recevra ses éventuels billets :" 651 662 652 663 msgid "The entries cannot be moved to the category you choose to delete." … … 656 667 msgstr "Supprimer" 657 668 658 msgid "Reorder categories"659 msgstr "R éordonner les catégories"669 msgid "Reorder all categories on the top level" 670 msgstr "Replacer toutes les catégories au premier niveau" 660 671 661 672 msgid "This will relocate all categories on the top level" 662 673 msgstr "Ceci va déplacer toutes les catégories au premier niveau" 674 675 msgid "To rearrange categories order, move items by drag and drop, then click on “Save categories order” button." 676 msgstr "Pour modifier l\'ordre des catégories, déplacez les items par glisser-déposer puis cliquez sur le bouton \"Enregistrer l\'ordre des catégories\"." 663 677 664 678 msgid "Reorder" … … 793 807 msgstr "Auteur du commentaire :" 794 808 795 msgid "You have one spam comment s."809 msgid "You have one spam comment." 796 810 msgstr "Vous avez un commentaire indésirable." 797 811 798 812 msgid "Show it." 799 msgstr "L'afficher "813 msgstr "L'afficher." 800 814 801 815 #, php-format … … 860 874 861 875 msgid "Following plugins have been installed:" 862 msgstr "Les extensions suivantes ont été installées :"876 msgstr "Les plugins suivants ont été installés :" 863 877 864 878 msgid "Following plugins have not been installed:" 865 msgstr "Les extensions suivantes n'ont pas été installées :"879 msgstr "Les plugins suivants n'ont pas été installés :" 866 880 867 881 #, php-format … … 880 894 881 895 msgid "Some plugins are installed twice:" 882 msgstr "Ces extensions sont installées en double :"896 msgstr "Ces plugins sont installés en double :" 883 897 884 898 msgid "Quick entry" … … 1039 1053 #, fuzzy, php-format 1040 1054 msgid "Path <strong>%s</strong> is not writable." 1041 msgstr "Le répertoire <strong>%s</strong> n'est pas accessible en écriture."1055 msgstr "Le répertoire de cache <strong>%s</strong> n'est pas accessible en écriture." 1042 1056 1043 1057 #, fuzzy … … 1124 1138 #, php-format 1125 1139 msgid "You can change your user language in your <a href=\"%1$s\">preferences</a> or change your blog's main language in your <a href=\"%2$s\">blog settings</a>." 1126 msgstr "Vous pouvez changer votre langue d'utilisateur dans vos <a href=\"%1$s\">préférences</a> ou changer la langue principale de votre blog dans vos <a href=\"%2$s\"> paramètres du blog</a>."1140 msgstr "Vous pouvez changer votre langue d'utilisateur dans vos <a href=\"%1$s\">préférences</a> ou changer la langue principale de votre blog dans vos <a href=\"%2$s\">Paramètres du blog</a>." 1127 1141 1128 1142 msgid "Installed languages" … … 1192 1206 1193 1207 msgid "Media manager" 1194 msgstr " Gestionnaire de médias"1208 msgstr "Médiathèque" 1195 1209 1196 1210 msgid "Go to %s folder" … … 1264 1278 msgstr "Taille maximale %s" 1265 1279 1280 msgid "maximum size %s" 1281 msgstr "taille maximale %s" 1282 1266 1283 msgid "Private" 1267 1284 msgstr "Privé" … … 1445 1462 1446 1463 msgid "No content found on this plugin." 1447 msgstr "Aucun contenu pour ce tte extension."1464 msgstr "Aucun contenu pour ce plugin." 1448 1465 1449 1466 msgid "Plugin not found" 1450 msgstr " Extension introuvable"1467 msgstr "Plugin introuvable" 1451 1468 1452 1469 msgid "The plugin you reached does not exist or does not have an admin page." 1453 msgstr "L 'extension que vous essayez d'atteindre n'existe pas ou n'a pas de page d'administration."1470 msgstr "Le plugin que vous essayez d'atteindre n'existe pas ou n'a pas de page d'administration." 1454 1471 1455 1472 msgid "No such plugin." 1456 msgstr " Extension inexistante."1473 msgstr "Plugin inexistant." 1457 1474 1458 1475 msgid "You don't have permissions to delete this plugin." 1459 msgstr "Vous n'avez pas les permissions pour effacer cette extension."1476 msgstr "Vous n'avez pas les permissions pour supprimer ce plugin." 1460 1477 1461 1478 msgid "You don't have permissions to deactivate this plugin." 1462 msgstr "Vous n'avez pas les permissions pour désactiver ce tte extension."1479 msgstr "Vous n'avez pas les permissions pour désactiver ce plugin." 1463 1480 1464 1481 msgid "Plugins management" 1465 msgstr "Gestion des extensions"1482 msgstr "Gestion des plugins" 1466 1483 1467 1484 msgid "Plugin has been successfully deleted." 1468 msgstr " Extension suppriméeavec succès."1485 msgstr "Plugin supprimé avec succès." 1469 1486 1470 1487 msgid "Plugin has been successfully installed." 1471 msgstr " Extension installéeavec succès."1488 msgstr "Plugin installé avec succès." 1472 1489 1473 1490 msgid "Plugin has been successfully upgraded" 1474 msgstr " Extension miseà jour avec succès."1491 msgstr "Plugin mis à jour avec succès." 1475 1492 1476 1493 msgid "Plugins add new functionalities to Dotclear. Here you can activate or deactivate installed plugins." 1477 msgstr "Les extensions ajoutent de nouvelles fonctionnalités à Dotclear. Ici, vous pouvez activer ou désactiver les extensions installées."1494 msgstr "Les plugins ajoutent de nouvelles fonctionnalités à Dotclear. Ici, vous pouvez activer ou désactiver les plugins installés." 1478 1495 1479 1496 #, php-format 1480 1497 msgid "You can find additional plugins for your blog on %s." 1481 msgstr "Vous pouvez trouver d e nouvelles extensions pour votre blog sur %s."1498 msgstr "Vous pouvez trouver d'autres plugins pour votre blog sur %s." 1482 1499 1483 1500 msgid "You can find additional plugins for your blog on %s or using the %s." 1484 msgstr "Vous pouvez trouver d e nouvelles extensions pour votre blog sur %s ou en utilisant l'%s."1501 msgstr "Vous pouvez trouver d'autres plugins pour votre blog sur %s ou en utilisant l'%s." 1485 1502 1486 1503 msgid "To install or upgrade a plugin you generally just need to upload it in \"Install or upgrade a plugin\" section." 1487 msgstr " Tout ce que vous avez à faire pour installer ou mettre à jour une extension est généralement de la déposer dans la section \"Installer ou mettre à jour une extension\"."1504 msgstr "Pour installer ou mettre à jour un plugin il suffit de le déposer grâce au formulaire de la section \"Installer ou mettre à jour un plugin\"." 1488 1505 1489 1506 msgid "To install or upgrade a plugin you just need to extract it in your plugins directory." 1490 msgstr " Tout ce que vous avez à faire pour installer une extension est de l'extraire dans votre répertoire d'extensions."1507 msgstr "Pour installer un plugin il suffit de l'extraire dans votre répertoire de plugins." 1491 1508 1492 1509 msgid "Plugins" 1493 msgstr " Extensions"1510 msgstr "Plugins" 1494 1511 1495 1512 msgid "Activated plugins" 1496 msgstr " Extensions activées"1513 msgstr "Plugins activés" 1497 1514 1498 1515 msgid "Plugin" 1499 msgstr " Extension"1516 msgstr "Plugin" 1500 1517 1501 1518 msgid "Version" … … 1509 1526 1510 1527 msgid "Deactivated plugins" 1511 msgstr " Extensions désactivées"1528 msgstr "Plugins désactivés" 1512 1529 1513 1530 msgid "Activate" … … 1515 1532 1516 1533 msgid "Install or upgrade a plugin" 1517 msgstr "Installer ou mettre à jour un e extension"1534 msgstr "Installer ou mettre à jour un plugin" 1518 1535 1519 1536 msgid "You can install plugins by uploading or downloading zip files." 1520 msgstr "Vous pouvez installer des extensions en déposant ou téléchargeant des fichiers zip."1537 msgstr "Vous pouvez installer des plugins en déposant ou téléchargeant des fichiers zip." 1521 1538 1522 1539 msgid "Plugin zip file:" 1523 msgstr "Fichier zip de l'extension:"1540 msgstr "Fichier zip de du plugin :" 1524 1541 1525 1542 msgid "Upload plugin" 1526 msgstr "Déposer l 'extension"1543 msgstr "Déposer le plugin" 1527 1544 1528 1545 msgid "Plugin zip file URL:" 1529 msgstr "URL du fichier zip d e l'extension:"1546 msgstr "URL du fichier zip du plugin :" 1530 1547 1531 1548 msgid "Download plugin" 1532 msgstr "Télécharger l 'extension"1549 msgstr "Télécharger le plugin" 1533 1550 1534 1551 msgid "To enable this function, please give write access to your plugins directory." 1535 msgstr "Pour activer cette fonction, donnez un accès en écriture à votre répertoire d 'extensions."1552 msgstr "Pour activer cette fonction, donnez un accès en écriture à votre répertoire de plugins." 1536 1553 1537 1554 msgid "Plugin from official distribution" 1538 msgstr " Extension de la distribution officielle"1555 msgstr "Plugin de la distribution officielle" 1539 1556 1540 1557 msgid "Add a link" … … 1569 1586 1570 1587 msgid "Search" 1571 msgstr "Recherche "1588 msgstr "Rechercher" 1572 1589 1573 1590 msgid "cancel" … … 1629 1646 1630 1647 msgid "Text formating:" 1631 msgstr " Format du texte :"1648 msgstr "Syntaxe de saisie :" 1632 1649 1633 1650 msgid "Convert to XHTML" … … 1662 1679 1663 1680 msgid "Ping blogs" 1664 msgstr " Fairedes rétroliens"1681 msgstr "Envoyer des rétroliens" 1665 1682 1666 1683 msgid "Trackbacks" … … 1790 1807 msgstr "Défaut" 1791 1808 1792 msgid "If you want to change your email or password you must provide your current password."1793 msgstr "Si vous voulez changer votre adresse email ou votre mot de passe, vous devez indiquer votre mot de passe."1809 msgid "If you have changed your email or password you must provide your current password to save these modifications." 1810 msgstr "Si vous avez modifié votre adresse email ou votre mot de passe, vous devez indiquer votre mot de passe actuel pour enregistrer ces modifications." 1794 1811 1795 1812 msgid "No favorite selected" … … 1823 1840 msgstr "Langue de l'utilisateur :" 1824 1841 1842 msgid "Language for my interface:" 1843 msgstr "Langue de mon interface :" 1844 1825 1845 msgid "User timezone:" 1826 1846 msgstr "Fuseau horaire de l'utilisateur :" 1827 1847 1848 msgid "My timezone:" 1849 msgstr "Mon fuseau horaire :" 1850 1828 1851 msgid "If you have changed this user email or password you must provide your current password to save these modifications." 1829 msgstr "Si vous voulez changer votre adresse email ou votre mot de passe, vous devez indiquer votre mot de passe ."1852 msgstr "Si vous voulez changer votre adresse email ou votre mot de passe, vous devez indiquer votre mot de passe actuel pour enregistrer ces modifications." 1830 1853 1831 1854 msgid "My options" … … 1845 1868 1846 1869 msgid "Activate enhanced uploader in media manager" 1847 msgstr "Activer l'interface avancée d u gestionnaire de médias"1870 msgstr "Activer l'interface avancée de la médiathèque" 1848 1871 1849 1872 #, fuzzy … … 1855 1878 1856 1879 msgid "Do not use standard favicon" 1857 msgstr "Ne pas utiliser le favicon standard "1880 msgstr "Ne pas utiliser le favicon standard de Dotclear" 1858 1881 1859 1882 msgid "This will be applied for all users" 1860 msgstr "Ce choix sera a ctifpour tous les utilisateurs"1883 msgstr "Ce choix sera appliqué pour tous les utilisateurs" 1861 1884 1862 1885 msgid "Accessibility options" … … 1864 1887 1865 1888 msgid "Disable javascript powered drag and drop for ordering items" 1866 msgstr "Désactiver le drag and drop javascriptpour ordonnancer les éléments"1889 msgstr "Désactiver le glisser-déposer pour ordonnancer les éléments" 1867 1890 1868 1891 msgid "Numeric fields will allow to type the elements' ordering number." … … 1894 1917 msgstr "Retirer les favoris sélectionnés" 1895 1918 1919 msgid "Your current password:" 1920 msgstr "Votre mot de passe actuel :" 1921 1922 msgid "Update my profile" 1923 msgstr "Mettre à jour mon profil" 1924 1896 1925 msgid "Are you sure you want to remove selected favorites?" 1897 1926 msgstr "Êtes-vous sûr de vouloir retirer les favoris sélectionnés ?" … … 1924 1953 msgstr "Requête :" 1925 1954 1926 msgid "Search entries"1927 msgstr "Rechercher d es billets"1928 1929 msgid "Search comments"1930 msgstr "Rechercher d es commentaires"1955 msgid "Search in entries" 1956 msgstr "Rechercher dans les billets" 1957 1958 msgid "Search in comments" 1959 msgstr "Rechercher dans les commentaires" 1931 1960 1932 1961 msgid "schedule" … … 2068 2097 2069 2098 msgid "Mandatory for password recovering procedure." 2070 msgstr " Obligatoire pour la procédure de récupération de mot de passe."2099 msgstr "Indispensable pour la procédure de récupération de mot de passe." 2071 2100 2072 2101 msgid "Password change required to connect" 2073 msgstr "Changement de mot de passe requis pour laconnexion"2102 msgstr "Changement de mot de passe requis à la prochaine connexion" 2074 2103 2075 2104 msgid "Save and create another" … … 2155 2184 msgstr "Aller au menu" 2156 2185 2186 msgid "Go to search" 2187 msgstr "Aller à la recherche" 2188 2157 2189 msgid "Go to site" 2158 2190 msgstr "Aller sur le site" … … 2178 2210 msgstr "Aide" 2179 2211 2212 msgid "Help about this page" 2213 msgstr "Aide pour cette page" 2214 2180 2215 msgid "uncover" 2181 2216 msgstr "dévoiler" … … 2187 2222 msgstr "aide" 2188 2223 2224 msgid "Select:" 2225 msgstr "Sélectionner :" 2226 2189 2227 msgid "no selection" 2190 msgstr "aucun e sélection"2228 msgstr "aucun" 2191 2229 2192 2230 msgid "select all" 2193 msgstr "tou t sélectionner"2194 2195 msgid " invert selection"2196 msgstr " inverser la sélection"2231 msgstr "tous" 2232 2233 msgid "Invert selection" 2234 msgstr "Inverser la sélection" 2197 2235 2198 2236 msgid "view entry" … … 2224 2262 msgstr "Êtes-vous certain de vouloir supprimer la catégorie \"%s\" ?" 2225 2263 2264 #, php-format 2265 msgid "Are you sure you want to delete selected categories (%s)?" 2266 msgstr "Êtes-vous certain de vouloir supprimer les categories sélectionnées (%s) ?" 2267 2226 2268 msgid "Are you sure you want to reorder all categories?" 2227 2269 msgstr "Êtes-vous certain de vouloir réinitialiser l'ordre des catégories ?" … … 2244 2286 #, php-format 2245 2287 msgid "Are you sure you want to delete \"%s\" plugin?" 2246 msgstr "Êtes-vous certain de vouloir supprimer l 'extension \"%s\" ?"2288 msgstr "Êtes-vous certain de vouloir supprimer le plugin \"%s\" ?" 2247 2289 2248 2290 msgid "Use this theme" … … 2263 2305 2264 2306 msgid "XHTML markup validator" 2265 msgstr "V alidationXHTML"2307 msgstr "Vérifier la validité XHTML" 2266 2308 2267 2309 msgid "XHTML content is valid." … … 2428 2470 msgstr "Erreur de file d'attente :" 2429 2471 2430 msgid "« prev."2431 msgstr "« préc."2432 2433 msgid "next »"2434 msgstr "suiv. »"2472 msgid "« prev." 2473 msgstr "« préc." 2474 2475 msgid "next »" 2476 msgstr "suiv. »" 2435 2477 2436 2478 msgid "No entry" … … 2691 2733 2692 2734 msgid "Cannot deactivate plugin." 2693 msgstr "L 'extension ne peut pas être désactivée."2735 msgstr "Le plugin ne peut pas être désactivé." 2694 2736 2695 2737 msgid "Cannot activate plugin." 2696 msgstr "L 'extension ne peut pas être activée."2738 msgstr "Le plugin ne peut pas être activé." 2697 2739 2698 2740 #, php-format … … 2948 2990 msgstr "Date de publication invalide" 2949 2991 2992 msgid "System settings" 2993 msgstr "Réglages système" 2994 2995 msgid "Additional plugins" 2996 msgstr "Modules complémentaires" 2997 2998 msgid "Personal notes:" 2999 msgstr "Notes personnelles :" 3000 3001 msgid "New user" 3002 msgstr "Nouvel utilisateur" 3003 3004 msgid "Published" 3005 msgstr "Publié" 3006 3007 msgid "Unpublished" 3008 msgstr "Non publié" 3009 3010 msgid "Pending" 3011 msgstr "En attente" 3012 3013 msgid "Junk" 3014 msgstr "Indésirable" 3015 3016 msgid "Scheduled" 3017 msgstr "Programmé" 3018 3019 msgid "Protected" 3020 msgstr "Protégé" 3021 3022 msgid "Publish" 3023 msgstr "Publier" 3024 3025 msgid "Unpublish" 3026 msgstr "Mettre hors ligne" 3027 3028 msgid "Mark as pending" 3029 msgstr "Mettre en attente" 3030 3031 msgid "Mark as junk" 3032 msgstr "Mettre en indésirable" 3033 3034 msgid "Next entry" 3035 msgstr "Billet suivant" 3036 3037 msgid "Previous entry" 3038 msgstr "Billet précédent" 3039 3040 msgid "Add an introduction to the post." 3041 msgstr "Ajoute une introduction au billet." 3042 3043 msgid "Add unpublished notes." 3044 msgstr "Ajoute des notes non publiées." 3045 3046 msgid "Edit basename:" 3047 msgstr "Modifier l'URL spécifique :" 3048 3049 msgid "Protect with password" 3050 msgstr "Protéger par un mot de passe" 3051 3052 msgid "Information collected" 3053 msgstr "Informations recueillies" 3054 3055 msgid "Comment submitted" 3056 msgstr "Commentaire déposé" 3057 3058 msgid "Entry status" 3059 msgstr "État du billet" 3060 3061 msgid "Publication date and hour" 3062 msgstr "Date et heure de publication" 3063 3064 msgid "Text formating" 3065 msgstr "Syntaxe de saisie" 3066 3067 msgid "Entry lang" 3068 msgstr "Langue du billet" 3069 3070 msgid "Password" 3071 msgstr "Mot de passe" 3072 3073 msgid "Edit basename" 3074 msgstr "URL spécifique" 3075 3076 msgid "Ordering" 3077 msgstr "Classement" 3078 3079 msgid "Filter posts list" 3080 msgstr "Filtrer la liste des billets" 3081 3082 msgid "entries per page" 3083 msgstr "billets par page" 3084 3085 msgid "Show" 3086 msgstr "Afficher" 3087 3088 msgid "Filter blogs list" 3089 msgstr "Filtrer la liste des blogs" 3090 3091 msgid "blogs per page" 3092 msgstr "blogs par page" 3093 3094 msgid "Filter comments and trackbacks list" 3095 msgstr "Filtrer la liste des commentaires et rétroliens" 3096 3097 msgid "comments per page" 3098 msgstr "commentaires par page" 3099 3100 msgid "Filter users list" 3101 msgstr "Filtrer la liste des utilisateurs" 3102 3103 msgid "users per page" 3104 msgstr "utilisateurs par page" 3105 3106 msgid "Available themes in your installation" 3107 msgstr "Thèmes disponibles sur votre installation" 3108 3109 msgid "You can also install themes by uploading or downloading zip files." 3110 msgstr "Vous pouvez aussi installer des thèmes en déposant ou en téléchargeant des fichiers zip." 3111 3112 msgid "Add themes to your installation" 3113 msgstr "Ajouter des thèmes sur votre installation" 3114 3115 msgid "Select this comment" 3116 msgstr "Sélectionner ce commentaire" 3117 3118 msgid "Next page" 3119 msgstr "Page suivante" 3120 3121 msgid "Previous page" 3122 msgstr "Page précédente" 3123 3124 msgid "Add an introduction to the page." 3125 msgstr "Ajoute une introduction à la page." 3126 2950 3127 msgid "(No cat)" 2951 3128 msgstr "(aucune)" … … 2969 3146 msgstr "très fort" 2970 3147 3148 msgid "Confirm new password:" 3149 msgstr "Confirmer le nouveau mot de passe :" 3150 3151 msgid "Not selected" 3152 msgstr "Non sélectionné" 3153 3154 msgid "Back to comments list" 3155 msgstr "Retour à la liste des commentaires" 3156 3157 msgid "The current blog cannot be deleted." 3158 msgstr "Le blog courant ne peut être détruit." 3159 3160 msgid "Only superadmin can delete a blog." 3161 msgstr "Seul un superadministrateur peut supprimer un blog." 3162 3163 msgid "Invalid publication date" 3164 msgstr "Date de publication invalide." 3165 3166 msgid "Image alignment:" 3167 msgstr "Alignement de l'image :" 3168 3169 msgid "Finish the update" 3170 msgstr "Finir la mise à jour" 3171 3172 msgid "Information about this version" 3173 msgstr "Informations sur cette version" 3174 3175 msgid "Updates and modifications" 3176 msgstr "Mises à jour et modifications" 3177 3178 msgid "Back to user profile" 3179 msgstr "Retour au profil utilisateur" 3180 3181 msgid "Back to Blog appearance" 3182 msgstr "Retour à Apparence du blog" 3183 3184 msgid "Edit" 3185 msgstr "Modifier" 3186 3187 msgid "Display options" 3188 msgstr "Options d\'affichage" 3189 3190 msgid "Apply filters and display options" 3191 msgstr "Appliquer les filtres et options d\'affichage" 3192 3193 msgid "Back to entries list" 3194 msgstr "Retour à la liste des billets" 3195 3196 msgid "New author (author ID):" 3197 msgstr "Nouvel auteur (identifiant utilisateur) :" 3198 3199 msgid "Hidden" 3200 msgstr "Masqué" 3201 3202 msgid "Create a new category for the post(s)" 3203 msgstr "Créer une nouvelle catégorie pour ce(s) billet(s)" 3204 2971 3205 msgid "This category will be created when you will save your post." 2972 3206 msgstr "Cette catégorie sera créée lorsque vous enregistrerez votre billet." 3207 3208 msgid "Category which will receive entries of deleted categories:" 3209 msgstr "Catégorie d'accueil pour les billets des catégories supprimées :" 3210 3211 msgid "Delete selected categories" 3212 msgstr "Supprimer les catégories sélectionnées" 3213 3214 msgid "To rearrange categories order, change position number and click on “Save categories order”." 3215 msgstr "Pour changer l'ordre des catégories, modifier leur numéro de position et cliquez sur “Enregistrer l'ordre des catégories”." 3216 3217 msgid "Reorder all categories on the top level and delete selected categories" 3218 msgstr "Replacer toutes les catégories au premier niveau et supprimer les catégories sélectionnées" 3219 3220 #test tableau commentaires 3221 3222 msgid "trackback from" 3223 msgstr "rétrolien de" 3224 3225 msgid "comment from" 3226 msgstr "commentaire de" 3227 3228 msgid "Type and author" 3229 msgstr "Type et auteur" 3230 3231 msgid "Edit" 3232 msgstr "Modifier" 3233 3234 msgid "Select" 3235 msgstr "Sélectionner" 3236 3237 msgid "Click here to unlock the field" 3238 msgstr "Cliquez ici pour déverrouiller ce champ" 3239 3240 msgid "User profile" 3241 msgstr "Profil utilisateur" 3242 3243 msgid "User ID:" 3244 msgstr "Identifiant (login) :" 3245 3246 msgid "Interface" 3247 msgstr "Interface" 3248 3249 msgid "Edition" 3250 msgstr "Édition" 3251 3252 msgid "Other options" 3253 msgstr "Autres options" 3254 3255 msgid "No permissions so far." 3256 msgstr "Aucune permission pour le moment." 3257 3258 msgid "Accessibility" 3259 msgstr "Accessibilité" 3260 3261 msgid "Dashboard and menu" 3262 msgstr "Tableau de bord et menu" 3263 3264 msgid "Dashboard modules" 3265 msgstr "Modules du tableau de bord" 3266 3267 msgid "If checked, numeric fields will allow to type the elements' ordering number." 3268 msgstr "Si cette option est cochée, des champs numérique permettront l'ordonnancement des éléments." 3269 3270 msgid "Save my options" 3271 msgstr "Enregistrer mes options" -
locales/fr/main.po
r1615 r1620 889 889 msgstr "Me le rappeler plus tard" 890 890 891 msgid "information about this version" 892 msgstr "Information à propos de cette version" 891 #, php-format 892 msgid "<a href=\"%s\">Information about this version</a>." 893 msgstr "<a href=\"%s\">Information à propos de cette version</a>." 893 894 894 895 msgid "Some plugins are installed twice:" … … 2516 2517 msgstr "Blog" 2517 2518 2518 msgid "Update s"2519 msgstr "Mise sà jour"2519 msgid "Update" 2520 msgstr "Mise à jour" 2520 2521 2521 2522 msgid "Languages" -
locales/hu/main.po
r1592 r1620 219 219 220 220 #, fuzzy 221 msgid "Th at blog Id is already in use."221 msgid "This blog ID is already used." 222 222 msgstr "A DotClear már telepítve van." 223 223 … … 465 465 466 466 #, php-format 467 msgid "You are currently using \"%s\""467 msgid "You are currently using <strong>%s</strong>" 468 468 msgstr "A \"%s\"-t használod" 469 469 … … 787 787 msgstr "Megjegyzés szerzője:" 788 788 789 msgid "You have one spam comment s."789 msgid "You have one spam comment." 790 790 msgstr "Van egy spam megjegyzésed." 791 791 … … 2181 2181 msgstr "mindet" 2182 2182 2183 msgid " invert selection"2183 msgid "Invert selection" 2184 2184 msgstr "ellenkezőket" 2185 2185 -
locales/hu/main.po
r1615 r1620 867 867 msgstr "Értesíts később" 868 868 869 msgid " information about this version"869 msgid "<a href=\"%s\">Information about this version</a>." 870 870 msgstr "" 871 871 … … 2457 2457 msgstr "Blog" 2458 2458 2459 msgid "Update s"2459 msgid "Update" 2460 2460 msgstr "Frissítések" 2461 2461 -
locales/it/main.po
r1592 r1620 212 212 msgstr "Impedisci ai motori di ricerca e ai sistemi di archiviazione di indicizzare o salvare il contenuto del blog." 213 213 214 msgid "Th at blog Id is already in use."214 msgid "This blog ID is already used." 215 215 msgstr "L'ID del blog è già in uso." 216 216 … … 456 456 457 457 #, php-format 458 msgid "You are currently using \"%s\""458 msgid "You are currently using <strong>%s</strong>" 459 459 msgstr "Attualmente è in uso \"%s\"" 460 460 … … 763 763 msgstr "Autore del commento:" 764 764 765 msgid "You have one spam comment s."765 msgid "You have one spam comment." 766 766 msgstr "È presente un commento di spam." 767 767 … … 2125 2125 msgstr "seleziona tutto" 2126 2126 2127 msgid " invert selection"2127 msgid "Invert selection" 2128 2128 msgstr "inverti selezione" 2129 2129 -
locales/it/main.po
r1615 r1620 843 843 msgstr "Ricorda in seguito" 844 844 845 msgid " information about this version"845 msgid "<a href=\"%s\">Information about this version</a>." 846 846 msgstr "" 847 847 … … 2398 2398 msgstr "Blog" 2399 2399 2400 msgid "Update s"2400 msgid "Update" 2401 2401 msgstr "Aggiornamenti" 2402 2402 -
locales/ja/main.po
r1592 r1620 222 222 223 223 #, fuzzy 224 msgid "Th at blog Id is already in use."224 msgid "This blog ID is already used." 225 225 msgstr "Dotclear はすでにインストールされています。" 226 226 … … 465 465 466 466 #, php-format 467 msgid "You are currently using \"%s\""467 msgid "You are currently using <strong>%s</strong>" 468 468 msgstr "現在使用中のテーマ: %s" 469 469 … … 772 772 msgstr "コメントの投稿者:" 773 773 774 msgid "You have one spam comment s."774 msgid "You have one spam comment." 775 775 msgstr "1 のスパムコメントがあります。" 776 776 … … 2154 2154 msgstr "すべてを選択" 2155 2155 2156 msgid " invert selection"2156 msgid "Invert selection" 2157 2157 msgstr "選択を反転" 2158 2158 -
locales/ja/main.po
r1615 r1620 852 852 msgstr "後で再度知らせる" 853 853 854 msgid " information about this version"854 msgid "<a href=\"%s\">Information about this version</a>." 855 855 msgstr "" 856 856 … … 2430 2430 msgstr "ブログ" 2431 2431 2432 msgid "Update s"2432 msgid "Update" 2433 2433 msgstr "アップデート" 2434 2434 -
locales/ko/main.po
r1592 r1620 220 220 221 221 #, fuzzy 222 msgid "Th at blog Id is already in use."222 msgid "This blog ID is already used." 223 223 msgstr "Dotclear가 이미 설치되어 있습니다." 224 224 … … 464 464 465 465 #, php-format 466 msgid "You are currently using \"%s\""466 msgid "You are currently using <strong>%s</strong>" 467 467 msgstr "현재 사용 중인 테마 : \"%s\"" 468 468 … … 771 771 msgstr "댓글 글쓴이 :" 772 772 773 msgid "You have one spam comment s."773 msgid "You have one spam comment." 774 774 msgstr "스팸댓글이 하나 있습니다." 775 775 … … 2154 2154 msgstr "모두 선택하기" 2155 2155 2156 msgid " invert selection"2156 msgid "Invert selection" 2157 2157 msgstr "선택사항 뒤집기" 2158 2158 -
locales/ko/main.po
r1615 r1620 851 851 msgstr "나중에 다시 알려줌" 852 852 853 msgid " information about this version"853 msgid "<a href=\"%s\">Information about this version</a>." 854 854 msgstr "" 855 855 … … 2431 2431 msgstr "블로그" 2432 2432 2433 msgid "Update s"2433 msgid "Update" 2434 2434 msgstr "DotClear 갱신" 2435 2435 -
locales/lt/main.po
r1592 r1620 193 193 msgstr "Nenoriu, kad paieškos sistemos ir archyvatoriai indeksuotų ir archyvuotų mano blogo turinio." 194 194 195 msgid "Th at blog Id is already in use."195 msgid "This blog ID is already used." 196 196 msgstr "Šito blogo ID jau yra naudojamas." 197 197 … … 432 432 433 433 #, php-format 434 msgid "You are currently using \"%s\""434 msgid "You are currently using <strong>%s</strong>" 435 435 msgstr "Šiuo metu jūs naudojate \"%s\"" 436 436 … … 742 742 msgstr "Komentaro autorius:" 743 743 744 msgid "You have one spam comment s."744 msgid "You have one spam comment." 745 745 msgstr "Turite vieną spamo komentarą." 746 746 … … 1935 1935 msgstr "pasirinkti viską" 1936 1936 1937 msgid " invert selection"1937 msgid "Invert selection" 1938 1938 msgstr "atvirkščias pasirinkimas" 1939 1939 -
locales/lt/main.po
r1615 r1620 2205 2205 msgstr "Blogas" 2206 2206 2207 msgid "Update s"2207 msgid "Update" 2208 2208 msgstr "Atnaujinimai" 2209 2209 -
locales/nl/main.po
r1592 r1620 211 211 msgstr "Zoekmachines mogen mijn blog niet indexeren en archiveren." 212 212 213 msgid "Th at blog Id is already in use."213 msgid "This blog ID is already used." 214 214 msgstr "" 215 215 … … 454 454 455 455 #, php-format 456 msgid "You are currently using \"%s\""456 msgid "You are currently using <strong>%s</strong>" 457 457 msgstr "Je gebruikt nu \"%s\"" 458 458 … … 753 753 msgstr "" 754 754 755 msgid "You have one spam comment s."755 msgid "You have one spam comment." 756 756 msgstr "" 757 757 … … 2087 2087 msgstr "" 2088 2088 2089 msgid " invert selection"2089 msgid "Invert selection" 2090 2090 msgstr "" 2091 2091 -
locales/nl/main.po
r1615 r1620 829 829 msgstr "" 830 830 831 msgid " information about this version"831 msgid "<a href=\"%s\">Information about this version</a>." 832 832 msgstr "" 833 833 … … 2361 2361 msgstr "" 2362 2362 2363 msgid "Update s"2363 msgid "Update" 2364 2364 msgstr "" 2365 2365 -
locales/oc/main.po
r1592 r1620 212 212 msgstr "" 213 213 214 msgid "Th at blog Id is already in use."214 msgid "This blog ID is already used." 215 215 msgstr "" 216 216 … … 455 455 456 456 #, php-format 457 msgid "You are currently using \"%s\""457 msgid "You are currently using <strong>%s</strong>" 458 458 msgstr "" 459 459 … … 757 757 msgstr "" 758 758 759 msgid "You have one spam comment s."759 msgid "You have one spam comment." 760 760 msgstr "" 761 761 … … 2106 2106 msgstr "" 2107 2107 2108 msgid " invert selection"2108 msgid "Invert selection" 2109 2109 msgstr "" 2110 2110 -
locales/oc/main.po
r1615 r1620 835 835 msgstr "" 836 836 837 msgid " information about this version"837 msgid "<a href=\"%s\">Information about this version</a>." 838 838 msgstr "" 839 839 … … 2379 2379 msgstr "Blòg" 2380 2380 2381 msgid "Update s"2381 msgid "Update" 2382 2382 msgstr "" 2383 2383 -
locales/pl/main.po
r1592 r1620 212 212 msgstr "Chcę, aby wyszukiwarki i archiwizery nie indeksowały i nie archiwizowały zawartości mojego bloga." 213 213 214 msgid "Th at blog Id is already in use."214 msgid "This blog ID is already used." 215 215 msgstr "Ten identyfikator bloga jest już używany." 216 216 … … 455 455 456 456 #, php-format 457 msgid "You are currently using \"%s\""457 msgid "You are currently using <strong>%s</strong>" 458 458 msgstr "Aktualnie używasz \"%s\"" 459 459 … … 760 760 msgstr "Autor komentarza:" 761 761 762 msgid "You have one spam comment s."762 msgid "You have one spam comment." 763 763 msgstr "Masz jeden komentarz oznaczony jako spam." 764 764 … … 2099 2099 msgstr "zaznacz wszystkie" 2100 2100 2101 msgid " invert selection"2101 msgid "Invert selection" 2102 2102 msgstr "odwróć zaznaczenie" 2103 2103 -
locales/pl/main.po
r1615 r1620 837 837 msgstr "Przypomnij mi później" 838 838 839 msgid " information about this version"839 msgid "<a href=\"%s\">Information about this version</a>." 840 840 msgstr "informacje o tej wersji" 841 841 … … 2372 2372 msgstr "Blog" 2373 2373 2374 msgid "Update s"2374 msgid "Update" 2375 2375 msgstr "Uaktualnienia" 2376 2376 -
locales/pt-br/main.po
r1592 r1620 219 219 220 220 #, fuzzy 221 msgid "Th at blog Id is already in use."221 msgid "This blog ID is already used." 222 222 msgstr "DotClear já está instalado." 223 223 … … 470 470 471 471 #, php-format 472 msgid "You are currently using \"%s\""472 msgid "You are currently using <strong>%s</strong>" 473 473 msgstr "" 474 474 … … 790 790 msgstr "Autor do comentário:" 791 791 792 msgid "You have one spam comment s."792 msgid "You have one spam comment." 793 793 msgstr "Você tem um comentário indesejável." 794 794 … … 2218 2218 msgstr "selecionar tudo" 2219 2219 2220 msgid " invert selection"2220 msgid "Invert selection" 2221 2221 msgstr "inverter a seleção" 2222 2222 -
locales/pt-br/main.po
r1615 r1620 870 870 msgstr "" 871 871 872 msgid " information about this version"872 msgid "<a href=\"%s\">Information about this version</a>." 873 873 msgstr "" 874 874 … … 2497 2497 msgstr "Blog" 2498 2498 2499 msgid "Update s"2499 msgid "Update" 2500 2500 msgstr "" 2501 2501 -
locales/pt/main.po
r1592 r1620 218 218 219 219 #, fuzzy 220 msgid "Th at blog Id is already in use."220 msgid "This blog ID is already used." 221 221 msgstr "Dotclear já está instalado." 222 222 … … 461 461 462 462 #, php-format 463 msgid "You are currently using \"%s\""463 msgid "You are currently using <strong>%s</strong>" 464 464 msgstr "Você está a usar \"%s\"" 465 465 … … 768 768 msgstr "Autor do comentário:" 769 769 770 msgid "You have one spam comment s."770 msgid "You have one spam comment." 771 771 msgstr "Tem um comentário de \"spam\"" 772 772 … … 2133 2133 msgstr "seleccionar tudo" 2134 2134 2135 msgid " invert selection"2135 msgid "Invert selection" 2136 2136 msgstr "inverter selecção" 2137 2137 -
locales/pt/main.po
r1615 r1620 848 848 msgstr "Lembrar-me mais tarde" 849 849 850 msgid " information about this version"850 msgid "<a href=\"%s\">Information about this version</a>." 851 851 msgstr "" 852 852 … … 2408 2408 msgstr "Blog" 2409 2409 2410 msgid "Update s"2410 msgid "Update" 2411 2411 msgstr "Actualizações" 2412 2412 -
locales/ro/main.po
r1592 r1620 213 213 msgstr "" 214 214 215 msgid "Th at blog Id is already in use."215 msgid "This blog ID is already used." 216 216 msgstr "" 217 217 … … 455 455 456 456 #, php-format 457 msgid "You are currently using \"%s\""457 msgid "You are currently using <strong>%s</strong>" 458 458 msgstr "" 459 459 … … 752 752 msgstr "" 753 753 754 msgid "You have one spam comment s."754 msgid "You have one spam comment." 755 755 msgstr "" 756 756 … … 2084 2084 msgstr "" 2085 2085 2086 msgid " invert selection"2086 msgid "Invert selection" 2087 2087 msgstr "" 2088 2088 -
locales/ro/main.po
r1615 r1620 828 828 msgstr "" 829 829 830 msgid " information about this version"830 msgid "<a href=\"%s\">Information about this version</a>." 831 831 msgstr "" 832 832 … … 2357 2357 msgstr "" 2358 2358 2359 msgid "Update s"2359 msgid "Update" 2360 2360 msgstr "" 2361 2361 -
locales/ru/main.po
r1592 r1620 216 216 msgstr "Я не хочу, чтобы мой блог индексировался и архивировался поисковыми машинами." 217 217 218 msgid "Th at blog Id is already in use."218 msgid "This blog ID is already used." 219 219 msgstr "Dotclear уже установлен." 220 220 … … 460 460 461 461 #, php-format 462 msgid "You are currently using \"%s\""462 msgid "You are currently using <strong>%s</strong>" 463 463 msgstr "В данный момент вы используете \"%s\"" 464 464 … … 767 767 msgstr "Автор комментария:" 768 768 769 msgid "You have one spam comment s."769 msgid "You have one spam comment." 770 770 msgstr "У вас один спам комментарий." 771 771 … … 2126 2126 msgstr "выбрать все" 2127 2127 2128 msgid " invert selection"2128 msgid "Invert selection" 2129 2129 msgstr "инвертировать выбор" 2130 2130 -
locales/ru/main.po
r1615 r1620 847 847 msgstr "Напомнить мне позже" 848 848 849 msgid " information about this version"849 msgid "<a href=\"%s\">Information about this version</a>." 850 850 msgstr "" 851 851 … … 2399 2399 msgstr "Блог" 2400 2400 2401 msgid "Update s"2401 msgid "Update" 2402 2402 msgstr "Обновления" 2403 2403 -
locales/sr/main.po
r1592 r1620 217 217 218 218 #, fuzzy 219 msgid "Th at blog Id is already in use."219 msgid "This blog ID is already used." 220 220 msgstr "Dotclear est déjà installé." 221 221 … … 460 460 461 461 #, php-format 462 msgid "You are currently using \"%s\""462 msgid "You are currently using <strong>%s</strong>" 463 463 msgstr "Vous utilisez actuellement \"%s\"" 464 464 … … 778 778 msgstr "Auteur du commentaire :" 779 779 780 msgid "You have one spam comment s."780 msgid "You have one spam comment." 781 781 msgstr "Vous avez un commentaire indésirable." 782 782 … … 1172 1172 1173 1173 msgid "Media manager" 1174 msgstr " Gestionnaire de médias"1174 msgstr "Médiathèque" 1175 1175 1176 1176 msgid "confirm removal" … … 1654 1654 1655 1655 msgid "Ping blogs" 1656 msgstr " Fairedes rétroliens"1656 msgstr "Envoyer des rétroliens" 1657 1657 1658 1658 msgid "Trackbacks" … … 2167 2167 msgstr "tout sélectionner" 2168 2168 2169 msgid " invert selection"2169 msgid "Invert selection" 2170 2170 msgstr "inverser la sélection" 2171 2171 -
locales/sr/main.po
r1615 r1620 858 858 msgstr "" 859 859 860 msgid " information about this version"860 msgid "<a href=\"%s\">Information about this version</a>." 861 861 msgstr "" 862 862 … … 2444 2444 msgstr "Blog" 2445 2445 2446 msgid "Update s"2446 msgid "Update" 2447 2447 msgstr "" 2448 2448 -
locales/sv/main.po
r1592 r1620 211 211 msgstr "" 212 212 213 msgid "Th at blog Id is already in use."213 msgid "This blog ID is already used." 214 214 msgstr "" 215 215 … … 453 453 454 454 #, php-format 455 msgid "You are currently using \"%s\""455 msgid "You are currently using <strong>%s</strong>" 456 456 msgstr "" 457 457 … … 750 750 msgstr "" 751 751 752 msgid "You have one spam comment s."752 msgid "You have one spam comment." 753 753 msgstr "" 754 754 … … 2073 2073 msgstr "" 2074 2074 2075 msgid " invert selection"2075 msgid "Invert selection" 2076 2076 msgstr "" 2077 2077 -
locales/sv/main.po
r1615 r1620 826 826 msgstr "" 827 827 828 msgid " information about this version"828 msgid "<a href=\"%s\">Information about this version</a>." 829 829 msgstr "" 830 830 … … 2346 2346 msgstr "" 2347 2347 2348 msgid "Update s"2348 msgid "Update" 2349 2349 msgstr "" 2350 2350 -
locales/te/main.po
r1592 r1620 215 215 216 216 #, fuzzy 217 msgid "Th at blog Id is already in use."217 msgid "This blog ID is already used." 218 218 msgstr "డాట్క్లియర్ ఇప్పటికే స్థాపితమైవుంది." 219 219 … … 458 458 459 459 #, php-format 460 msgid "You are currently using \"%s\""460 msgid "You are currently using <strong>%s</strong>" 461 461 msgstr "మీరు ప్రస్తుతం \"%s\" ని వాడుతున్నారు" 462 462 … … 775 775 msgstr "వ్యాఖ్యాత:" 776 776 777 msgid "You have one spam comment s."777 msgid "You have one spam comment." 778 778 msgstr "ఒక చెత్త వ్యాఖ్య ఉంది." 779 779 … … 2151 2151 msgstr "అన్నీ ఎంచుకోండి" 2152 2152 2153 msgid " invert selection"2153 msgid "Invert selection" 2154 2154 msgstr "" 2155 2155 -
locales/te/main.po
r1615 r1620 854 854 msgstr "" 855 855 856 msgid " information about this version"856 msgid "<a href=\"%s\">Information about this version</a>." 857 857 msgstr "" 858 858 … … 2426 2426 msgstr "బ్లాగు" 2427 2427 2428 msgid "Update s"2428 msgid "Update" 2429 2429 msgstr "" 2430 2430 -
locales/tr/main.po
r1592 r1620 217 217 218 218 #, fuzzy 219 msgid "Th at blog Id is already in use."219 msgid "This blog ID is already used." 220 220 msgstr "Dotclear evvelce kurulmuş." 221 221 … … 460 460 461 461 #, php-format 462 msgid "You are currently using \"%s\""462 msgid "You are currently using <strong>%s</strong>" 463 463 msgstr "Şimdi \"%s\" kullanıyorsunuz." 464 464 … … 761 761 msgstr "Ahkamı yazan:" 762 762 763 msgid "You have one spam comment s."763 msgid "You have one spam comment." 764 764 msgstr "" 765 765 … … 2129 2129 msgstr "hepsini seç" 2130 2130 2131 msgid " invert selection"2131 msgid "Invert selection" 2132 2132 msgstr "seçimi evir" 2133 2133 -
locales/tr/main.po
r1615 r1620 840 840 msgstr "Gelecekte beni hatırla" 841 841 842 msgid " information about this version"842 msgid "<a href=\"%s\">Information about this version</a>." 843 843 msgstr "" 844 844 … … 2404 2404 msgstr "Blog" 2405 2405 2406 msgid "Update s"2406 msgid "Update" 2407 2407 msgstr "Güncellemeler" 2408 2408 -
locales/zh-cn/main.po
r1592 r1620 215 215 216 216 #, fuzzy 217 msgid "Th at blog Id is already in use."217 msgid "This blog ID is already used." 218 218 msgstr "Dotclear 已被安装。" 219 219 … … 458 458 459 459 #, php-format 460 msgid "You are currently using \"%s\""460 msgid "You are currently using <strong>%s</strong>" 461 461 msgstr "您正在使用“%s”" 462 462 … … 765 765 msgstr "评论作者:" 766 766 767 msgid "You have one spam comment s."767 msgid "You have one spam comment." 768 768 msgstr "您有一个垃圾评论。" 769 769 … … 2131 2131 msgstr "选择全部" 2132 2132 2133 msgid " invert selection"2133 msgid "Invert selection" 2134 2134 msgstr "反选" 2135 2135 -
locales/zh-cn/main.po
r1615 r1620 845 845 msgstr "稍后提醒我" 846 846 847 msgid " information about this version"847 msgid "<a href=\"%s\">Information about this version</a>." 848 848 msgstr "" 849 849 … … 2407 2407 msgstr "博客" 2408 2408 2409 msgid "Update s"2409 msgid "Update" 2410 2410 msgstr "更新" 2411 2411 -
plugins/attachments/_admin.php
r1537 r1620 12 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 13 14 $core->addBehavior ('adminPostForm Sidebar',array('attachmentAdmin','adminPostFormSidebar'));14 $core->addBehavior ('adminPostFormItems',array('attachmentAdmin','adminPostFormItems')); 15 15 $core->addBehavior ('adminPostAfterForm',array('attachmentAdmin','adminPostAfterForm')); 16 $core->addBehavior('adminPostHeaders',array('attachmentAdmin','postHeaders')); 17 $core->addBehavior ('adminPageFormItems',array('attachmentAdmin','adminPostFormItems')); 18 $core->addBehavior ('adminPageAfterForm',array('attachmentAdmin','adminPostAfterForm')); 19 $core->addBehavior('adminPageHeaders',array('attachmentAdmin','postHeaders')); 16 20 17 21 class attachmentAdmin 18 22 { 19 public static function adminPostFormSidebar($post) 23 public static function postHeaders() 24 { 25 return 26 '<script type="text/javascript" src="index.php?pf=attachments/js/post.js"></script>'; 27 } 28 public static function adminPostFormItems($main,$sidebar,$post) 20 29 { 21 30 if ($post !== null) 22 31 { 23 32 $core =& $GLOBALS['core']; 24 if ( isset($core->media) ) { 25 $post_media = $core->media->getPostMedia($post->post_id); 26 echo 27 '<h3 class="clear">'.__('Attachments').'</h3>'; 28 foreach ($post_media as $f) 29 { 30 $ftitle = $f->media_title; 31 if (strlen($ftitle) > 18) { 32 $ftitle = substr($ftitle,0,16).'...'; 33 } 34 echo 35 '<div class="media-item">'. 36 '<a class="media-icon" href="media_item.php?id='.$f->media_id.'">'. 37 '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'. 38 '<ul>'. 39 '<li><a class="media-link" href="media_item.php?id='.$f->media_id.'" '. 40 'title="'.$f->basename.'">'.$ftitle.'</a></li>'. 41 '<li>'.$f->media_dtstr.'</li>'. 42 '<li>'.files::size($f->size).' - '. 43 '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'. 44 45 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 46 'href="post_media.php?post_id='.$post->post_id.'&media_id='.$f->media_id.'&remove=1">'. 47 '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'. 48 '</li>'. 49 50 '</ul>'. 51 '</div>'; 33 $post_media = $core->media->getPostMedia($post->post_id); 34 $nb_media = count($post_media); 35 $title = !$nb_media ? __('Attachments') : sprintf(__('Attachments (%d)'),$nb_media); 36 $item = '<h5 class="clear s-attachments">'.$title.'</h5>'; 37 foreach ($post_media as $f) 38 { 39 $ftitle = $f->media_title; 40 if (strlen($ftitle) > 18) { 41 $ftitle = substr($ftitle,0,16).'...'; 52 42 } 53 unset($f); 43 $item .= 44 '<div class="media-item s-attachments">'. 45 '<a class="media-icon" href="media_item.php?id='.$f->media_id.'">'. 46 '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'. 47 '<ul>'. 48 '<li><a class="media-link" href="media_item.php?id='.$f->media_id.'" '. 49 'title="'.$f->basename.'">'.$ftitle.'</a></li>'. 50 '<li>'.$f->media_dtstr.'</li>'. 51 '<li>'.files::size($f->size).' - '. 52 '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'. 53 54 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 55 'href="post_media.php?post_id='.$post->post_id.'&media_id='.$f->media_id.'&remove=1">'. 56 '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'. 57 '</li>'. 58 59 '</ul>'. 60 '</div>'; 54 61 } 62 unset($f); 55 63 56 64 if (empty($post_media)) { 57 echo '<p>'.__('No attachment.').'</p>';58 } else {59 }60 echo '<p><a class="button" href="media.php?post_id='.$post->post_id.'">'.__('Add files to this entry').'</a></p>';65 $item .= '<p class="form-note s-attachments">'.__('No attachment.').'</p>'; 66 } 67 $item .= '<p class="s-attachments"><a class="button" href="media.php?post_id='.$post->post_id.'">'.__('Add files to this entry').'</a></p>'; 68 $sidebar['metas-box']['items']['attachments']= $item; 61 69 } 62 70 } -
plugins/pages/page.php
r1537 r1620 124 124 if ($next_rs !== null) { 125 125 $next_link = sprintf($post_link,$next_rs->post_id, 126 html::escapeHTML($next_rs->post_title),__(' next page').' »');126 html::escapeHTML($next_rs->post_title),__('Next page').' »'); 127 127 $next_headlink = sprintf($post_headlink,'next', 128 128 html::escapeHTML($next_rs->post_title),$next_rs->post_id); … … 131 131 if ($prev_rs !== null) { 132 132 $prev_link = sprintf($post_link,$prev_rs->post_id, 133 html::escapeHTML($prev_rs->post_title),'« '.__(' previous page'));133 html::escapeHTML($prev_rs->post_title),'« '.__('Previous page')); 134 134 $prev_headlink = sprintf($post_headlink,'previous', 135 135 html::escapeHTML($prev_rs->post_title),$prev_rs->post_id); … … 304 304 dcPage::jsToolBar(). 305 305 dcPage::jsModal(). 306 dcPage::jsMetaEditor().307 306 dcPage::jsLoad('js/_post.js'). 308 307 dcPage::jsConfirmClose('entry-form','comment-form'). … … 318 317 <?php 319 318 319 if ($post_id) { 320 switch ($post_status) { 321 case 1: 322 $img_status = sprintf($img_status_pattern,__('Published'),'check-on.png'); 323 break; 324 case 0: 325 $img_status = sprintf($img_status_pattern,__('Unpublished'),'check-off.png'); 326 break; 327 case -1: 328 $img_status = sprintf($img_status_pattern,__('Scheduled'),'scheduled.png'); 329 break; 330 case -2: 331 $img_status = sprintf($img_status_pattern,__('Pending'),'check-wrn.png'); 332 break; 333 default: 334 $img_status = ''; 335 } 336 $edit_entry_title = '“'.$post_title.'”'.' '.$img_status; 337 } else { 338 $edit_entry_title = $page_title; 339 } 340 echo dcPage::breadcrumb( 341 array( 342 html::escapeHTML($core->blog->name) => '', 343 __('Pages') => $p_url, 344 '<span class="page-title">'.$edit_entry_title.'</span>' => '' 345 )); 346 320 347 if (!empty($_GET['upd'])) { 321 dcPage:: message(__('Page has been successfully updated.'));348 dcPage::success(__('Page has been successfully updated.')); 322 349 } 323 350 elseif (!empty($_GET['crea'])) { 324 dcPage:: message(__('Page has been successfully created.'));351 dcPage::success(__('Page has been successfully created.')); 325 352 } 326 353 elseif (!empty($_GET['attached'])) { 327 dcPage:: message(__('File has been successfully attached.'));354 dcPage::success(__('File has been successfully attached.')); 328 355 } 329 356 elseif (!empty($_GET['rmattach'])) { 330 dcPage:: message(__('Attachment has been successfully removed.'));357 dcPage::success(__('Attachment has been successfully removed.')); 331 358 } 332 359 … … 341 368 } 342 369 343 echo '<h2>'.html::escapeHTML($core->blog->name).344 ' › <a href="'.$p_url.'">'.__('Pages').'</a> › <span class="page-title">'.$page_title;345 if ($post_id) {346 switch ($post_status) {347 case 1:348 $img_status = sprintf($img_status_pattern,__('published'),'check-on.png');349 break;350 case 0:351 $img_status = sprintf($img_status_pattern,__('unpublished'),'check-off.png');352 break;353 case -1:354 $img_status = sprintf($img_status_pattern,__('scheduled'),'scheduled.png');355 break;356 case -2:357 $img_status = sprintf($img_status_pattern,__('pending'),'check-wrn.png');358 break;359 default:360 $img_status = '';361 }362 echo ' “'.$post_title.'”'.' '.$img_status;363 }364 echo '</span></h2>';365 366 370 if ($post_id && $post->post_status == 1) { 367 echo '<p><a href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>';371 echo '<p><a class="onblog_link" href="'.$post->getURL().'" onclick="window.open(this.href);return false;" title="'.$post_title.' ('.__('new window').')'.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 368 372 } 369 373 … … 372 376 if ($post_id) 373 377 { 374 echo '<p >';378 echo '<p class="nav_prevnext">'; 375 379 if ($prev_link) { echo $prev_link; } 376 if ($next_link && $prev_link) { echo ' -'; }380 if ($next_link && $prev_link) { echo ' | '; } 377 381 if ($next_link) { echo $next_link; } 378 382 … … 390 394 391 395 392 /* Post form if we can edit p ost396 /* Post form if we can edit page 393 397 -------------------------------------------------------- */ 394 398 if ($can_edit_page) 395 399 { 400 $sidebar_items = new ArrayObject(array( 401 'status-box' => array( 402 'title' => __('Status'), 403 'items' => array( 404 'post_status' => 405 '<p><label for="post_status" class="ib">'.__('Page status:').'</label> '. 406 form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). 407 '</p>', 408 'post_dt' => 409 '<p><label for="post_dt" class="ib">'.__('Publication date and hour').'</label>'. 410 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')). 411 '</p>', 412 'post_lang' => 413 '<p><label for="post_lang" class="ib">'.__('Page lang:').'</label>'. 414 form::combo('post_lang',$lang_combo,$post_lang). 415 '</p>', 416 'post_format' => 417 '<div>'. 418 '<h5 id="label_format"><label for="post_format" class="ib">'.__('Text formating').'</label></h5>'. 419 '<p>'.form::combo('post_format',$formaters_combo,$post_format,'maximal'). 420 '</p>'. 421 '<p>'.($post_id && $post_format != 'xhtml' ? 422 '<a id="convert-xhtml" class="button maximal" href="post.php?id='.$post_id.'&xconv=1">'. 423 __('Convert to XHTML').'</a>' : '').'</p></div>')), 424 'metas-box' => array( 425 'title' => __('Ordering'), 426 'items' => array( 427 'post_position' => 428 '<p><label for="post_position" class="classic">'.__('Page position:').'</label> '. 429 form::field('post_position',3,3,(string) $post_position). 430 '</p>')), 431 'options-box' => array( 432 'title' => __('Options'), 433 'items' => array( 434 'post_open_comment' => 435 '<p><label for="post_open_comment" class="classic">'. 436 form::checkbox('post_open_comment',1,$post_open_comment).' '. 437 __('Accept comments').'</label></p>'. 438 ($core->blog->settings->system->allow_comments ? 439 (isContributionAllowed($post_id,strtotime($post_dt),true) ? 440 '' : 441 '<p class="form-note warn">'. 442 __('Warning: Comments are not more accepted for this entry.').'</p>') : 443 '<p class="form-note warn">'. 444 __('Warning: Comments are not accepted on this blog.').'</p>'), 445 'post_open_tb' => 446 '<p><label for="post_open_tb" class="classic">'. 447 form::checkbox('post_open_tb',1,$post_open_tb).' '. 448 __('Accept trackbacks').'</label></p>'. 449 ($core->blog->settings->system->allow_trackbacks ? 450 (isContributionAllowed($post_id,strtotime($post_dt),false) ? 451 '' : 452 '<p class="form-note warn">'. 453 __('Warning: Trackbacks are not more accepted for this entry.').'</p>') : 454 '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>'), 455 'post_hide' => 456 '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected).' '. 457 __('Hide in widget Pages').'</label></p>'. 458 '</p>', 459 'post_password' => 460 '<p><label for="post_password" class="ib">'.__('Password').'</label>'. 461 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 462 '</p>', 463 'post_url' => 464 '<div class="lockable">'. 465 '<p><label for="post_url" class="ib">'.__('Edit basename').'</label>'. 466 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 467 '</p>'. 468 '<p class="form-note warn">'. 469 __('Warning: If you set the URL manually, it may conflict with another entry.'). 470 '</p></div>' 471 )))); 472 $main_items = new ArrayObject(array( 473 "post_title" => 474 '<p class="col">'. 475 '<label class="required no-margin"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:').'</label>'. 476 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 477 '</p>', 478 479 "post_excerpt" => 480 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'<span class="form-note">'. 481 __('Add an introduction to the post.').'</span></label> '. 482 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 483 '</p>', 484 485 "post_content" => 486 '<p class="area"><label class="required" '. 487 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 488 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 489 '</p>', 490 491 "post_notes" => 492 '<p class="area" id="notes-area"><label for="post_notes">'.__('Personal notes:').'<span class="form-note">'. 493 __('Add unpublished notes.').'</span></label>'. 494 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 495 '</p>' 496 ) 497 ); 498 499 # --BEHAVIOR-- adminPostFormItems 500 $core->callBehavior('adminPageFormItems',$main_items,$sidebar_items, isset($post) ? $post : null); 501 396 502 echo '<div class="multi-part" title="'.__('Edit page').'" id="edit-entry">'; 397 503 echo '<form action="'.html::escapeURL($redir_url).'" method="post" id="entry-form">'; … … 400 506 echo '<div id="entry-content"><div class="constrained">'; 401 507 402 echo 403 '<p class="col"><label for="post_title" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Title:'). 404 form::field('post_title',20,255,html::escapeHTML($post_title),'maximal'). 405 '</label></p>'. 406 407 '<p class="area" id="excerpt-area"><label for="post_excerpt">'.__('Excerpt:').'</label> '. 408 form::textarea('post_excerpt',50,5,html::escapeHTML($post_excerpt)). 409 '</p>'. 410 411 '<p class="area"><label class="required" '. 412 'for="post_content"><abbr title="'.__('Required field').'">*</abbr> '.__('Content:').'</label> '. 413 form::textarea('post_content',50,$core->auth->getOption('edit_size'),html::escapeHTML($post_content)). 414 '</p>'; 415 416 echo 417 '<p class="area" id="notes-area"><label for="post_notes">'.__('Notes:').'</label>'. 418 form::textarea('post_notes',50,5,html::escapeHTML($post_notes)). 419 '</p>'; 508 509 foreach ($main_items as $id => $item) { 510 echo $item; 511 } 420 512 421 513 # --BEHAVIOR-- adminPageForm … … 423 515 424 516 echo 425 '<p >'.517 '<p class="border-top">'. 426 518 ($post_id ? form::hidden('id',$post_id) : ''). 427 519 '<input type="submit" value="'.__('Save').' (s)" '. … … 450 542 echo '<div id="entry-sidebar">'; 451 543 452 echo 453 '<p><label for="post_status">'.__('Page status:'). 454 form::combo('post_status',$status_combo,$post_status,'','',!$can_publish). 455 '</label></p>'. 456 457 '<p><label for="post_dt">'.__('Published on:'). 458 form::field('post_dt',16,16,$post_dt,($bad_dt ? 'invalid' : '')).'</label></p>'. 459 460 '<p><label for="post_format">'.__('Text formating:'). 461 form::combo('post_format',$formaters_combo,$post_format). 462 ($post_id && $post_format != 'xhtml' ? '<a href="'.html::escapeURL($redir_url).'&id='.$post_id.'&xconv=1">'.__('Convert to XHTML').'</a>' : ''). 463 '</label></p>'. 464 465 '<p><label for="post_open_comment" class="classic">'.form::checkbox('post_open_comment',1,$post_open_comment).' '. 466 __('Accept comments').'</label></p>'. 467 ($core->blog->settings->system->allow_comments ? 468 (isContributionAllowed($post_id,strtotime($post_dt),true) ? 469 '' : 470 '<p class="form-note warn">'.__('Warning: Comments are not more accepted for this page.').'</p>') : 471 '<p class="form-note warn">'.__('Warning: Comments are not accepted on this blog.').'</p>'). 472 473 '<p><label for="post_open_tb" class="classic">'.form::checkbox('post_open_tb',1,$post_open_tb).' '. 474 __('Accept trackbacks').'</label></p>'. 475 ($core->blog->settings->system->allow_trackbacks ? 476 (isContributionAllowed($post_id,strtotime($post_dt),false) ? 477 '' : 478 '<p class="form-note warn">'.__('Warning: Trackbacks are not more accepted for this page.').'</p>') : 479 '<p class="form-note warn">'.__('Warning: Trackbacks are not accepted on this blog.').'</p>'). 480 481 '<p><label for="post_selected" class="classic">'.form::checkbox('post_selected',1,$post_selected).' '. 482 __('Hide').'</label></p>'. 483 '<p class="form-note">'. 484 __('If checked this page will be active but not listed in widget Pages.'). 485 '</p>'. 486 487 '<p><label for="post_position" class="classic">'.__('Page position:').' '. 488 form::field('post_position',3,3,(string) $post_position). 489 '</label></p>'. 490 491 '<p><label for="post_lang">'.__('Page lang:'). 492 form::combo('post_lang',$lang_combo,$post_lang).'</label></p>'. 493 494 '<p><label for="post_password">'.__('Page password:'). 495 form::field('post_password',10,32,html::escapeHTML($post_password),'maximal'). 496 '</label></p>'. 497 498 '<div class="lockable">'. 499 '<p><label for="post_url">'.__('Basename:'). 500 form::field('post_url',10,255,html::escapeHTML($post_url),'maximal'). 501 '</label></p>'. 502 '<p class="form-note warn">'. 503 __('Warning: If you set the URL manually, it may conflict with another page.'). 504 '</p>'. 505 '</div>'; 506 507 if ($post_id) 508 { 509 echo 510 '<h3 class="clear">'.__('Attachments').'</h3>'; 511 foreach ($post_media as $f) 512 { 513 $ftitle = $f->media_title; 514 if (strlen($ftitle) > 18) { 515 $ftitle = substr($ftitle,0,16).'...'; 516 } 517 echo 518 '<div class="media-item">'. 519 '<a class="media-icon" href="media_item.php?id='.$f->media_id.'">'. 520 '<img src="'.$f->media_icon.'" alt="" title="'.$f->basename.'" /></a>'. 521 '<ul>'. 522 '<li><a class="media-link" href="media_item.php?id='.$f->media_id.'"'. 523 'title="'.$f->basename.'">'.$ftitle.'</a></li>'. 524 '<li>'.$f->media_dtstr.'</li>'. 525 '<li>'.files::size($f->size).' - '. 526 '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'. 527 528 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 529 'href="post_media.php?post_id='.$post_id.'&media_id='.$f->media_id.'&remove=1">'. 530 '<img src="images/check-off.png" alt="'.__('remove').'" /></a>'. 531 '</li>'. 532 533 '</ul>'. 534 '</div>'; 535 } 536 unset($f); 537 538 if (empty($post_media)) { 539 echo '<p>'.__('No attachment.').'</p>'; 540 } 541 echo '<p><a href="media.php?post_id='.$post_id.'">'.__('Add files to this page').'</a></p>'; 544 foreach ($sidebar_items as $id => $c) { 545 echo '<div id="'.$id.'" class="box">'. 546 '<h4>'.$c['title'].'</h4>'; 547 foreach ($c['items'] as $e_name=>$e_content) { 548 echo $e_content; 549 } 550 echo '</div>'; 542 551 } 543 552 … … 575 584 if ($can_edit_page && $core->auth->check('publish,contentadmin',$core->blog->id)) 576 585 { 577 $combo_action[__(' publish')] = 'publish';578 $combo_action[__(' unpublish')] = 'unpublish';579 $combo_action[__(' mark as pending')] = 'pending';580 $combo_action[__(' mark as junk')] = 'junk';586 $combo_action[__('Publish')] = 'publish'; 587 $combo_action[__('Unpublish')] = 'unpublish'; 588 $combo_action[__('Mark as pending')] = 'pending'; 589 $combo_action[__('Mark as junk')] = 'junk'; 581 590 } 582 591 583 592 if ($can_edit_page && $core->auth->check('delete,contentadmin',$core->blog->id)) 584 593 { 585 $combo_action[__(' delete')] = 'delete';594 $combo_action[__('Delete')] = 'delete'; 586 595 } 587 596 … … 615 624 '<p class="col checkboxes-helpers"></p>'. 616 625 617 '<p class="col right"><label for="action" >'.__('Selected comments action:').'</label> '.626 '<p class="col right"><label for="action" class="classic">'.__('Selected comments action:').'</label> '. 618 627 form::combo('action',$combo_action). 619 628 form::hidden('redir',html::escapeURL($redir_url).'&id='.$post_id.'&co=1'). … … 637 646 '<form action="comment.php" method="post" id="comment-form">'. 638 647 '<div class="constrained">'. 639 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:'). 648 '<p><label for="comment_author" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Name:').'</label>'. 640 649 form::field('comment_author',30,255,html::escapeHTML($core->auth->getInfo('user_cn'))). 641 '</ label></p>'.642 643 '<p><label for="comment_email">'.__('Email:'). 650 '</p>'. 651 652 '<p><label for="comment_email">'.__('Email:').'</label>'. 644 653 form::field('comment_email',30,255,html::escapeHTML($core->auth->getInfo('user_email'))). 645 '</ label></p>'.646 647 '<p><label for="comment_site">'.__('Web site:'). 654 '</p>'. 655 656 '<p><label for="comment_site">'.__('Web site:').'</label>'. 648 657 form::field('comment_site',30,255,html::escapeHTML($core->auth->getInfo('user_url'))). 649 '</ label></p>'.658 '</p>'. 650 659 651 660 '<p class="area"><label for="comment_content" class="required"><abbr title="'.__('Required field').'">*</abbr> '.__('Comment:').'</label> '. … … 688 697 echo 689 698 '<table class="comments-list"><tr>'. 690 '<th colspan="2" >'.__('Author').'</th>'.699 '<th colspan="2" class="nowrap first">'.__('Author').'</th>'. 691 700 '<th>'.__('Date').'</th>'. 692 701 '<th class="nowrap">'.__('IP address').'</th>'. 693 702 '<th>'.__('Status').'</th>'. 694 '<th> </th>'.703 '<th>'.__('Edit').'</th>'. 695 704 '</tr>'; 696 705 … … 702 711 switch ($rs->comment_status) { 703 712 case 1: 704 $img_status = sprintf($img,__(' published'),'check-on.png');713 $img_status = sprintf($img,__('Published'),'check-on.png'); 705 714 break; 706 715 case 0: 707 $img_status = sprintf($img,__(' unpublished'),'check-off.png');716 $img_status = sprintf($img,__('Unpublished'),'check-off.png'); 708 717 break; 709 718 case -1: 710 $img_status = sprintf($img,__(' pending'),'check-wrn.png');719 $img_status = sprintf($img,__('Pending'),'check-wrn.png'); 711 720 break; 712 721 case -2: 713 $img_status = sprintf($img,__(' junk'),'junk.png');722 $img_status = sprintf($img,__('Junk'),'junk.png'); 714 723 break; 715 724 } … … 720 729 721 730 '<td class="nowrap">'. 722 ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__(' select this comment').'"') : '').'</td>'.731 ($has_action ? form::checkbox(array('comments[]'),$rs->comment_id,'','','',0,'title="'.__('Select this comment').'"') : '').'</td>'. 723 732 '<td class="maximal">'.$rs->comment_author.'</td>'. 724 733 '<td class="nowrap">'.dt::dt2str(__('%Y-%m-%d %H:%M'),$rs->comment_dt).'</td>'. … … 726 735 '<td class="nowrap status">'.$img_status.'</td>'. 727 736 '<td class="nowrap status"><a href="'.$comment_url.'">'. 728 '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> </a></td>'.737 '<img src="images/edit-mini.png" alt="" title="'.__('Edit this comment').'" /> '.__('Edit').'</a></td>'. 729 738 730 739 '</tr>'; -
plugins/pages/page.php
r1619 r1620 139 139 $core->media = new dcMedia($core); 140 140 $post_media = $core->media->getPostMedia($post_id); 141 } catch (Exception $e) {} 141 } catch (Exception $e) { 142 $core->error->add($e->getMessage()); 143 } 142 144 } 143 145 }
Note: See TracChangeset
for help on using the changeset viewer.