Changeset 5285 for trunk/admin


Ignore:
Timestamp:
Mar 23, 2010, 2:26:41 PM (15 years ago)
Author:
plg
Message:

Make the admin/photos_add code easier to analyse for missing translation keys.

Location:
trunk/admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/photos_add.php

    r5182 r5285  
    5757    'pattern' => '/^\d+$/',
    5858    'can_be_null' => true,
    59     'error_message' => 'The websize maximum width must be a number between %d and %d',
     59    'error_message' => l10n('The websize maximum width must be a number between %d and %d'),
    6060    ),
    6161 
     
    6666    'pattern' => '/^\d+$/',
    6767    'can_be_null' => true,
    68     'error_message' => 'The websize maximum height must be a number between %d and %d',
     68    'error_message' => l10n('The websize maximum height must be a number between %d and %d'),
    6969    ),
    7070 
     
    7575    'pattern' => '/^\d+$/',
    7676    'can_be_null' => false,
    77     'error_message' => 'The websize image quality must be a number between %d and %d',
     77    'error_message' => l10n('The websize image quality must be a number between %d and %d'),
    7878    ),
    7979 
     
    8484    'pattern' => '/^\d+$/',
    8585    'can_be_null' => false,
    86     'error_message' => 'The thumbnail maximum width must be a number between %d and %d',
     86    'error_message' => l10n('The thumbnail maximum width must be a number between %d and %d'),
    8787    ),
    8888 
     
    9393    'pattern' => '/^\d+$/',
    9494    'can_be_null' => false,
    95     'error_message' => 'The thumbnail maximum height must be a number between %d and %d',
     95    'error_message' => l10n('The thumbnail maximum height must be a number between %d and %d'),
    9696    ),
    9797 
     
    102102    'pattern' => '/^\d+$/',
    103103    'can_be_null' => false,
    104     'error_message' => 'The thumbnail image quality must be a number between %d and %d',
     104    'error_message' => l10n('The thumbnail image quality must be a number between %d and %d'),
    105105    ),
    106106  );
     
    143143  array(
    144144    'code' => 'direct',
    145     'label' => 'Upload Photos',
     145    'label' => l10n('Upload Photos'),
    146146    ),
    147147  array(
    148148    'code' => 'settings',
    149     'label' => 'Settings',
     149    'label' => l10n('Settings'),
    150150    ),
    151151  array(
    152152    'code' => 'ploader',
    153     'label' => 'Piwigo Uploader',
     153    'label' => l10n('Piwigo Uploader'),
    154154    ),
    155155  array(
    156156    'code' => 'ftp',
    157     'label' => 'FTP + Synchronisation',
     157    'label' => l10n('FTP + Synchronization'),
    158158    ),
    159159  );
     
    178178  $tabsheet->add(
    179179    $tab['code'],
    180     l10n($tab['label']),
     180    $tab['label'],
    181181    PHOTOS_ADD_BASE_URL.'&section='.$tab['code']
    182182    );
  • trunk/admin/photos_add_settings.php

    r5089 r5285  
    105105          $page['errors'],
    106106          sprintf(
    107             l10n($upload_form_config[$field]['error_message']),
     107            $upload_form_config[$field]['error_message'],
    108108            $min,
    109109            $max
  • trunk/admin/themes/default/template/photos_add_ftp.tpl

    r5182 r5285  
    1 <div class="titrePage" style="height:25px">
     1<div class="titrePage">
    22  <h2>{'FTP + Synchronization'|@translate}</h2>
    33</div>
Note: See TracChangeset for help on using the changeset viewer.