Transposh WordPress Translation
[resolved] [Plugin: Transposh - translation filter for wordpress] Language when there's no querystring (6 posts)

  1. WordPMTL
    Posted 4 years ago #

    Hi there. I noticed that if a user chooses a new language (French for example) but then opens the "naked" page (such as http://www.example.com) without the querystring (?lang=fr) the page returns to the default language. Is this a bug? I would prefer it remember the language but even when I choose to "set as default" it still doesn't remember.

    I tried setting up a system to force the querystring to appear always, but can't make it work either.

    Thank you.


  2. Ofer Wald
    Plugin Author

    Posted 4 years ago #


    If he made it default and will reopen the url again, he will be redirected once per session to the new url, other behaviors make less sense as the content will not be trusted (not the same content on the same url is not good) or the user will not be able to revert back to the original language

    Good luck

  3. WordPMTL
    Posted 4 years ago #

    Thank you for the reply, much appreciated. Could you please suggest for me the best way to manage this situation:

    - A user chooses French
    - On a given page there is a drop-down menu to "Browse products by price: low to high"
    - If the user chooses anything from this menu, the page is reloaded with the products re-sorted (normal behaviour)
    - PROBLEM: The page is now in English because the querystring (?lang=fr) is removed from the url.

    Perhaps this is a simple solution that I am not understanding!

    Thanks again for your time.

  4. Ofer Wald
    Plugin Author

    Posted 4 years ago #

    You should check the form or urls that create said link and add the missing param there, or you can use the rewrite method /fr/ which will work over similar issues many times

    Good luck again

  5. WordPMTL
    Posted 4 years ago #

    Thanks again for your time Ofer, I will try modifying the form as suggested. I had already tried using the /fr/ solution for links but that ended up causing even greater problems since no products showed up at all. Likely a problem related to how Transposh and my theme (Express Store) work together.

    I can't thank you enough for the help. Transposh is amazing and has really helped me with this project.

    Lastly, is it indeed normal behaviour for all "naked" links (no querystring) to revert to the default language? For example, now if a user chooses French and chooses to remember it, when they return to http://www.example.com, or to http://www.example.com/catalog, it is shown in English again (the default language).

    Thanks again.

  6. Ofer Wald
    Plugin Author

    Posted 4 years ago #

    Well, when he reopens his browser and go there, he will be redirected to the language he chose as default, btw: if his browser defaults to that language this also happens.

    Just try it (close your browser)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Transposh WordPress Translation
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic