|
# 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 = <span class="bold"><b>| </b></span>
|
|
|
|
10 = TEXT
|
|
// the english domain
|
|
10.value = domain-xyz.org
|
|
// note to add "www." in production environment
|
|
10.wrap = <a href="http://www.|/
|
|
//10.wrap = <a href="
|
|
|
|
20 = TEXT
|
|
20.typolink {
|
|
parameter.data = TSFE:id
|
|
returnLast = url
|
|
additionalParams = &L=0
|
|
addQueryString = 1
|
|
addQueryString.method = GET
|
|
// must be set, otherwise id parameter appears 2 times
|
|
addQueryString.exclude = id
|
|
}
|
|
|
|
30 = TEXT
|
|
30.value = English
|
|
30.wrap = ">|</a>
|
|
}
|
|
|
|
[globalString = _SERVER|HTTPS=on]
|
|
temp.menu.language.en = COA
|
|
temp.menu.language.en {
|
|
stdWrap.wrap = <span class="bold"><b>| </b></span>
|
|
|
|
10 = TEXT
|
|
// the english domain
|
|
10.value = domain-xyz.org
|
|
// note to add "www." in production environment
|
|
10.wrap = <a href="https://www.|/
|
|
//10.wrap = <a href="
|
|
|
|
20 = TEXT
|
|
20.typolink {
|
|
parameter.data = TSFE:id
|
|
returnLast = url
|
|
additionalParams = &L=0
|
|
addQueryString = 1
|
|
addQueryString.method = GET
|
|
// must be set, otherwise id parameter appears 2 times
|
|
addQueryString.exclude = id
|
|
}
|
|
|
|
30 = TEXT
|
|
30.value = English
|
|
30.wrap = ">|</a>
|
|
}
|
|
[end]
|
|
|
|
temp.menu.language.de < temp.menu.language.en
|
|
temp.menu.language.de {
|
|
20.typolink.additionalParams = &L=1
|
|
30.value = Deutsch
|
|
}
|
|
|
|
temp.menu.language.fr < temp.menu.language.en
|
|
temp.menu.language.fr {
|
|
20.typolink.additionalParams = &L=2
|
|
30.value = Français
|
|
}
|
|
|
|
temp.menu.language.pl < temp.menu.language.en
|
|
temp.menu.language.pl {
|
|
20.typolink.additionalParams = &L=3
|
|
30.value = Polski
|
|
}
|
|
|
|
temp.menu.language.ru < temp.menu.language.en
|
|
temp.menu.language.ru {
|
|
20.typolink.additionalParams = &L=4
|
|
30.value = русский
|
|
}
|
|
|
|
temp.menu.language.zh < temp.menu.language.en
|
|
temp.menu.language.zh {
|
|
20.typolink.additionalParams = &L=5
|
|
30.value = 中文 [中文]
|
|
}
|
|
|
|
// compile language menu
|
|
lib.menu.language = COA
|
|
lib.menu.language {
|
|
wrap = <span class="bold"> | </span>
|
|
|
|
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 = <span class="active">| </span>
|
|
}
|
|
[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 = <span class="active">| </span>
|
|
}
|
|
[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 = <span class="active">| </span>
|
|
}
|
|
[global]
|
|
|
|
[globalVar = GP:L = 2]
|
|
lib.menu.language.30 = TEXT
|
|
lib.menu.language.30 {
|
|
value = Français
|
|
stdWrap.wrap = <span class="active">| </span>
|
|
}
|
|
[global]
|
|
|
|
[globalVar = GP:L = 3]
|
|
lib.menu.language.40 = TEXT
|
|
lib.menu.language.40 {
|
|
value = Polski
|
|
stdWrap.wrap = <span class="active">| </ li>
|
|
}
|
|
[global]
|
|
|
|
[globalVar = GP:L = 4]
|
|
lib.menu.language.50 = TEXT
|
|
lib.menu.language.50 {
|
|
value = русский
|
|
stdWrap.wrap = <span class="active">| </ li>
|
|
}
|
|
[global]
|
|
|
|
[globalVar = GP:L = 5]
|
|
lib.menu.language.60 = TEXT
|
|
lib.menu.language.60 {
|
|
value = 中文 [中文]
|
|
stdWrap.wrap = <span class="active">|</ li>
|
|
}
|
|
[global]
|