[TYPO3-english] labels from local language file

Bjarne Helligsoe bjarnehelligsoe at hotmail.com
Fri Jun 19 10:13:27 CEST 2009


Hi,

It up running. The class that I am programmering is used for a rightclick 
menu in a FE tree, and after rewriting the "/typo3/init.php" file anything 
works.
But thanks for the response David.

Regards
Bjarne


"Bjarne Helligsoe" <bjarnehelligsoe at hotmail.com> wrote in message 
news:mailman.1.1245337162.14729.typo3-english at lists.netfielders.de...
> Hi,
>
> I am trying to use labels from lanuage file - and itsn't working!!!!
>
> ----------------------------------------------------
> $LANG = t3lib_div::makeInstance('language');
> $LANG-> 
> includeLLFile('EXT:bbhcmms/resources/private/language/locallang_clickmenu.xml');
> .
> .
> .
>
> class clickMenu {
> .
> .
> .
>
> function label($label) {
> return 
> $GLOBALS['LANG']->sL('LLL:EXT:bbhcmms/resources/private/language/locallang_clickmenu.xml:'.$label,1);
> }
>
> .
> .
> }
>
> ----------------------------------------------------
>
> When I am makig a label in my class by calling "label" it dosn't return 
> anything????
>
> Please help.
>
> Best regards
>
> Bjarne
>
> 




More information about the TYPO3-english mailing list