• Hi,

    First of all, thanks for your great plugin !!!

    I just have a problem because of my work on the customization of my template. I added some stuff (buttons, etc…)on the index.php file in french that i can’t translate with the plugin. The solution would be to set an english index version for the index of the english language but how can i do this ?

    Thanks a lot for your help 🙂

    http://wordpress.org/extend/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    You can use ‘if’ statements to test the current language. There are several functions which return the current language.

    WP functions (not dependent on Polylang):
    * get_locale() returns something like ‘en_US’ with an underscore
    * get_bloginfo('language') returns something like ‘en-US’ with a dash

    There is also a polylang function:
    * pll_current_language() returns ‘en’
    * pll_current_language('locale') returns ‘en_US’
    * pll_current_language('name') returns ‘English’

Viewing 1 replies (of 1 total)
  • The topic ‘Polylang – Different index for english version’ is closed to new replies.