By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

Multi Language Site

100+
P: 190
How can i give a facility of multiple languages in my site
Jan 29 '08 #1
Share this Question
Share on Google+
3 Replies


P: 50
How can i give a facility of multiple languages in my site

first set the session of language.$_SESSION["lan"]="en';
change the language type must be first set session variable of language....


make one language file and set the variable of each form element,page name,header everythinhg in a variable.at the time of making the page call the varaible insteed of element name.

Example- language cong file
if($_SESSION["lan"] == "en"){
//set the variable
$fName="First Name';
$lName="Last name";
}
else if($_SESSION["lan"] == "cn")
{

//set the variable
$fName="';//Filled by language expert
$lName="";
}
}


when u used the first name use the $fname tag so when u change language so it will take the value config file

Regards,
Sandeep Agarwal
Jan 29 '08 #2

100+
P: 190
Can you be more clearer ?

Actually i have a site and i want that like google gaget , i want to ceonvert it in indic languages when ever i visit and want to change language ?

Is it possible using any service of google ?

if yes then which one ?
Jan 30 '08 #3

P: 50
Hi,

Google gives the indices that u can conver the indian language http://www.google.com/transliterate/indic/

but i think not given any API to used in your sites. May be i am wrong but if u find out any thing about indices them plx tell me because i would be like to used this.

Thanks,
Sandeep Agarwal
Jan 30 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.