[TYPO3-ect] MVC: Language object

Michael Scharkow mscharkow at gmx.net
Tue Mar 28 17:22:55 CEST 2006


Elmar Hinz wrote:
> Hello typoniks,
> 
> pi_base has a built in feature to overwrite and extend language
> settings from typoscript with user defined settings like:
> 
> plugin.tx_supermax._LOCAL_LANC.de{
>    greeting = Guten Tag
> }
> What about the MVC and user defined language settings?

We definitely need to keep and extend it, but preferable outside the 
controller in a dedicated class that is automatically included then. No 
reason to put this in the controller.

Extending this locallang class is necessary for more convenience and 
tightness in the code. At the moment, all locallang files are local to 
the pi_X class they are used in, however in a lot of circumstances you 
want to share LL labels across plugins, etc.

Which means that some more magic is needed in this area, so that 
translations are also fetched from

1. Global localisation files (from the T3 lang packs)
2. Extension locallang files
3. Controller locallang files
4. TS overrides.

Plus, we need to find a way to use labels as simply as possible in view 
templates.

Greetings,
Michael



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