Dotclear

Changeset 1501:6885aa3f7dc2


Ignore:
Timestamp:
08/21/13 00:47:49 (10 years ago)
Author:
Denis Jean-Christian <contact@…>
Branch:
default
Message:

Add count on title for attachments on entry sidebar, fixes #1560

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • locales/en/plugins.po

    r1499 r1501  
    280280msgstr "" 
    281281 
     282msgid "Attachments (%d)" 
     283msgstr "" 
     284 
    282285msgid "remove" 
    283286msgstr "" 
  • locales/fr/plugins.po

    r1499 r1501  
    301301msgstr "Annexes" 
    302302 
     303msgid "Attachments (%d)" 
     304msgstr "Annexes (%s)" 
     305 
    303306msgid "remove" 
    304307msgstr "supprimer" 
  • plugins/attachments/_admin.php

    r1468 r1501  
    2929               $core =& $GLOBALS['core']; 
    3030               $post_media = $core->media->getPostMedia($post->post_id); 
    31                $item = '<h5 class="clear s-attachments">'.__('Attachments').'</h5>'; 
     31               $nb_media = count($post_media); 
     32               $title = !$nb_media ? __('Attachments') : sprintf(__('Attachments (%d)'),$nb_media); 
     33               $item = '<h5 class="clear s-attachments">'.$title.'</h5>'; 
    3234               foreach ($post_media as $f) 
    3335               { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map