Ignore:
Timestamp:
Jan 30, 2008, 11:07:07 PM (17 years ago)
Author:
rub
Message:

Replace old use of $lang by l10n function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/thumbnail.php

    r1900 r2201  
    120120    if (!is_writable($tndir))
    121121    {
    122       array_push($page['errors'], '['.$tndir.'] : '.$lang['no_write_access']);
     122      array_push($page['errors'], '['.$tndir.'] : '.l10n('no_write_access'));
    123123      return false;
    124124    }
     
    141141  else
    142142  {
    143     echo $lang['tn_no_support']." ";
     143    echo l10n('tn_no_support')." ";
    144144    if ( isset( $extenstion ) )
    145145    {
    146       echo $lang['tn_format'].' '.$extension;
     146      echo l10n('tn_format').' '.$extension;
    147147    }
    148148    else
    149149    {
    150       echo $lang['tn_thisformat'];
     150      echo l10n('tn_thisformat');
    151151    }
    152152    exit();
     
    162162
    163163$template->assign_vars(array(
    164   'L_THUMBNAIL_TITLE'=>$lang['tn_dirs_title'],
    165   'L_UNLINK'=>$lang['tn_no_missing'],
    166   'L_MISSING_THUMBNAILS'=>$lang['tn_dirs_alone'],
    167   'L_RESULTS'=>$lang['tn_results_title'],
    168   'L_PATH'=>$lang['path'],
    169   'L_FILESIZE'=>$lang['filesize'],
    170   'L_GENERATED'=>$lang['tn_results_gen_time'],
    171   'L_THUMBNAIL'=>$lang['thumbnail'],
    172   'L_PARAMS'=>$lang['tn_params_title'],
    173   'L_GD'=>$lang['tn_params_GD'],
    174   'L_CREATE'=>$lang['tn_params_create'],
    175   'L_SUBMIT'=>$lang['submit'],
    176   'L_REMAINING'=>$lang['tn_alone_title'],
    177   'L_TN_STATS'=>$lang['tn_stats'],
    178   'L_TN_NB_STATS'=>$lang['tn_stats_nb'],
    179   'L_TN_TOTAL'=>$lang['tn_stats_total'],
    180   'L_TN_MAX'=>$lang['tn_stats_max'],
    181   'L_TN_MIN'=>$lang['tn_stats_min'],
    182   'L_TN_AVERAGE'=>$lang['tn_stats_mean'],
    183   'L_ALL'=>$lang['tn_all'],
     164  'L_THUMBNAIL_TITLE'=>l10n('tn_dirs_title'),
     165  'L_UNLINK'=>l10n('tn_no_missing'),
     166  'L_MISSING_THUMBNAILS'=>l10n('tn_dirs_alone'),
     167  'L_RESULTS'=>l10n('tn_results_title'),
     168  'L_PATH'=>l10n('path'),
     169  'L_FILESIZE'=>l10n('filesize'),
     170  'L_GENERATED'=>l10n('tn_results_gen_time'),
     171  'L_THUMBNAIL'=>l10n('thumbnail'),
     172  'L_PARAMS'=>l10n('tn_params_title'),
     173  'L_GD'=>l10n('tn_params_GD'),
     174  'L_CREATE'=>l10n('tn_params_create'),
     175  'L_SUBMIT'=>l10n('submit'),
     176  'L_REMAINING'=>l10n('tn_alone_title'),
     177  'L_TN_STATS'=>l10n('tn_stats'),
     178  'L_TN_NB_STATS'=>l10n('tn_stats_nb'),
     179  'L_TN_TOTAL'=>l10n('tn_stats_total'),
     180  'L_TN_MAX'=>l10n('tn_stats_max'),
     181  'L_TN_MIN'=>l10n('tn_stats_min'),
     182  'L_TN_AVERAGE'=>l10n('tn_stats_mean'),
     183  'L_ALL'=>l10n('tn_all'),
    184184
    185185  'U_HELP' => PHPWG_ROOT_PATH.'popuphelp.php?page=thumbnail',
     
    255255  if (!ereg('^[0-9]{2,3}$', $_POST['width']) or $_POST['width'] < 10)
    256256  {
    257     array_push($page['errors'], $lang['tn_err_width'].' 10');
     257    array_push($page['errors'], l10n('tn_err_width').' 10');
    258258  }
    259259  if (!ereg('^[0-9]{2,3}$', $_POST['height']) or $_POST['height'] < 10)
    260260  {
    261     array_push($page['errors'], $lang['tn_err_height'].' 10');
     261    array_push($page['errors'], l10n('tn_err_height').' 10');
    262262  }
    263263 
Note: See TracChangeset for help on using the changeset viewer.