Ignore:
Timestamp:
03/21/10 19:20:07 (10 years ago)
Author:
grum
Message:

Fix some bug, enhance some functionnalities, and make plugin ready to be translated

File:
1 edited

Legend:

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

    r5191 r5226  
    5454  `name` varchar(200) NOT NULL default '', 
    5555  `numOfImg` int(10) unsigned NOT NULL default '0', 
     56  `translatedName` varchar(200) NOT NULL default '', 
    5657  PRIMARY KEY  (`numId`), 
    5758  KEY `by_tag` (`tagId`) 
     
    6061  `imageId` mediumint(8) unsigned NOT NULL default '0', 
    6162  `numId` int(10) unsigned NOT NULL default '0', 
    62   `value` varchar(255) default NULL, 
     63  `value` text default NULL, 
    6364  PRIMARY KEY  USING BTREE (`imageId`,`numId`) 
    6465);", 
     
    127128    { 
    128129      global $template, $user; 
    129  
     130      L10n::setLanguage('en_UK'); 
    130131 
    131132      pwg_query("DELETE FROM ".$this->tables['used_tags']); 
     
    141142      foreach(JpegMetaData::getTagList(Array('filter' => JpegMetaData::TAGFILTER_IMPLEMENTED, 'xmp' => true, 'maker' => true, 'iptc' => true)) as $key => $val) 
    142143      { 
    143         $sql="INSERT INTO ".$this->tables['used_tags']." VALUES('', '".$key."', '".(($val['translatable'])?'y':'n')."', '".$val['name']."', 0);"; 
     144        $sql="INSERT INTO ".$this->tables['used_tags']." VALUES('', '".$key."', '".(($val['translatable'])?'y':'n')."', '".$val['name']."', 0, '".L10n::get($val['name'])."');"; 
    144145        pwg_query($sql); 
    145146      } 
Note: See TracChangeset for help on using the changeset viewer.