[TYPO3-dev] includeLLFile() - force language

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Sep 17 16:20:59 CEST 2007


Brian Bendtsen schrieb:
> Hi
> 
> Im using the function includeLLFile() in an extension like so:
> 
> $LANG = t3lib_div::makeInstance('language');
> $LANG->includeLLFile('EXT:indmeldelse/locallang_db.xml');
> 
> loop begin
> $LANG->getLL('tx_indmeldelse_medlem.'.$name)
> loop end
> 
> and the labels are found but not in the right language.
> 
> My language is set to danish but the english labels are used. Can I tell 
> this function to use the danish language?

The BE user's language:

$LANG->init($BE_USER->uc['lang']);

Masi




More information about the TYPO3-dev mailing list