Determine the user/country language spoken and diplay accordingly

2 replies
  • WEB DESIGN
  • |
Greetings,

Is it possible to display a text in different languages (fr, ru, nl) depending on the browser data (may be).

This is what is my requirement,

I will have a fixed page (url) which will display a text. Now if a user check the same page from France the same text should be displayed in french. The page will not change (or url will not change) but only the text will change to country specific language (fetched from a xml may be)

Your kind inputs will be much appriciated. Thank you for your time.

Javascript + HTML +CSS will be better as I do not have knowledge on .php or .aspx . I'm a beginner in JavaScript and have fair bit of knowledge in XHTML and CSS.

Regards
#determine #diplay #language #spoken #user or country
  • Profile picture of the author Gareth kensett
    There are a few ways that you can do this.

    1. using php and acquiring text from a database depending on what language you need.

    2 Ceate multiple sites in the diffrent languages you need (in the same url) and let the visitor select the languages.

    3 or the easiest one. to use the google api. It will only take seconds to fit this

    google.com/webelements/#!/translate
    {{ DiscussionBoard.errors[4075922].message }}
  • Profile picture of the author ussher
    DON'T force the user to look at the page because of what you think they want. Let them decide what language they want it in.

    Im in Tokyo. I want my webpages in english. Even google gets it wrong. If i go to blogspot.com they force me to look at the page in japanese.

    Myspace, same thing.

    That makes 2 sites that i definitely wont be using.

    --edit--
    The solution is to ASK them and set that in a cookie. They only need to answer once and then its set for every consecutive time they come back.
    Signature

    "Jamroom is a Profile Centric CMS system suitable as a development framework for building entire communities. Highly modular in concept. Suitable for enterprise level development teams or solo freelancers."

    - jamroom.net
    Download Jamroom free: Download
    {{ DiscussionBoard.errors[4077264].message }}

Trending Topics