[TYPO3-english] Changing default language in Templavoila

Jigal van Hemert jigal at xs4all.nl
Tue Aug 2 20:10:15 CEST 2011


On 2-8-2011 9:44, ktt wrote:
> How to change default language in Templavoila?
> I did changes in TS template -
> config.sys_language_uid = 1
> config.locale_all = en_GB.UTF-8
> config.language = en
> Previous was German L=0.
> But German still appears as main language in backend,
> and English being shown as localisation.
> In frontend everything works ok.

In TYPO3 the concept of localization is a bit complex. Records for 
various languages are technically speaking not equal.

Without extra localization all content is in the "default language", but 
it is not really connected to any language at all. You don't need to 
have a website language record to have content.
The content in the "default language" is connected to the non-existing 
sys_language_uid 0. You can set the name and flag for the "default 
language" in TSconfig, but other than that the system doesn't really 
know what language it is.

To translate content to new languages you have to make language records. 
The uids of these records can be found in your Typoscript configuration 
as config.sys_language_uid = x

In the database the situation is even more complex. For localized 
records there is a field to indicate which record is the 'original 
language record'. Also the content of the original language record at 
the time the translation was made is stored (to show the modifications 
of the original record).

Switching the default language in the BE requires messing around in the 
database and adjusting a lot of data. It's best to think hard what the 
default language should be before building a site.

Kind regards / met vriendelijke groet,

Jigal van Hemert.

More information about the TYPO3-english mailing list