Jump to content

php to translate website - total n00b


blashyrkh

Recommended Posts

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  ;D

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.

Link to comment
Share on other sites

thx for the link, i'll look into that, seems like an awful lot of new coding, hope it's got a logical build  :D

 

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"?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.