cturner Posted December 22, 2007 Share Posted December 22, 2007 I am wondering if there is a script out there for displaying web page content into a foreign language, such as french? Or is there an easy way of programming it? I am going mental over this. I have been searching everywhere for a script but got nowhere. So I thought that maybe php freaks has the answer. It must be in php and mysql. Also how can I test it if my computer can only accept english? Can someone please help me work this out? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/82785-scripting-foreign-languages/ Share on other sites More sharing options...
Northern Flame Posted December 22, 2007 Share Posted December 22, 2007 well you can program the page in english and just have the page content be in a different language.... Quote Link to comment https://forums.phpfreaks.com/topic/82785-scripting-foreign-languages/#findComment-421019 Share on other sites More sharing options...
marcus Posted December 22, 2007 Share Posted December 22, 2007 You could do an assortment of arrays. <?php $lang = array( 'en' => array( 'title' => 'Your Page', 'content' => 'I Love Lemonade' ), 'fr' => array( 'title' => 'Title in French', 'content' => 'Lemonade I Love' ) ); $set_lang = "en"; echo "Title: " . $lang[$set_lang]['title'] . "<br>\n"; echo "Content: " . $lang[$set_lang]['content']; ?> Quote Link to comment https://forums.phpfreaks.com/topic/82785-scripting-foreign-languages/#findComment-421026 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.