Jump to content

[SOLVED] languages


corillo181

Recommended Posts

this wont be a problem for me, i am fluent in spanish. but can you give me a example of what i would have to do? is it a script that search for all the words in the page or for any words i need to put the translationg next to it such as

 

 

let's say the navagation.

 

 

echo($_cookie['len']!='spanish')? "home music gallery and more":"inicio music fotos y mas";

Link to comment
Share on other sites

My first language is English although I know a little Norwegian as well.

 

It's not as simple as converting one word to another as you'd have to take into account the "rules" of languages.

 

For example, when to use "a", "an", "the" and many more.

 

There's also when some words in other languages translate into one.

 

For example, "the cat" in Norwegian is "katten"

Link to comment
Share on other sites

yeah I'm fluent in Spanish and english, the website I'm making is mostly going to be use by Spanish, but Spanish people that are here in the use are more comfortable reading English so i want to make it so they choose between English and Spanish..

 

which would be the best way to do this.

Link to comment
Share on other sites

I think the best way would be to store the text in two tables:

 

lang_english

lang_espanol

 

Depending on what language is chosen, store that in a session/cookie and pull the text from the database. The only time I made a multi-lingual site was by creating deparate pages for everything in each language (5 of them) but that was only a very basic site.

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.