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
    Jan
    Jan is offline
    Regular Coder
    Join Date
    Jul 2002
    Location
    Finland
    Posts
    204
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question http://www.domain.com/?page=home&lang=eng

    Hey all!

    Okay, so I'm really a NEWBIE in the PHP coding stuff, so I would really appreciate you all if you could help me. Well, I'm making a website that will be available in three different languages, and therefor I'd wish someone could explain to me how I could do it, using this model: http://www.domain.com/?page=home&lang=eng.

    Is it hard to make? Will I save time if I make the website in PHP, regardning the three different languages? Thankies!


    ~Jan

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    All depends on what you're using for each language, whether it's just fields in a database, templates, txt files, etc, but you get the language by using
    PHP Code:
    if($_GET[lang] == "eng"){
      
    // do whatever to get english results
    }
    elseif(
    $_GET[lang] == "fra"){
      
    // do whatever to get french results



  •  

    Posting Permissions

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