# lang-definition2.txt # -------------------- # Sprache UID 0 -> English [globalString = IENV:HTTP_HOST = www.domain-xyz.org] config { sys_language_uid = 0 language = en locale_all = en_GB.UTF-8 baseURL = http://www.domain-xyz.org/ } [end] [globalString = _SERVER|HTTPS=on] AND [globalString = IENV:HTTP_HOST = www.domain-xyz.org] config { sys_language_uid = 0 language = en locale_all = en_GB.UTF-8 baseURL = https://www.domain-xyz.org/ } [end] # Standardsprache UID 0 -> English [globalVar = GP:L = 0] OR [globalString = IENV:HTTP_HOST = www.domain-xyz.org] config { sys_language_uid = 0 language = en locale_all = en_GB.UTF-8 } [end] # Sprache UID 1 -> Deutsch [globalVar = GP:L = 1] config { sys_language_uid = 1 language = de locale_all = de_DE.UTF-8 } [end] # Sprache UID 2 -> Français [globalVar = GP:L = 2] config { sys_language_uid = 2 language = fr locale_all = fr_CH.UTF-8 } [end] # Sprache UID 3 -> Polski [globalVar = GP:L = 3] config { sys_language_uid = 3 language = pl locale_all = pl_PL.UTF-8 } [end] # Sprache UID 4 -> русский [globalVar = GP:L = 4] config { sys_language_uid = 4 language = ru locale_all = ru_RU.UTF-8 } [end] # Sprache UID 5 -> 中文 [中文] [globalVar = GP:L = 5] config { sys_language_uid = 5 language = zh locale_all = zh_CN.UTF-8 } [end] # ------------------------------------------------------------------------------ # lang-switch-menu2.txt # --------------------- temp.menu.language.en = COA temp.menu.language.en { stdWrap.wrap = 10 = TEXT // the english domain 10.value = domain-xyz.org // note to add "www." in production environment 10.wrap = 10 = TEXT // the english domain 10.value = domain-xyz.org // note to add "www." in production environment 10.wrap = | 10 < temp.menu.language.en 20 < temp.menu.language.de 30 < temp.menu.language.fr 40 < temp.menu.language.pl 50 < temp.menu.language.ru 60 < temp.menu.language.zh } // set active state according to domain/L parameter // the active item won't be linked //[globalVar = GP:L = 0] [globalVar = GP:L =] AND [globalString = IENV:HTTP_HOST = www.domain-xyz.org] //[globalString = IENV:HTTP_HOST = www.domain-xyz.com] lib.menu.language.10 = TEXT lib.menu.language.10 { value = English stdWrap.wrap = } [global] [globalVar = GP:L = 0] //[globalVar = GP:L = 0] OR [globalString = IENV:HTTP_HOST = www.domain-xyz.org] //[globalString = IENV:HTTP_HOST = www.domain-xyz.com] lib.menu.language.10 = TEXT lib.menu.language.10 { value = English stdWrap.wrap = } [global] [globalVar = GP:L = 1] //[globalString = IENV:HTTP_HOST = www.domain-xyz.ch] lib.menu.language.20 = TEXT lib.menu.language.20 { value = Deutsch stdWrap.wrap = } [global] [globalVar = GP:L = 2] lib.menu.language.30 = TEXT lib.menu.language.30 { value = Français stdWrap.wrap = } [global] [globalVar = GP:L = 3] lib.menu.language.40 = TEXT lib.menu.language.40 { value = Polski stdWrap.wrap = } [global] [globalVar = GP:L = 4] lib.menu.language.50 = TEXT lib.menu.language.50 { value = русский stdWrap.wrap = } [global] [globalVar = GP:L = 5] lib.menu.language.60 = TEXT lib.menu.language.60 { value = 中文 [中文] stdWrap.wrap = | } [global]