[TYPO3-dev] GLOBALS['LANG'] and MacOs
Toke Herkild
th at concare.net
Thu Nov 23 13:32:28 CET 2006
Hi,
Yes but why use the sL format, if we are going to split it any way, easier to just send a sl(sl-index)
The difference in the code is somthing like:
$llkey = explode(':' $TCA['label']);
T3lib_div::readLLfile($llkey[2], $GLOBALS['TSFE']->lang);
...->getLL($llkey[3]);
Or
$lang->sl($TCA['label']);
I tried to Use the GLOABAL $LANG which is a BE object.
Regards,
Toke
-----Oprindelig meddelelse-----
Fra: typo3-dev-bounces at lists.netfielders.de [mailto:typo3-dev-bounces at lists.netfielders.de] På vegne af Christian Trabold
Sendt: 23. november 2006 12:13
Til: typo3-dev at lists.netfielders.de
Emne: Re: [TYPO3-dev] GLOBALS['LANG'] and MacOs
> Ahh, now he is telling me...
> Could only find the pibase-pi_getLL and pi_loadLL, in the documentation, which did not help when you working with TCA's spanning more than one extension.
you may take a look at
t3lib_div::readLLfile($fileRef,$langKey)
This function returns the language labels of a given language file.
Thus you should be able to access labels from other extensions.
Greetings
Christian
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list