RedBolt Posted April 23, 2012 Share Posted April 23, 2012 Hi Everyone I have a problem where i do not know how to link flags on my website to the languag packs i have put in my public_html/language??? I do not know if i need to write a code in header or what to do so that the flag apears on the website and is linket to the language pack. To be clear i want 3 flags to apear on the top right of my webbsite, and when you press one of te flags, the webbsite should become in that language. Ive spent days trieing to figger this out i hope someone kind enough can help me. ///RedBold Quote Link to comment https://forums.phpfreaks.com/topic/261461-linking-flag-to-language-pack/ Share on other sites More sharing options...
MMDE Posted April 23, 2012 Share Posted April 23, 2012 I see you've posted this on other boards. I think you will have to give us some code to work on. What exactly does it look like now? Quote Link to comment https://forums.phpfreaks.com/topic/261461-linking-flag-to-language-pack/#findComment-1339804 Share on other sites More sharing options...
xyph Posted April 23, 2012 Share Posted April 23, 2012 There are a few ways to do this. Use a translator, like Google Translate API. Most of these will be premium services, and the accuracy probably won't be great. Using a PEAR package - http://devzone.zend.com/1438/adding-multi-language-support-to-web-applications-with-php-and-pear/ Translate manually - http://www.bitrepository.com/php-how-to-add-multi-language-support-to-a-website.html The last solution would be the one I'd follow. Quote Link to comment https://forums.phpfreaks.com/topic/261461-linking-flag-to-language-pack/#findComment-1339806 Share on other sites More sharing options...
RedBolt Posted April 23, 2012 Author Share Posted April 23, 2012 I see you've posted this on other boards. I think you will have to give us some code to work on. What exactly does it look like now? Okej, is it the header file code i should show you or? Quote Link to comment https://forums.phpfreaks.com/topic/261461-linking-flag-to-language-pack/#findComment-1339892 Share on other sites More sharing options...
RedBolt Posted April 23, 2012 Author Share Posted April 23, 2012 Yes ive allredy translated the english language pack to the other languages i want. But now i dont know how to put flags on the webbsite with the different languages. Quote Link to comment https://forums.phpfreaks.com/topic/261461-linking-flag-to-language-pack/#findComment-1339893 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.