21 users online (0 members and 21 guests)  


  Results 1 to 2 of 2

Related

  1. aligning page contents    Forum: CSS Forum
    Replies: 4
  2. Replies: 4
  3. Passing variables from HTML page to page    Forum: HTML Forum
    Replies: 1
  4. Replies: 7
  5. Where do I write HTML    Forum: HTML Forum
    Replies: 4
  1. #1
    marcelomogi's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2002
    Location
    Brazil
    Posts
    2

    Smile How to write a HTML page that presents its contents according to the client language?

    I need to do a page that presents its contents according to the client language.

    Example:

    If the client´s language is Spanish, all the text of the page will be in Spanish, without alter the layout.

    If I have ten languages, will I need to do ten pages?

    Thanks!

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hello there, welocme to the forums.

    Very, very tricky question.

    The hardest bit is detecting the clients language. You can get scripts to do an ip lookup and have a good guess at the country using the country codes, thats about it. Otherwise, they just have to choose.

    You can avoid writing ten different pages in a few ways. One is to write/grab a script to use centralised 'lnaguage files' and only pick out the language you want. The other is to keep all the different texts in a database, called by a single page, and it will grab the correct language.

    Its a big job, you may want to search the web and see if something like this can be purchased.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread