If you like the video, share it with your friends on these social sites:

 

Title: PHP Tutorials: Language Chooser

Added: Feb 9, 2010

Author: phpacademy

Duration: 19:9

Description:
It is advisable you watch the new version of this tutorial at http://www.youtube.com/playlist?list=PLCFF320F5B22B11ABOfficial websitehttp://phpacademy.orgSupport Forumhttp://phpacademy.org/forumFollow us on Twitter!http://twitter.com/phpacademy

Related Videos:

Videos related to 'PHP Tutorials: Language Chooser'

Channel: Education

Tags: php  tutorial  tutorials  learn  script  scripts  help  teach  learning  video  css  html  xhtml  java  javascript  visual  basic  ajax  oop  phpbb  language  chooser  choose  switcher  switch  lang 



php  tutorial  tutorials  learn  script  scripts  help  teach  learning  video  css  html  xhtml  java  javascript  visual  basic  ajax  oop  phpbb  language  chooser  choose  switcher  switch  lang 

Youtube Comments: 42

CrazyMongols Says:

May 14, 2010 - This can be done much faster, you can use an if statement :P.

modernclics Says:

Jul 3, 2010 - I love this videos, just one suggestion: for avoiding the switch/case at the end you can simply use something like:include('lang/'.$lang.'.php');Cheers.

OnsheilaGo1 Says:

Nov 21, 2010 - please help me on how to create language chooser in multiple web pages.

sepudincrew Says:

Mar 10, 2011 - this tutorial is usefull..but can i know how to translate to others language for real?can someone help me?thanks in advance

GrigorHovhannisyan Says:

Mar 29, 2011 - SELECTED doesn't work in HTML, because the proper way is selected="selected".

mhamlet1 Says:

Apr 9, 2011 - In HTML - SELECTED, in XHTML - selected="selected".

Acceptable76 Says:

Apr 12, 2011 - What about a TRANSLATOR. I've been trying to work on one such as (If $variable == "hello" echo "hallo"; etc) but you can't add other words BEFORE that. So it's just a single-worded translator. And that sucks. How can I do this?

pestinha26 Says:

Jul 11, 2011 - hello from portugal =)i'm trying to build a multi language script where i have 2 links; the "index.php" and the "2page.php" but i'm cannot make it work. when i click on one of the 2 links, the language selection goes back to the originalhelp?thanks =)

alvizz Says:

Aug 27, 2011 - Awesome, this really helped me. Do you have any tutorial on how to use language chooser if you have more than one page? I want to use this for a site, not just one text page.

dust103194 Says:

Oct 8, 2011 - how can i do it where if the player wants to have it translated to portugal then they choose that and it translates every single word to portugal not just 1 word or line.

phpsaudi Says:

Dec 15, 2011 - hello

pocak87 Says:

Jan 3, 2012 - Hi, Everyone!It's also a good tut, but I'm thinking about, when somebudy select a language, it also set a cookie. First it's checked is cookie isset, else get the basic language, or the selected language. In this way, if the website has more pages, they get always the selected language, and if they come back, it's selected the last language. let's see:if(isset($_POST['lang'])){//select languagesetcookie('lang')=$_POST['lang'];}if(isset($_COOKIE['lang'])){//select language}

fruitman89 Says:

Feb 6, 2012 - CALM DOWN SIR! CALM DOWN!

nhamza1988 Says:

Feb 10, 2012 - 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 

nhamza1988 Says:

Feb 12, 2012 - Hi , Is this code works for you with many pages ? .Thanks

pocak87 Says:

Feb 12, 2012 - 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

nhamza1988 Says:

Feb 12, 2012 - 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 .

pocak87 Says:

Feb 13, 2012 - 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 Says:

Feb 13, 2012 - @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 Says:

Feb 13, 2012 - I sent you an email from your website . Thanks

pocak87 Says:

Feb 13, 2012 - @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

nhamza1988 Says:

Feb 13, 2012 - Yes , i sent you the messge from leg-technic.hu . I sent you an email which email you gave me .

MrRussLucky Says:

May 6, 2012 - Great tutorial!Thank you!!!I have one question,this php function change language just in one page,when I go in another page the language remaining same?How can I make to leave the same language that I chosen before?

MrYourMedia Says:

May 28, 2012 - how can I inor error like Notice: Undefined index: lang in C:\***.php$lang = $_POST['lang'];

MrYourMedia Says:

May 28, 2012 - I know I can use if/else

Shopping | prank calls | Wholesale products | english movies | prank calls | proxy | links | prank call

Topfacebookvideos funny arabic videos

Privacy Policy