![]() |
| ||
| Multiple languages site? hello all.. Tel me how to create a site with different languages, if user select particular language, then all the content will be displayed in that language... How to do it??? or Any predefined free software available on the internet... Any resources or information would be appreciated.... Thanks.. Shanti. |
| ||
| Re: Multiple languages site? I would normally just create a PHP file of definitions... name it after the language and include the correct file... that way your code will never have to change and it's kept simple... i guess the only problem would be including variables... but depending on the type of site you have it may or not be a problem if you needed variables within your output text I would then consider setting up a languages table in a database setup something like ref | lang | output then make a function called display() that would be called like echo display('welcome');which would be defined likefunction display($ref, $var1)and welcome in the db would look like ref | lang | output welcome | en | Hi $var1, how the hell are you this code is scribbled and i wouldn't use it, just to give you a rough idea. |
| All times are GMT -4. The time now is 6:34 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC