[TYPO3-dev] language labels in eID not subsituted with	alternative language
    Bjoern Pedersen 
    pedersen at resi2.office.frm2
       
    Wed Dec  2 11:53:36 CET 2009
    
    
  
Henjo Hoeksma <hphoeksma at stylence.nl> writes:
> Hi list,
>
> I am new to the eID thing and have managed to have it working allmost
> completely to what I want it to do.
> One thing doesn't work for me though: language labels are not parsed
> when using an alternative language.
>
> The eID script is called using ajax (jQuery) and one of the parameters
> is the L variable.
>
You are only initalizing the default language (and even that one
incorrectly). You have to pass a 2-char languae identifier to $LANG->init.
>From the api docs(install t3dev to get convient links):
lang.php
Contains the TYPO3 Backend Language class
For detailed information about how localization is handled,
please refer to the 'Inside TYPO3' document which descibes this.
This class is normally instantiated as the global variable $LANG in typo3/template.php
It's only available in the backend and under certain circumstances in the frontend
Filesize: 	18.4 K
Func/Classes: 	13
Tags: 	@author Kasper Skaarhoj <kasperYYYY at typo3.com>
@package TYPO3
@subpackage core
@see typo3/template.php, template
class language
Contains the TYPO3 Backend Language class
For detailed information about how localization is handled,
please refer to the 'Inside TYPO3' document which descibes this.
This class is normally instantiated as the global variable $LANG in typo3/template.php
It's only available in the backend and under certain circumstances in the frontend
Returns: 	[type] 	...
  	@author Kasper Skaarhoj <kasperYYYY at typo3.com>
  	@package TYPO3
  	@subpackage core
  	@see typo3/template.php, template
function init($lang,$altPath='')
Initializes the backend language.
This is for example done in typo3/template.php with lines like these:
require (PATH_typo3.'sysext/lang/lang.php');
$LANG = t3lib_div::makeInstance('language');
$LANG->init($BE_USER->uc['lang']);
$lang 	string 	The language key (two character string from backend users profile)
$altPath='' 	string 	IGNORE. Not used.
Returns: 	void 	
    
    
More information about the TYPO3-dev
mailing list