Jump to content

[SOLVED] languages


corillo181

Recommended Posts

For that you will need to create multiple language files and store language specific words in these files. You will also need to replace all the inline english words with replacement variables from these language files.

 

For the translation:

You can use

http://babelfish.altavista.com

http://translate.google.com

Link to comment
https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-288673
Share on other sites

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
https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-288680
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
https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-289924
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
https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-289927
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
https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-289929
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.