Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    5
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question switching languages on a website

    i'm just curious as to the different ways to have multiple languages on a website.
    basically, i'd like a new site to have 2 different languages and the only way i know how to do it would be....

    have the two flags on the opening page
    user chooses their flag or language
    then THAT website is called up.

    meaning that i'd have to have a different page for each language.
    english...
    www.sitename.com/en/mainpage.html
    and
    swedish...
    www.sitename.com/sw/mainpage.html

    but that seems like a bit of pain or...?



    is there another way to do it so that ALL text in the site is linked to a language file? so if the user chooses language#1 then that file with all the appropriate tages would be used....then same for language#2 and so on.

    u follow me?

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,378
    Thanks
    8
    Thanked 1,075 Times in 1,066 Posts
    I guess the main idea would be to use one template with various text files for content.
    Those text files would be different languages. If you have images with words on them,
    that would require you to have different templates ... so your idea would be OK to use.

    As far as remembering the language, you could use a selector link (or graphics) and remember
    the setting by using cookies. I don't trust IP country locators ... they may get close, but that
    doesn't mean the person speaks that language.

    I guess it really depends on how much content and how many pages?
    If you're using a CMS like WordPress or Joomla ... that would make a difference too.


  •  

    Posting Permissions

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