[Typo3-dev] sys_language uid = 0 ?

Elmar Hinz elmar.hinz at vcd-berlin.de
Thu Aug 18 09:34:44 CEST 2005


Carsten Bleicker wrote:
> hi wolfgang,
> you are able to localize a default article if you don't define
> the default language?
> 
>>  
>>  Why?
>>  You shouldn't create a language record for your default language.
>>  It's that simple :-)
>>


Hi Carsten,

I think Wolfgang is right. Your default language doesn't get a 
sys_language_uid. It lives in table "pages", while other languages live 
in  "pages_language_overlay". Only in pages_language_overlay there is a 
field sys_language_uid. In "pages" isn't such a field. So you can't use 
a sys_language_uid there, not even a 0. (But defining a 0 doesn't do any 
harm.)

The price for not having a sys_language_uid for the default language is, 
that you don't get a nice flag for it in the BE-Edit Tool. It simply is 
the default language. But ghere is only one default so it needs no flag.

But what exactly do you mean with "localize"? I always thought that 
localization is done by setting locale_all to the appropriate locale.

Regards

Elmar


TYPOSCRIPT:

# setting up internationalization
config.linkVars = L
config.metaCharset = utf8

# default
config.language = de
config.locale_all = de_DE

# english
[globalVar = GP:L=1]
config.sys_language_uid = 1
config.language = en
config.locale_all = en_GB
[global]

# turkish
[globalVar = GP:L=2]
config.sys_language_uid = 2
config.language = tr
config.locale_all = tr_TR
[global]





















More information about the TYPO3-dev mailing list