Changeset 22135


Ignore:
Timestamp:
Apr 11, 2013, 3:18:46 PM (11 years ago)
Author:
flop25
Message:

bug:2863
display a message on the upload page if "Resized after upload" is checked

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/photos_add_direct_prepare.inc.php

    r19828 r22135  
    106106}
    107107
     108//warn the user if the picture will be resized after upload
     109if ($conf['original_resize'])
     110{
     111  $template->assign(
     112    array(
     113        'original_resize_maxwidth' => $conf['original_resize_maxwidth'],
     114        'original_resize_maxheight' => $conf['original_resize_maxheight'],
     115      )
     116    );
     117}
     118
     119
    108120$upload_modes = array('html', 'multiple');
    109121$upload_mode = isset($conf['upload_mode']) ? $conf['upload_mode'] : 'multiple';
     
    256268      );
    257269  }
    258 
    259270  $template->assign(
    260271    array(
  • trunk/admin/themes/default/template/photos_add_direct.tpl

    r19828 r22135  
    290290    <fieldset>
    291291      <legend>{'Select files'|@translate}</legend>
     292 
     293    {if isset($original_resize_maxheight)}<p class="uploadInfo">{'The picture dimensions will be reduced to %dx%d pixels.'|@translate|@sprintf:$original_resize_maxwidth:$original_resize_maxheight}</p>{/if}
    292294
    293295    <p id="uploadWarningsSummary">{$upload_max_filesize_shorthand}B. {$upload_file_types}. {if isset($max_upload_resolution)}{$max_upload_resolution}Mpx{/if} <a class="showInfo" title="{'Learn more'|@translate}">i</a></p>
     
    300302  {/if}
    301303    </p>
     304
     305
    302306
    303307{if $upload_mode eq 'html'}
  • trunk/admin/themes/default/theme.css

    r19530 r22135  
    996996#addUploadBox {margin-bottom:2em;}
    997997
     998p.uploadInfo {text-align:left;font-size:90%;color:#999;}
    998999p#uploadWarningsSummary {text-align:left;margin-bottom:1em;font-size:90%;color:#999;}
    9991000p#uploadWarningsSummary .showInfo {position:static;display:inline;padding:1px 6px;margin-left:3px;}
  • trunk/language/en_UK/admin.lang.php

    r21177 r22135  
    797797$lang['The original maximum width must be a number between %d and %d'] = 'The original maximum width must be a number between %d and %d';
    798798$lang['The permalink name must be composed of a-z, A-Z, 0-9, "-", "_" or "/". It must not be numeric or start with number followed by "-"'] = "The permalink name must be composed of a-z, A-Z, 0-9, \"-\", \"_\" or \"/\". It must not be numeric or begin with a number followed by \"-\"";
     799$lang['The picture dimensions will be reduced to %dx%d pixels.'] = 'The picture dimensions will be reduced to %dx%d pixels.';
    799800$lang['The Piwigo export plugin allows you to create albums and export photos.'] = 'The Piwigo export plugin allows you to create albums and export photos.';
    800801$lang['The Piwigo publish Plug-in allows you to export and synchronize photos from Lightroom directly to your Piwigo photo gallery.'] = 'The Piwigo publish Plug-in allows you to export and synchronize photos from Lightroom directly to your Piwigo photo gallery.';
  • trunk/language/fr_FR/admin.lang.php

    r20544 r22135  
    951951$lang['Rename'] = 'Renommer';
    952952$lang['Purge user cache'] = 'Purger le cache utilisateur';
     953$lang['The picture dimensions will be reduced to %dx%d pixels.'] = 'La tailles des images sera réduite à %dx%d pixels.';
     954
    953955?>
Note: See TracChangeset for help on using the changeset viewer.