SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    May 2011
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Page in different languages

    Hi there,

    I have a website able to be displayed in two different languages (English and Spanish). The user can change the language selecting a button.
    Currently what I do is to load a different webpage depending which language is selected, it is, one with text in English and another one with text in Spanish.

    Is it possible to have only one webpage containing the text in these two languages and display what is requested according to which language the user selects?

    Thanks a lot!!

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,603
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    There are several ways to do this.

    The quick-and-dirty approach is to use google's translate plugin to your site: https://translate.google.com/manager/website/

    If you provide your own mufti-lingual content, how you display it will depend upon the capabilities of the platform you are using. That said, are you using a CMS for your content?
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Addict
    Join Date
    May 2011
    Posts
    242
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hi Force,

    My website is very simple. I have HTML pages with text in different languages, one webpage per language (page_spanish.html, page_english.html ...), so one is default and then if the user select the other language button, just load the other webpage.
    What I'd like to have is one webpage with all text in both languages, and show according to the selected one, instead or loading another page.

    Thanks a lot!!


Bookmarks

Posting Permissions

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