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 ??? 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 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. 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'); ?> Link to comment https://forums.phpfreaks.com/topic/52282-multi-language/#findComment-258429 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.