Dotclear

Changeset 3094:b8ba079a19f4


Ignore:
Timestamp:
09/20/15 18:35:34 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Shortcut access to the upload file div on media page (if available)

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r3034 r3094  
    371371 
    372372if ($post_id) { 
    373      echo '<div class="form-note info"><p>'.sprintf(__('Choose a file to attach to entry %s by clicking on %s.'), 
     373     echo '<div class="form-note info"><p>'.sprintf(__('Choose a file to attach to entry %s by clicking on %s'), 
    374374          '<a href="'.$core->getPostAdminURL($post_type,$post_id).'">'.html::escapeHTML($post_title).'</a>', 
    375           '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />').'</p></div>'; 
     375          '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />'); 
     376     if ($core_media_writable) { 
     377          echo ' '.__('or').' '.sprintf('<a href="#fileupload">%s</a>',__('upload a new file')); 
     378     } 
     379     echo '</p></div>'; 
    376380} 
    377381if ($popup) { 
    378      echo '<div class="info"><p>'.sprintf(__('Choose a file to insert into entry by clicking on %s.'), 
    379           '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />').'</p></div>'; 
     382     echo '<div class="info"><p>'.sprintf(__('Choose a file to insert into entry by clicking on %s'), 
     383          '<img src="images/plus.png" alt="'.__('Attach this file to entry').'" />'); 
     384     if ($core_media_writable) { 
     385          echo ' '.__('or').' '.sprintf('<a href="#fileupload">%s</a>',__('upload a new file')); 
     386     } 
     387     echo '</p></div>'; 
    380388} 
    381389 
  • locales/fr/main.po

    r3093 r3094  
    14081408 
    14091409#, php-format 
    1410 msgid "Choose a file to attach to entry %s by clicking on %s." 
    1411 msgstr "Choisissez un fichier à attacher au billet %s en cliquant sur %s." 
     1410msgid "Choose a file to attach to entry %s by clicking on %s" 
     1411msgstr "Choisissez un fichier à attacher au billet %s en cliquant sur %s" 
    14121412 
    14131413msgid "Attach this file to entry" 
     
    14151415 
    14161416#, php-format 
    1417 msgid "Choose a file to insert into entry by clicking on %s." 
    1418 msgstr "Choisissez un fichier à insérer dans le billet en cliquant sur %s." 
     1417msgid "Choose a file to insert into entry by clicking on %s" 
     1418msgstr "Choisissez un fichier à insérer dans le billet en cliquant sur %s" 
     1419 
     1420msgid "upload a new file" 
     1421msgstr "envoyez un nouveau fichier" 
    14191422 
    14201423msgid "Remove selected medias" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map