[TYPO3] Chinese localization issues

Michael Cannon michael at cannonbose.com
Fri Jun 13 17:21:28 CEST 2008


Thanks to Vincent and Andreas for their ideas.

This was the magic key "config.sys_language_overlay = 1".

It's so cool to see http://www.cannonbose.cn/typo3-support.html
finally working. Now on to content translation.


Final TypoScript constants
--
config.baseURL = http://www.cannonbose.com/

[globalString = _SERVER|HTTPS=on]
# SSL is for cannonbose.com
config.baseURL = http://www.cannonbose.com/

[globalString = HTTP_HOST= *cannonbose.cn]
	config.baseURL = http://www.cannonbose.cn/
[end]



Final TypoScript setup
--
config {
       linkVars = L
       uniqueLinkVars = L
       sys_language_mode = content_fallback
       sys_language_overlay = 1
       sys_language_softMergeIfNotBlank = tt_content:image, tt_content:header

       language = en
       sys_language_uid = 0
       locale_all = en_US
       htmlTag_langKey = en
}

[globalVar = GP:L = 1]
       config.language = fr
       config.sys_language_uid = 1
       config.locale_all = fr_FR
       config.htmlTag_langKey = fr

[globalVar = GP:L = 2] || [globalString = HTTP_HOST= *cannonbose.cn]
       config.sys_language_uid = 2
       config.language = cn
       config.locale_all = zh_CN
       config.htmlTag_langKey = zh
       config.baseURL = http://www.cannonbose.cn/
[global]

-- 
Michael Cannon
President of Cannonbose, LLC
+1 (800) 559-9773 | +1 (603) 559-9773 | Fax : +1 (802) 609-2776


More information about the TYPO3-english mailing list