[TYPO3-dev] Getting text from locallang.xml but not in current language
Loek Hilgersom
hilgersom at xs4all.nl
Tue Jun 30 13:33:36 CEST 2009
Hi Steffen,
Too bad, it doesn't work. Processing of the function stalls at the point where I
try to set $GLOBALS['TSFE']->lang = 'fr';
Thank you for the fast response.
Loek
Steffen Kamper wrote:
> Hi,
>
> Loek Hilgersom schrieb:
>> Hi,
>>
>> I need to get some pieces of text from a locallang.xml in a plugin (or
>> in typoscript, that would also do), but not in the language which is
>> currently selected. I need this to send email to fe_users in their own
>> language, not in the language of the current visitor.
>>
>> Function getLL or getLLL, and the TS 'LLL:' only return the current
>> language. Is there a simple solution for that?
>>
>
> i'm not sure but you could try:
> $lang = $GLOBALS['TSFE']->lang;
> $GLOBALS['TSFE']->lang = 'fr';
> $label = $GLOBALS['TSFE']->getLLL($labelKey);
> $GLOBALS['TSFE']->lang = $lang;
>
> vg Steffen
More information about the TYPO3-dev
mailing list