Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorials: Language Chooser

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,244
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 9, 2010

Allow users to choose between various language translations you have to offer, and have your web content quickly translated to their chosen language.

Visit the forum for help!
http://phpacademy.info/forum

Follow on Twitter!
http://twitter.com/phpacademy

  • likes, 4 dislikes

Link to this comment:

Share to:

Uploader Comments (phpacademy)

  • Why not just copy the HTML document and translate it to another languages and just make a link saying "English" or any other language

  • Because this doesn't work for dynamic content very well. This is much more organised and in the long run, easier to translate pages as the language files are seperate

  • Instead of using a separate file for every language, you could set up an advanced array system and just call out that variable. Very simple and more effective.

  • I'd class this as a beginner tutorial. Many many systems use this type of language selection which is why I chose to make it. By saying 'advanced array' you're already going into...advanced arrays!

  • Use google translate and translate your code for each page your done.

  • This won't work very well for dynamic content. You get much more control this way.

Top Comments

  • he uses XAMPP, which allows your computer to become a webserver, if you like.

see all

All Comments (39)

Sign In or Sign Up now to post a comment!
  • @pocak87 Yes , i sent you the messge from leg-technic.hu . I sent you an email which email you gave me .

  • @nhamza1988 Sorry, but I didn't get it. I tried agein, it works fine. You was on leg-technic.hu, the backround is big red lego bricks, you write neved=name e-mail cím=email address üzenet= message and after you pushed the Küldés button, you get a message in blue: A levelet elköldted ???? Sorry, but i won't write here my e-mail address :-( or you can try kapcsolat@leg-technic.hu

  • @pocak87 I sent you an email from your website .

    Thanks

  • @pocak87

    youtube Dosen't allow to write an link :-( so the address: google search leg-technic.hu the buttom of the page @ sing the kontakt page!!! and send me email

  • @nhamza1988

    Go there: send me an email, with your e-mail address, neved mean's Your name, email címed mean's your email, üzenet mean's your message, and the message must be minimum 100 character. So send Me an e-mail, and I send back a hole code to You, what mast work. Just I need your email address, and don't want to write here the email addres, cos anybady see here. So send me an e-mail!!!!

  • @pocak87 Yes , i tried but it doesn't work for me , i have to change everytime the language when i change the page on the site . I putted the same code that you shared .

  • @nhamza1988

    Yes, I treid, end it fine, and easy, just set a cookie, and every page-loading check it, is it setted or not. That's it. sorry for my bad english!!

    If You have any matter, just ask Me

  • @pocak87 Hi ,

    Is this code works for you with many pages ? .

    Thanks

  • Hi ,

    First of all great tutos .

    I wanted to know how can i save the language selected on a website if there are many pages .

    Thanks

  • @phpsaudi CALM DOWN SIR! CALM DOWN!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more