[Typo3-dev] $this->pi_initPIflexForm() & language

David Worms open at abile.net
Mon Dec 20 23:48:20 CET 2004


I have a related issue with the pi_getFFvalue function. One of the  
great advantage in using it is the integrated internalisation that it  
is meant to provide. I have one extension using this function  
(abile_tickets) and I see many more (newloginbox, tt_news, ...).  
However, internationalisation doesn't seems to function at all. At  
least from what I can see. I must be missing something but after  
testing and then jumping into the source code of the function, I can't  
find any code looking for the frontend user language so we could  
retrieve another language than the default one. Of course, I notice the  
language argument but none of the plugins I listed earlier provides it.  
I guess the language argument is just here to force the function to  
return a value into another language than the one used by the frontend  
user.

The code of the pi_getFFvalue function is pretty straightforward:

/**
  * Return value from somewhere inside a FlexForm structure
  *
  * @paramarrayFlexForm data
  * @paramstringField name to extract. Can be given like  
"test/el/2/test/el/field_templateObject" where each part will dig a  
level deeper in the FlexForm data.
  * @paramstringSheet pointer, eg. "sDEF"
  * @paramstringLanguage pointer, eg. "lDEF"
  * @paramstringValue pointer, eg. "vDEF"
  * @returnstringThe content.
  */
function  
pi_getFFvalue($T3FlexForm_array,$fieldName,$sheet='sDEF',$lang='lDEF',$v 
alue='vDEF'){
     $sheetArray = $T3FlexForm_array['data'][$sheet][$lang];
     if (is_array($sheetArray)){
         return  
$this->pi_getFFvalueFromSheetArray($sheetArray,explode('/ 
',$fieldName),$value);
     }
}

Could someone give me some pointer?

David Worms
***************
06 76 88 72 13
http://abile.net
david at abile dot net





More information about the TYPO3-dev mailing list