disable the "resize after upload" options if gd 
1 lang key added

git-svn-id: http://piwigo.org/svn/trunk@23643 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
flop25
2013-06-28 20:12:49 +00:00
parent cc8835bb1f
commit bd9529fbf0
4 changed files with 16 additions and 2 deletions

View File

@@ -440,6 +440,8 @@ switch ($page['section'])
// when submitting the form and an error remains
if (!isset($page['sizes_loaded_in_tpl']))
{
$is_gd = (pwg_image::get_library()=='gd')? true : false;
$template->assign('is_gd', $is_gd);
$template->assign(
'sizes',
array(

View File

@@ -345,7 +345,17 @@ jQuery(document).ready(function(){
<fieldset id="sizesConf">
<legend>{'Original Size'|@translate}</legend>
{if $is_gd}
<div>
<label>
{'Resize after upload disabled due to the use of GD as graphic library'|@translate}
<input type="checkbox" name="original_resize" id="original_resize" disabled="disabled" style="visibility: hidden">
<input type="hidden" name="original_resize_maxwidth" value="{$sizes.original_resize_maxwidth}">
<input type="hidden" name="original_resize_maxheight" value="{$sizes.original_resize_maxheight}">
<input type="hidden" name="original_resize_quality" value="{$sizes.original_resize_quality}">
</label>
</div>
{else}
<div>
<label for="original_resize">
<input type="checkbox" name="original_resize" id="original_resize" {if ($sizes.original_resize)}checked="checked"{/if}>
@@ -376,7 +386,7 @@ jQuery(document).ready(function(){
</td>
</tr>
</table>
{/if}
</fieldset>
<fieldset id="multiSizesConf">

View File

@@ -692,6 +692,7 @@ $lang['Representative'] = 'Album thumbnail';
$lang['Represents'] = 'Is thumbnail for';
$lang['Reset ignored updates'] = 'Reset ignored updates';
$lang['Resize after upload'] = 'Resize after upload';
$lang['Resize after upload disabled due to the use of GD as graphic library'] = 'Resize after upload disabled due to the use of GD as graphic library';
$lang['Resize'] = 'Resize';
$lang['Restore default configuration. You will lose your plugin settings!'] = "Restore default configuration. You will lose your plugin settings!";
$lang['Restore'] = "Restore";

View File

@@ -805,6 +805,7 @@ $lang['Synchronize metadata'] = "Synchroniser les méta-données";
$lang['Add to caddie'] = 'Ajouter au panier';
$lang['Zoom'] = 'Zoom';
$lang['Resize after upload'] = 'Redimensionner après transfert';
$lang['Resize after upload disabled due to the use of GD as graphic library'] = 'Redimensionnement après transfert désactivé car GD est la librairie graphique utilisée actuellement';
$lang['Original Size'] = 'Taille originale';
$lang['Send connection settings by email'] = 'Envoyer les identifiants par email';
$lang['Activate comments'] = 'Activer les commentaires';