[TYPO3-dev] includeLLFile() - force language
Brian Bendtsen
nightowl at galnet.dk
Mon Sep 17 16:28:31 CEST 2007
Martin Kutschker skrev:
> 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
I know I use the language file for the BE but my extension is not a
backend extension, so no user is logged in.
My script is suppose to send information from a database table to a user
like this:
label1: value1
label2: value2
and so on.
/BB
More information about the TYPO3-dev
mailing list