lib.languagenavigation = COA
lib.languagenavigation {
    wrap = <input type="checkbox" id="languageNavigationTrigger"><nav id="languageNavigation" role="navigation">|</nav>

    10 = HMENU
    10 {
        special = language
        special.value = 0,1

        1 = TMENU
        1 {
            NO {
                doNotShowLink = 1
            }

            ACT = 1
            ACT.stdWrap.override = DE || EN
            ACT {
                allWrap = <label for="languageNavigationTrigger" id="languageNavigationLabel"><span>|</span></label>
                doNotLinkIt = 1
            }
        }
    }

    20 = HMENU
    20 {
        special = language
        special.value = 0,1

        1 = TMENU
        1 {
            wrap = <ul class="clearfix">|<li><a href="https://weytec.ru/" target="_blank" title="ru" data-language="ru">RU</a></li></ul>

            NO = 1
            NO.stdWrap.override = DE || EN
            NO {
                allWrap = <li>|</li>
                doNotLinkIt = 1
                stdWrap {
                    typolink {
                        parameter.data = page:uid
                        additionalParams = &L=0 || &L=1
                        addQueryString = 1
                        addQueryString.exclude = L,id,cHash,no_cache,gclid
                        addQueryString.method = GET
                        useCacheHash = 1
                        title = de || en
                        ATagParams = data-language="de" || data-language="en"
                    }
                }
            }

            ACT < .NO
            ACT {
                #allWrap = |
                #doNotLinkIt = 1
                #doNotShowLink = 1
                #stdWrap.typolink >
            }

            USERDEF1 < .NO
            USERDEF1 {
                #allWrap = <span class="hidden">|</span>
                doNotShowLink = 1
                doNotLinkIt = 1
            }
        }
    }
}

[request.getNormalizedParams().getHttpHost() == 'www.weytec.com' || request.getNormalizedParams().getHttpHost() == 'www.weytec.com.local']
    lib.languagenavigation.10.special.value = 1,0
    lib.languagenavigation.10.1.ACT.stdWrap.override = EN || DE
    lib.languagenavigation.20.special.value = 1,0
    lib.languagenavigation.20.1.NO.stdWrap.override = EN || DE
    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=1 || &L=0
    lib.languagenavigation.20.1.ACT < lib.languagenavigation.20.1.NO
[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.de' || request.getNormalizedParams().getHttpHost() == 'www.weytec.de.local']
#    lib.languagenavigation.10.special.value = 0,1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = DE || EN
#    lib.languagenavigation.20.special.value = 0,1
#    lib.languagenavigation.20.1.NO.stdWrap.override = DE || EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=0 || &L=1
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ch' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ch.local']
#    lib.languagenavigation.10.special.value = 0,1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = DE || EN
#    lib.languagenavigation.20.special.value = 0,1
#    lib.languagenavigation.20.1.NO.stdWrap.override = DE || EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=0 || &L=1
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.fr' || request.getNormalizedParams().getHttpHost() == 'www.weytec.fr.local']
#    lib.languagenavigation.10.special.value = 1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = EN
#    lib.languagenavigation.20.special.value = 1
#    lib.languagenavigation.20.1.NO.stdWrap.override = EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=1
#    lib.languagenavigation.20.1.ACT < lib.languagenavigation.20.1.NO
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.it' || request.getNormalizedParams().getHttpHost() == 'www.weytec.it.local']
#    lib.languagenavigation.10.special.value = 1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = EN
#    lib.languagenavigation.20.special.value = 1
#    lib.languagenavigation.20.1.NO.stdWrap.override = EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=1
#    lib.languagenavigation.20.1.ACT < lib.languagenavigation.20.1.NO
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ru' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ru.local']
#    lib.languagenavigation.10.special.value = 1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = EN
#    lib.languagenavigation.20.special.value = 1
#    lib.languagenavigation.20.1.NO.stdWrap.override = EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=1
#    lib.languagenavigation.20.1.ACT < lib.languagenavigation.20.1.NO
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.us' || request.getNormalizedParams().getHttpHost() == 'www.weytec.us.local']
#    lib.languagenavigation.10.special.value = 1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = EN
#    lib.languagenavigation.20.special.value = 1
#    lib.languagenavigation.20.1.NO.stdWrap.override = EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=1
#    lib.languagenavigation.20.1.ACT < lib.languagenavigation.20.1.NO
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk' || request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk.local']
#    lib.languagenavigation.10.special.value = 1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = EN
#    lib.languagenavigation.20.special.value = 1
#    lib.languagenavigation.20.1.NO.stdWrap.override = EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=1
#    lib.languagenavigation.20.1.ACT < lib.languagenavigation.20.1.NO
#[END]

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.asia' || request.getNormalizedParams().getHttpHost() == 'www.weytec.asia.local']
#    lib.languagenavigation.10.special.value = 1
#    lib.languagenavigation.10.1.ACT.stdWrap.override = EN
#    lib.languagenavigation.20.special.value = 1
#    lib.languagenavigation.20.1.NO.stdWrap.override = EN
#    lib.languagenavigation.20.1.NO.stdWrap.typolink.additionalParams = &L=1
#    lib.languagenavigation.20.1.ACT < lib.languagenavigation.20.1.NO
#[END]