[TYPO3-english] labels from local language file

David Bruchmann typo3-en at bruchmann-web.de
Thu Jun 18 17:31:10 CEST 2009


----- Ursprüngliche Nachricht -----
Von:        Bjarne Helligsoe <bjarnehelligsoe at hotmail.com>
Gesendet:   Donnerstag, 18. Juni 2009 16:59:21
An:         typo3-english at lists.netfielders.de
CC:
Betreff:    [TYPO3-english]  labels from local language file
> 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
> 


First Step: Debug $LANG
Look if $LANG is loaded correctly (with your lang-file)

Second Step:
Debug $label
Look if $label is the same as expected in the lang-file

Regards
David




More information about the TYPO3-english mailing list