corillo181 Posted July 3, 2007 Share Posted July 3, 2007 how do i make a website with different languages is there a web i can translate mypage or i have to hand make every word i want in another language? Link to comment https://forums.phpfreaks.com/topic/58217-solved-languages/ Share on other sites More sharing options...
skali Posted July 3, 2007 Share Posted July 3, 2007 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 More sharing options...
corillo181 Posted July 3, 2007 Author Share Posted July 3, 2007 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 More sharing options...
corillo181 Posted July 4, 2007 Author Share Posted July 4, 2007 no answer? any one use multi len? Link to comment https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-289920 Share on other sites More sharing options...
Yesideez Posted July 4, 2007 Share Posted July 4, 2007 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 More sharing options...
corillo181 Posted July 4, 2007 Author Share Posted July 4, 2007 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 More sharing options...
Yesideez Posted July 4, 2007 Share Posted July 4, 2007 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 More sharing options...
corillo181 Posted July 4, 2007 Author Share Posted July 4, 2007 alright thankx Link to comment https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-289930 Share on other sites More sharing options...
Yesideez Posted July 4, 2007 Share Posted July 4, 2007 Not sure which idea is best suited as I've never made a large site in more than one language - hope it all goes well. I'm off to watch a movie before I crash - adios Link to comment https://forums.phpfreaks.com/topic/58217-solved-languages/#findComment-289931 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.