Getting the current language

dev.xiligroup is being renovated Forums xili-language plugin Getting the current language

This topic contains 0 replies, has 2 voices, and was last updated by  Anonymous 12 years, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3095

    Anonymous

    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

    Anonymous

    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

    Anonymous

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

    #3098

    Anonymous

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

    #3099

    Anonymous

    Ignore this post :)

    #3100

    Anonymous

    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

    Anonymous

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

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.