Ignore:
Timestamp:
Jun 27, 2014, 9:54:47 AM (10 years ago)
Author:
Youp3
Message:

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.