How can i give a facility of multiple languages in my site
Multi Language Site
Collapse
X
-
Tags: None
-
Originally posted by Shalini BhallaHow can i give a facility of multiple languages in my site
first set the session of language.$_SESS ION["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 -
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 ?Comment
-
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 AgarwalComment
Comment