WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Polylang] default language doesn't work

[Plugin: Polylang] default language doesn't work

  • If you choose one language as default and ask the plugin not to display the language url for that one, when you try to go with the plugin widget doesn’t work.

    I fixed it putting my own widget for relinking to the different language urls; but now my second thought is that, when someone get directly connected to some foreign language, he will not be able to change to the default, because if he follows the link of the default language (without /language), he will go to his language (or the one that is set in his computer).

    Any solution? Thanks!

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Chouby
    Participant

    @chouby

    Could you please send a link so that I see what happens ?

    Here is my website: http://miesquinica.com/

    I disabled the widget and put my own links now, but as the domain should change depending on the configuration of the browser of the visitor… could happens that the spanish link (the default one) doesn’t work if they have the english or latvian browser.

    Plugin Author Chouby
    Participant

    @chouby

    When I go to your home page, I get the default one in Spanish (my browser preferences are set to French 1st and English as 2nd). Did you check the option “When the front page is visited, set the language according to the browser preference” ?

    If I then read a post in Spanish and want to get its translation in English (which exists), I am sent to the homepage in English. Is that the result you expect ?

    Could you precise what did not work with supplied widget ?

    I have able again the widget for you to see it and check it. Thanks!

    If you are in English and you change to Spanish it goes to 404.

    The widget change me too to the main page of the language, not to the linked article.

    And yes, it’s checked the “set the language according to the browser preference” option.

    Plugin Author Chouby
    Participant

    @chouby

    OK I see. You checked “Display as dropdown” in the widget options. In this case :
    * it is normal that it sends you to the homepage and not to the translated page. I did not implement the feature yet (and probably won’t in the near future). If you want to link to the translated page, you have to uncheck this option.

    * It is not normal that it sends you a 404 error for the default language. So here is a new bug. I will try to correct it in the v0.4.3 that I plan to release today or tomorrow.

    Oh! It was just that! Great 😀

    By the way, how can I configure the flags? Can I upload the .png that I already prepared for my temporal solution and use it with the widget? Thanks again!

    Plugin Author Chouby
    Participant

    @chouby

    Yes it should be possible by putting your flags in the local_flags directory. You will have to modify your css too as the outputed html is different from yours (I use html unordered list to display the languages).

    But do wait the v0.4.3 to do that as I know that your custom flags will be removed when upgrading (an other bug that should be removed in v0.4.3…)

    Ok, thanks Chouby. 😉

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Polylang] default language doesn't work’ is closed to new replies.