[TYPO3-english] Re: Re: Language dependent typoscript CONSTANTS
J. Peter M. Schuler
j.peter.m.schuler at icb.uni-due.de
Fri Feb 15 11:19:32 CET 2013
> so you can prevent the occurence of your constant-names by defining all
> your constants initially empty in a TS-template no editor got access and
> which is included at the beginning:
> constant.label1-default =
> constant.label1-de =
> constant.label1-nl =
> afterwards an editor may redefine these constants (or not)
> constant.label1-default = this is englisch text
> constant.label1-de = die ist deutscher text
> constant.label1-nl = ... (i don't speak dutch ;)
Yes exactly, but having this will force each subsites editor to enter all constants. If he doesn't enter a value for constant.label1-nl, it will show the "system-wide" value for constant.label1-nl ("empty") instead of his value for constant.label1-default ("this is englisch text").
So the fallback won't be "site-specific" anymore, but just "system-specific". Seems there is really no clean solution for providing such a label-l10n either the main code gets a bit messy, or with every new language every subsite has to enter their specific labels.
Tanks for looking into this!
More information about the TYPO3-english