[TYPO3-ect] translations with lib/div
Steffen Kamper
steffen at sk-typo3.de
Sat Jul 28 19:23:03 CEST 2007
"Elmar Hinz" <elmar07 at googlemail.com> schrieb im Newsbeitrag
news:mailman.1.1185629140.19874.typo3-team-extension-coordination at lists.netfielders.de...
>>
>> i investigate, maybe i find a solution to get it work.
>> btw i will look to the other _defaults as well (_DEFAULT_PI_VARS etc.)
>>
>> i wll file that on BT.
>>
>> vg Steffen
>
> Great. Thank you.
>
> Elmar
>
>
ok
normally the _LOCAL_LANG is read in pibase->pi_loadLL. This works easy,
because the conf of pibase is the conf of the plugin
($this->conf['_LOCAL_LANG'])
The translator doesn't have the conf of the plugin, so i tried something
like
$translator->setPathToLanguageFile($this->configurations->get('pathToLanguageFile'),$this->configurations->get('_LOCAL_LANG'));
The translator needs a var _LOCAL_LANG that has to be filled.
Later it's easy to make an array_merge.
But what i don't understand: I made an extension template on the page where
the bananas plugin is and in TS:
plugin.tx_bananas.configurations.{
_LOCAL_LANG.default.title = neuer Titel
}
and this is not accessible with $this->configurations->get('_LOCAL_LANG');
i tried will all params, but has no influence. Can you explain that to me ?
vg Steffen
:
More information about the TYPO3-team-extension-coordination
mailing list