[TYPO3-dam] Handling multi-language files with DAM

Karl-Ernst Kiel kekiel at kekiel.de
Mon Feb 26 18:16:04 CET 2007


Hi,

thanks for the hints!

I think using a "real" mm-table would make things complicated. But using 
this "comma-list-thing" could be nice here, especially since the values 
are stored as 2-character ISO codes. An entry would look like "EN,FR,DE" 
and it would be easy to fetch all german files using a simple query 
statement like "WHERE language LIKE '%DE%'" which would not be possible 
with id-numbers.

When indexing a file, the field is set to a single language by
$meta['fields']['language'] = $this->getMetaLanguage($meta);
(line 789, function indexFile in class tx_dam_indexing)
Which should be OK?! I suppose this getMetaLanguage (using textLang) 
will not be able to detect multiple languages in one file?!

So what about using this as a general setting in DAM 1.1 ?

in tca.php , 'language'-definition
[...]
   'size' => '5',
   'maxitems' => '20',
[...]

and in ext_tables.php
[...]
   # document language
   language varchar(100) DEFAULT '' NOT NULL,
[...]


Greetings,
Karl-E.


More information about the TYPO3-project-dam mailing list