TYPO3: Language Detection Config

Das Plugin rlmp_language_detection erkennt die bevorzugte Sprache des Besuchers und leitet diesen auf die für in passende Sprachversion der Webseite um.

Durch diese Language Detection Config können Sie den TYPO3 besucher immer die Passende Sprachversion zur verfügung stellen, und wenn diese nicht verfügbar ist, dann konfiguriern Sie einfach eine Fallback Sprache zu die er umgeleitet werden soll.

Typoscript

#########################################
# Spracherkennung(s-Plugin) aktivieren
#########################################
plugin.tx_rlmplanguagedetection_pi1 {
  useOneTreeMethod = 1
  defaultLang = de

  languageAliases >
  languageAliases {
  # Sprache,Fallback
        aa = aa,en
        ab = ab,en
        af = af,en
        am = am,en
        ar = ar,en
        as = as,en
        at = at,de
        au = au,en
        ay = ay,en
        az = az,en
        ba = ba,en
        be = be,en
        bg = bg,en
        bh = bh,en
        bi = bi,en
        bn = bn,en
        bo = bo,en
        br = br,en
        ca = ca,en
        ch = ch,de
        co = co,en
        cs = cs,en
        cy = cy,en
        da = da,en
        de = de,en
        dz = dz,en
        el = el,en
        en = en
        eo = eo,en
        es = es,en
        et = et,en
        eu = eu,en
        fa = fa,en
        fi = fi,en
        fj = fj,en
        fo = fo,en
        fr = fr,en
        fy = fy,en
        ga = ga,en
        gd = gd,en
        gl = gl,en
        gn = gn,en
        gu = gu,en
        gv = gv,en
        ha = ha,en
        he = he,en
        hi = hi,en
        hr = hr,en
        hu = hu,en
        hy = hy,en
        ia = ia,en
        id = id,en
        ie = ie,en
        ik = ik,en
        is = is,en
        it = it,en
        iu = iu,en
        ja = ja,en
        ka = ka,en
        kk = kk,en
        kl = kl,en
        km = km,en
        kn = kn,en
        ko = ko,en
        ks = ks,en
        ku = ku,en
        ky = ky,en
        la = la,en
        li = li,en
        ln = ln,en
        lo = lo,en
        lt = lt,en
        lu = lu,en
        lv = lv,en
        mg = mg,en
        mi = mi,en
        mk = mk,en
        ml = ml,en
        mn = mn,en
        mo = mo,en
        mr = mr,en
        ms = ms,en
        mt = mt,en
        my = my,en
        na = na,en
        ne = ne,en
        nl = nl,de
        no = no,en
        nz = nz,en
        oc = oc,en
        om = om,en
        or = or,en
        pa = pa,en
        pl = pl,en
        ps = ps,en
        pt = pt,en
        qu = qu,en
        rm = rm,en
        rn = rn,en
        ro = ro,en
        ru = ru,en
        rw = rw,en
        sa = sa,en
        sd = sd,en
        sg = sg,en
        sh = sh,en
        si = si,en
        sk = sk,en
        sl = sl,en
        sm = sm,en
        sn = sn,en
        so = so,en
        sq = sq,en
        sr = sr,en
        ss = ss,en
        st = st,en
        su = su,en
        sv = sv,en
        sw = sw,en
        ta = ta,en
        te = te,en
        tg = tg,en
        th = th,en
        ti = ti,en
        tk = tk,en
        tl = tl,en
        tn = tn,en
        to = to,en
        tr = tr,en
        ts = ts,en
        tt = tt,en
        tw = tw,en
        ug = ug,en
        uk = uk,en
        ur = ur,en
        uz = uz,en
        vi = vi,en
        vo = vo,en
        wo = wo,en
        xh = xh,en
        yi = yi,en
        yo = yo,en
        zh = zh,en
        zu = zu,en
  }

  dontBreakIfLanguageIsAlreadySelected = 1
  dontBreakIfLanguageAlreadySelected = 1

  countryCodeToLanguageCode {
        us = en
        gb = en
  }
}
################
### SPRACHEN ###
################
[globalVar = GP:L = 0]
  # DE - Spracherkennung deaktivieren
  plugin.tx_rlmplanguagedetection_pi1 >
[global]


[globalVar = GP:L = 1]
  # EN - Spracherkennung deaktivieren
  plugin.tx_rlmplanguagedetection_pi1 >
[global]