[TYPO3-dev] Getting text from locallang.xml but not in current language

Steffen Kamper info at sk-typo3.de
Tue Jun 30 13:08:57 CEST 2009


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