[TYPO3-english] Changing default language in Templavoila
Jigal van Hemert
jigal at xs4all.nl
Wed Aug 3 21:08:24 CEST 2011
Hi,
On 3-8-2011 17:31, Stephan Schuler wrote:
> Imagine you have a default language and two translation languages A
> content element "1" is a default one, the content elements "2" is its
> German translation, the content element "3" its Italian translation.
> Switching default and German language would require
> * Switch 2 to be default language (easy to reach)
> * Make 2 forget being translation of 1 (easy, too)
> * Switch 1 to be German translation (easy)
> * Make 1 being translation of 2 (not so easy)
> * Make 3 being translation of 2, too (not so easy, too)
To increase the fun:
If translations are bound to follow the default language it is very well
possible that some content elements are "missing" in the translated
content. The default content will then be rendered. What if you switch
the translated content with the default content? Then there is a content
element missing in the default language which is there in the translated
content. Because of the content binding the default content is 'leading'
and this element will not show up in either language.
The same goes for overlay modes. If there are fields set in
config.sys_language_softMergeIfNotBlank, the content of those fields
from the original data will be displayed in the empty fields of the
translated elements (e.g. images). Switch content and you're in trouble.
Another one? There are several fields which also have localization
specific settings. l10n_mode set to mergeIfNotBlank in the TCA will also
show the content of the default language if the field in the translation
is left empty.
A language switching tool would need to take all these things (and more)
into account. Enjoy! ;-)
--
Kind regards / met vriendelijke groet,
Jigal van Hemert.
More information about the TYPO3-english
mailing list