Getting the current language

dev.xiligroup est en travaux Forums xili-language plugin Getting the current language

Ce sujet contient 0 réponses et 2 voix, et a été mis à jour par  Anonyme il y a Il y a 12 ans, 1 mois.

Visualisation du message 7 (1 sur 7, 7 au total)
  • Auteur
    Articles
  • #3095

    Anonyme

    as documented here:

    http://wordpress.org/extend/plugins/xili-language/

    this table summarizes all template tags and functions available in XL

    https://dev.xiligroup.com/?p=1432

    the_curlang() is probably the function you expect !

    #3096

    Anonyme

    I have two languages installed: en_us and tr_tr but the_curlang() function always returns tr_tr even if the language of the page I’m visiting is set to en_us.

    #3097

    Anonyme

    is it the homepage ? or a singular (page or single) ? where is the function ?

    #3098

    Anonyme

    I just tried it on a non-frontpage page and it works. But on frontpage it doesn’t work.

    #3099

    Anonyme

    Ignore this post :)

    #3100

    Anonyme

    Sorry for the spam but I accidentally wrote on my last post that I fixed it when in fact I didn’t (I edited that post). So my problem with front page continues. That function works on every page except the front page.

    #3101

    Anonyme

    what are the settings in xl ? do you have force that the frontpage will be in the language of the visitor browser ?

Visualisation du message 7 (1 sur 7, 7 au total)

Vous devez être connecté pour répondre à ce sujet.