[TYPO3-ect] translations with lib/div
Elmar Hinz
elmar07 at googlemail.com
Mon Jul 30 11:26:29 CEST 2007
>
> 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
It can access $this->controller->configurations like all lib objects. We
need to start there.
> like
>
$translator->setPathToLanguageFile($this->configurations->get('pathToLanguageFile')
$this->configurations->get('_LOCAL_LANG'));
CAVE! There are updates in the recent SVN versions, so that
pathToLanguageFile and pathToTemplateDirectory work analogue.
> 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.{
^^^ There is an invalid DOT.
> _LOCAL_LANG.default.title = neuer Titel
> }
>
> and this is not accessible with $this->configurations->get('_LOCAL_LANG');
Must be:
$this->configurations->get('_LOCAL_LANG.');
^^^^ There has to be a DOT!!!!
You should get an array:
$array['default.']['title'] = 'neuer Titel';
Did you clear the cache?
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list