[TYPO3-english] Language dependent typoscript CONSTANTS

bernd wilke t3ng at bernd-wilke.net
Fri Feb 15 12:28:37 CET 2013


Am 15.02.2013 11:19, schrieb J. Peter M. Schuler:
> 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.
>
and what about some stdwrap?
override or ifempty?

temp.label1 {
  value = {$constant.label1-default}
  lang.de = {$constant.label1-default}
  lang.de.override = {$constant.label1-de}
  lang.nl = {$constant.label1-default}
  lang.de.override = {$constant.label1-nl}
}
(not tested)

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list