[TYPO3-dev] GLOBALS['LANG'] and MacOs
Toke Herkild
th at concare.net
Mon Nov 27 12:11:00 CET 2006
Hi Trabold,
That is what I did once I found/got the documentation for it.
Regarding the $TCA it is only a matter of loading the tca you need and it's there, why should I recreate that array when it can be fetched ?
I believe that is the reason for loadTCA($table).
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: 24. november 2006 12:03
Til: typo3-dev at lists.netfielders.de
Emne: Re: [TYPO3-dev] GLOBALS['LANG'] and MacOs
Hi Toke,
Hi Martin,
Hint 1: The following approach will not work, because $TCA is not fully accessible in FE:
$GLOBALS['TSFE']->sL($TCA['pages']['columns']['title']['label'])
Hint 2: If you want to get all language labels of an extension, this example could help out:
$extLL = $GLOBALS['TSFE']->readLLfile(t3lib_extMgm::extPath('lang')
.'locallang_tca.xml')
$GLOBALS['TSFE']->getLLL('title', $extLL);
Hint 3: You do NOT have to call t3lib_div::readLLfile() by your own -
use the global objects provided by TYPO3.
Thanks Martin for pointing to TSFE-sL()! ;-)
- Use "$LANG->sL()" or "$LANG->getLL" to get language labels in BE (as
described in "Inside TYPO3" [1]).
Right?
Greetings
Christian
[1]
http://typo3.org/documentation/document-library/core-documentation/doc_core_inside/current/view/3/8/#id2806984
_______________________________________________
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