Changeset 28815


Ignore:
Timestamp:
06/27/14 09:54:47 (5 years ago)
Author:
Youp3
Message:

Advanced Meta Data : prise en compte de la modification l10n / translate + sprintf

Location:
extensions/AMetaData
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMetaData/amd_aip.class.inc.php

    r16007 r28815  
    688688      $datas['nfoMetadata']['nfoSize']=sprintf('%.2fMio', $datas['nfoMetadata']['nfoSize']/1048576); 
    689689    } 
    690     $datas['nfoMetadata']['nfoSizeAndRows']=sprintf(l10n('g003_sizeAndRows'), $datas['nfoMetadata']['nfoSize'], $datas['nfoMetadata']['nfoRows']); 
    691     $datas['nfoMetadata']['numOfPictures']=sprintf(l10n('g003_numberOfAnalyzedPictures'), $datas['nfoMetadata']['numOfPictures']); 
    692     $datas['nfoMetadata']['numOfNotAnalyzedPictures']=sprintf(l10n('g003_numberOfNotAnalyzedPictures'), $datas['nfoMetadata']['numOfNotAnalyzedPictures']); 
    693     $datas['nfoMetadata']['numOfPicturesWithoutTag']=sprintf(l10n('g003_numberOfPicturesWithoutTags'), $datas['nfoMetadata']['numOfPicturesWithoutTag']); 
     690    $datas['nfoMetadata']['nfoSizeAndRows']=l10n('g003_sizeAndRows', $datas['nfoMetadata']['nfoSize'], $datas['nfoMetadata']['nfoRows']); 
     691    $datas['nfoMetadata']['numOfPictures']=l10n('g003_numberOfAnalyzedPictures', $datas['nfoMetadata']['numOfPictures']); 
     692    $datas['nfoMetadata']['numOfNotAnalyzedPictures']=l10n('g003_numberOfNotAnalyzedPictures', $datas['nfoMetadata']['numOfNotAnalyzedPictures']); 
     693    $datas['nfoMetadata']['numOfPicturesWithoutTag']=l10n('g003_numberOfPicturesWithoutTags', $datas['nfoMetadata']['numOfPicturesWithoutTag']); 
    694694 
    695695    $template->assign("datas", $datas); 
     
    765765      'urlRequest' => $this->getAdminLink('ajax'), 
    766766      'NumberOfItemsPerRequest' => $this->config['amd_NumberOfItemsPerRequest'], 
    767       'caddieNbPictures' => ($caddieNbPictures==1)?l10n('g003_1_picture_in_caddie'):sprintf(l10n('g003_n_pictures_in_caddie'), $caddieNbPictures) 
     767      'caddieNbPictures' => ($caddieNbPictures==1)?l10n('g003_1_picture_in_caddie'):l10n('g003_n_pictures_in_caddie', $caddieNbPictures) 
    768768    ); 
    769769 
  • extensions/AMetaData/amd_aip_release.class.inc.php

    r16465 r28815  
    5151 
    5252    $template->assign('plugin', $pluginInfo); 
    53     $template->assign('AMD_BODY_PAGE', '<p class="warnings">'.sprintf(l10n('g003_gpc_not_up_to_date'),AMD_GPC_NEEDED, GPC_VERSION).'</p>'); 
     53    $template->assign('AMD_BODY_PAGE', '<p class="warnings">'.l10n('g003_gpc_not_up_to_date',AMD_GPC_NEEDED, GPC_VERSION).'</p>'); 
    5454    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); 
    5555  } 
  • extensions/AMetaData/maintain.inc.php

    r10302 r28815  
    4848function gpcMsgError(&$errors) 
    4949{ 
    50   $msg=sprintf(l10n('To install this plugin, you need to install Grum Plugin Classes %s before'), AMD_GPC_NEEDED); 
     50  $msg=l10n('To install this plugin, you need to install Grum Plugin Classes %s before', AMD_GPC_NEEDED); 
    5151  if(is_array($errors)) 
    5252  { 
Note: See TracChangeset for help on using the changeset viewer.