Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Multi Language Site

Question posted by: Shalini Bhalla (Familiar Sight) on January 29th, 2008 06:14 AM
How can i give a facility of multiple languages in my site
sandeepsandeep's Avatar
sandeepsandeep
Member
44 Posts
January 29th, 2008
02:56 PM
#2

Re: Multi Language Site
Quote:
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

Reply
Shalini Bhalla's Avatar
Shalini Bhalla
Familiar Sight
139 Posts
January 30th, 2008
06:44 AM
#3

Re: Multi Language Site
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 ?

Reply
sandeepsandeep's Avatar
sandeepsandeep
Member
44 Posts
January 30th, 2008
08:30 AM
#4

Re: Multi Language Site
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

Reply
Reply
Not the answer you were looking for? Post your question . . .
190,062 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Software Development Forum Contributors