[TYPO3-ect] translations with lib/div

Steffen Kamper steffen at sk-typo3.de
Sat Jul 28 19:33:29 CEST 2007


"Franz Koch" <typo at fx.MINUS.graefix.DOT.de> schrieb im Newsbeitrag 
news:mailman.1.1185643415.23323.typo3-team-extension-coordination at lists.netfielders.de...
> Hi Steffen,
>
>> with lib/div it's easy to use lang vars like %%%label%%% in the view.
>>
>> Now my question is, how can i override these labels in TS ?
>> The common syntax was like
>> plugin._LOCAL_LANG.default.label = translation
>> but this method doesn't work.
>>
>> How does that works ?
>
> I suppose you already know - TS can only override labels that don't have a 
> dot in it. Example:
>
> --- works ----
> plugin._LOCAL_LANG.default.a_bit_longer_label = whatever
>
> --- works not ---
> plugin._LOCAL_LANG.default.a_bit.longer.label = whatever
> plugin._LOCAL_LANG.default.selectbox_name.0 = whatever
> --------------
>
> Just in case it's related to that ;)
>
> -- 
> Kind regards,
> Franz Koch

Hi Franz,

thx, i know that, because transforming to an array is made by 
explode('.',...)
btw - i found a tricky expression to make exceptions

plugin._LOCAL_LANG.default.a_bit.longer\.label = whatever

could be splitted by

preg_split('/(?<!\\)\.+/',...);but this is another story ;-)vg  Steffen 




More information about the TYPO3-team-extension-coordination mailing list