www.webdeveloper.com
Results 1 to 2 of 2

Thread: Multi Lingual Website

  1. #1
    Join Date
    Nov 2012
    Posts
    3

    Multi Lingual Website

    Hi!

    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:

    Home

    Contact Us

    Trailers

    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?

    northernpenguin

  2. #2
    Join Date
    Mar 2012
    Posts
    1,206
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles