[TYPO3] How can i get locallang label value in not current language in FE
Ivan Gomez Rodriguez
igomez at igalia.com
Tue Jan 8 12:23:31 CET 2008
Ivan Gomez Rodriguez wrote:
> Hi,
>
> I need to get value for a label in a language different from current
> lang. Are any way to do that?
>
> Thanks in advance,
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
I think best way to do that is :
require_once (PATH_typo3.'sysext/lang/lang.php');
$ALT_LANG = t3lib_div::makeInstance('language');
$ALT_LANG->init("en");
$ALT_LANG->includeLLFile('EXT:gl_usersadmin/mod1/locallang.xml');
Obviously, if you think a little : )
--
Iván Gómez Rodríguez
Computer Science Engineer
mailto:igomez at igalia.com
Igalia http://www.igalia.com
More information about the TYPO3-english
mailing list