602 users online (0 members and 602 guests)  

  Results 1 to 2 of 2


  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

    Join Date
    Jul 2002

    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.


    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?


  2. #2
    QuietDean's Avatar

    Join Date
    Oct 2000
    Bournemouth, UK
    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