[TYPO3-dev] pi_loadLL() is not able to merge TS-LLLvalues with "." in it

Franz Koch typo3 at fx-graefix.de
Wed Apr 5 13:31:45 CEST 2006


Hi,

I just stumbeled over it when I tryed to override the labels of a 
extensions dropdown field with TS:plugins.ext._LOCAL_LANG.

Seems to be related to the TS parser that splits values with "." into an 
array. But that should be disabled for _LOCAL_LANG if possible.

Testcase:
=====================================================================
it is impossible to override labels like these defined inside a 
locallang.php/xml


--- locallang.php ---------------------------------------------------
'default' => array (
	'salutation.0' => 'please select',
	'salutation.1' => 'The one and only',
	'salutation.2' => 'Darth',
	'salutation.3' => 'just kidding'
),
--------------------------------------------------------------------

--- TS that doesn't work as expected -------------------------------
plugin.tx_extkey_pi0._LOCAL_LANG.default {
	salutation.0 =
	salutation.1 = Mr.
	salutation.2 = Mrs.
	salutation.3 = something in between
}
--------------------------------------------------------------------

but labels like these are default setup for the kickstarter and spread 
everywhere. A solution could be to implement a loop inside pi_loadLL() 
that flatenes the label if it is returned as array. Currently there is 
only a if-clause that checks if the label is an array and only procedes 
if is not.

If you also think this is a bug that shoulc be fixed I could work on it 
and provide a patch.
-- 
Kind regards,
Franz Koch




More information about the TYPO3-dev mailing list