fullyloaded Posted May 21, 2007 Share Posted May 21, 2007 hi can anyone please help im trying to make my site a multi language site but dont no if it can or how to please please help!! here is the link to my site www.singlespleasures.com thanks ??? Quote Link to comment https://forums.phpfreaks.com/topic/52282-multi-language/ Share on other sites More sharing options...
MadTechie Posted May 21, 2007 Share Posted May 21, 2007 create a language file simple array $thewords = array( "UK" => array("colour" => "colour"), "USA" => array("colour" => "color"), ) then use a preg_replace on the output thats only one option Quote Link to comment https://forums.phpfreaks.com/topic/52282-multi-language/#findComment-257953 Share on other sites More sharing options...
rcorlew Posted May 21, 2007 Share Posted May 21, 2007 Are you using a db or different files for the different languages? If you are using a db with the text in different language, you could create multiple connection files for the db and then use a session stored variable to connect to the db in the preferred language. Quote Link to comment https://forums.phpfreaks.com/topic/52282-multi-language/#findComment-257960 Share on other sites More sharing options...
fullyloaded Posted May 21, 2007 Author Share Posted May 21, 2007 hi im trying to use this file as of now i don't have anything done im trying to find the easiest way i can to do this thanks german language file: <?php define('LAN_001','PHP-Multi-SprachcIndex'); define('LAN_002','Willkommen'); define('LAN_003','zu diesem Multisprachphpindex.'); define('LAN_004','Verursacht durch Deano Splamoni'); ?> Quote Link to comment https://forums.phpfreaks.com/topic/52282-multi-language/#findComment-258429 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.