blashyrkh Posted July 10, 2007 Share Posted July 10, 2007 Hey i'm a total n00b in the php/mysql world and i need some help. I would like to create a website containing two languages, my dream is to make it as simple as possible to switch between the two languages (ex. by clicking a national flag on the current page), and i've heard that php/mysql could be used for this. My second dream is to learn php and mysql off course Without any knowledge to the subject i would guess that you put two text files, one with each language, into a mysql database (somehow) and make the php on my website extract the data when the appropriate flag i selected (again... somehow). My question is how to do this? I don't know what i'm searching for, and when google'ing i get several hundred thousand hits on php and mysql, so it's like looking for a needle in a haystack. Where do i put the translations? my webhotel supports mysql and php, but do i need to install something to run mysql? how does php extract the needed info? an so forth... I need a push in the right direction. Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 10, 2007 Share Posted July 10, 2007 long talk if i discuss it to you read this here are the basic you need http://w3schools.com/php/php_mysql_intro.asp Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 11, 2007 Share Posted July 11, 2007 To really make it "universal" you would need to have language packets on your end that could handle the translation, then you would need to have all your text be stored in a database (flat file or mysql) so it can be put through a translator Quote Link to comment Share on other sites More sharing options...
blashyrkh Posted July 11, 2007 Author Share Posted July 11, 2007 thx for the link, i'll look into that, seems like an awful lot of new coding, hope it's got a logical build i thought of that translating-program thing, but i've decided to do it myselg (or get someone to to it), cuz i've seen how poorly programs like babelfish translate some sentences, but if you have a program you can recommend i'd like to give it a try. what do you mean by "flat file"? Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Share Posted July 11, 2007 If the website is small then you can create the pages separately in each language. If it's a large site then you could be looking at cooldude's method although you'll also have to learn about character encoding as not all "special" characters are available in all fonts. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.