Ignore:
Timestamp:
06/04/13 10:39:23 (7 years ago)
Author:
plg
Message:

l10n

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/automatic_size/main.inc.php

    r23032 r23033  
    6969        if ($size[0] <= $available_size[0] and $size[1] <= $available_size[1]) 
    7070        { 
    71           $autosize = $type; 
     71          $automatic_size = $type; 
    7272        } 
    7373      } 
     
    7777  global $page, $template; 
    7878 
     79  load_language('plugin.lang', ASIZE_PATH); 
    7980  $template->set_prefilter('picture', 'asize_picture_prefilter'); 
    8081 
     
    9192    ); 
    9293  
    93   if (isset($autosize)) 
     94  if (isset($automatic_size)) 
    9495  { 
    9596    if ($is_automatic_size) 
    9697    { 
    97       $selected_derivative = $element_info['derivatives'][$autosize]; 
     98      $selected_derivative = $element_info['derivatives'][$automatic_size]; 
    9899    } 
    99     $template->assign('autosize', $autosize); 
     100     
     101    $template->assign( 
     102      array( 
     103        'automatic_size' => $automatic_size, 
     104        'ASIZE_TITLE' => sprintf( 
     105          l10n('The best adapted size for this photo and your screen is size %s'), 
     106          l10n($automatic_size) 
     107          ) 
     108        ) 
     109      ); 
    100110  } 
    101111 
     
    131141  $pattern = '#\{foreach from=\$current\.unique_derivatives#'; 
    132142  $replacement = ' 
    133 <span class="switchCheck" id="aSizeChecked"{if !$is_automatic_size} style="visibility:hidden"{/if}>&#x2714; </span> <a id="aSize" href="{$ASIZE_URL}" data-checked="{if $is_automatic_size}yes{else}no{/if}">{\'Automatic\'|@translate}</a> 
     143<span class="switchCheck" id="aSizeChecked"{if !$is_automatic_size} style="visibility:hidden"{/if}>&#x2714; </span> <a id="aSize" href="{$ASIZE_URL}" title="{$ASIZE_TITLE}" data-checked="{if $is_automatic_size}yes{else}no{/if}">{\'Automatic\'|@translate}</a> 
    134144<br><br> 
    135145{foreach from=$current.unique_derivatives'; 
Note: See TracChangeset for help on using the changeset viewer.