I have an HTML 5/PHP/MySQL website that is available in two languages, French and English. Currently, if you choose the language selector to go to another language, you end up on the Home page for that language.
I would like to change the action such that when you choose the language, you land on the identical page you were on, but in the new language. For example, if my menu items are:
If I am located at the "Contact Us" page, when I pick French from the language selector, then I would like to land on the French equivalent "Contactez nous"
Can anyone help me?
11-19-2012, 02:07 AM
Do you mind if I quote a few of your articles as long as I provide credit and sources back to your webpage? My phorum is in the exact same niche as yours and my visitors would truly benefit from a lot of the information you present here. Please let me know if this ok with you. Cheers! Wish you luck!
11-19-2012, 06:58 AM
I suspect that you have only one language selector in a php include file. If so, that is why they link to the same page. If so, you can either:
a) Pass a variable from each page to define the target of the language link. Or...
b) Embed separate language selector links in the respective web pages.
11-21-2012, 03:01 AM
Excellent read, I just passed this onto a colleague who was doing some research on that. And he just bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch!wishes you all the best