[TYPO3-dev] _LOCAL_LANG TS is ignored [SOLVED]
Henjo Hoeksma
hphoeksma at stylence.nl
Thu Mar 26 15:01:56 CET 2009
On 2009-03-26 14:06:02 +0100, Henjo Hoeksma <hphoeksma at stylence.nl> said:
> Hi list,
>
> on one of my plugins the _LOCAL_LANG TS values are ignored.
>
> The init function I use is:
>
> <code>
> function init(){
> $this->lang = $GLOBALS['TSFE']->sys_language_uid;
> $this->conf = $conf;
> $this->pi_setPiVarDefaults();
> $this->pi_loadLL();
> $this->pi_initPIflexForm(); // Init and get the flexform data
> of the plugin
> $this->lConf = array(); // Setup our storage array...
> // Assign the flexform data to a local variable for easier access
> $piFlexForm = $this->cObj->data['pi_flexform'];
> // Traverse the entire array based on the language...
> // and assign each configuration option to $this->lConf array...
> foreach ( $piFlexForm['data'] as $sheet => $data ) {
> foreach ( $data as $lang => $value ) {
> foreach ( $value as $key => $val ) {
> $this->lConf[$key] =
> $this->pi_getFFvalue($piFlexForm, $key, $sheet);
> }
> }
> }
> }
> </code>
>
> Only the values from the locallang.xml are used.
> It seems I missed something obvious, but I have no clue.
>
> Thanks in advance for your thoughts.
>
> Henjo
Solved... Missed $conf in the function...
--
Stylence | webdevelopment in style
www.stylence.nl
More information about the TYPO3-dev
mailing list