YianniM Posted October 30, 2013 Report Posted October 30, 2013 Hello! I'm not sure if this question has been asked before, but how do I make my template be interchangeable between 2 languages (I want to do mine English and Spanish)? Please let me know ASAP. Thanks! Yianni Quote
Members Vangelis Posted October 30, 2013 Members Report Posted October 30, 2013 ASAP reply is comming 1st step ) In local.config.php above the first line <?php paste this <?php session_start(); if(isset($_GET['template']) && $_GET['template'] != ''){ $_SESSION['template'] = $_GET['template']; define('CURRENT_SKIN',$_GET['template']); } if(isset($_SESSION['template']) && $_SESSION['template'] != '') { define('CURRENT_SKIN',$_SESSION['template']); } ?> 2ond step Copy your template to a new folder for example if your template is called "Template" make a folder "Templateen" 3rd step Translate the files in the 2ond folder that you have made 4th step point your links to each language that you want with a link http://www.yourwebsite.com/index.php/profile/?template=Template for spanish and http://www.yourwebsite.com/index.php/profile/?template=TemplateEn For english If you have any questions just tell us Quote
benboy123 Posted October 30, 2013 Report Posted October 30, 2013 What do you mean by pointing links to each language? Can you tell a bit more detailed? Want my page in english and norwegian Thanks in advanse! Regards, Quote
Members Vangelis Posted October 30, 2013 Members Report Posted October 30, 2013 for example you have 2 flags 1 english and 1 norwegian the english will link to http://www.yourwebsite.com/index.php/profile/?template=TemplateEn and the norwegian to http://www.yourwebsite.com/index.php/profile/?template=TemplateNorway Quote
YianniM Posted October 31, 2013 Author Report Posted October 31, 2013 ASAP reply is comming 1st step ) In local.config.php above the first line <?php paste this <?php session_start(); if(isset($_GET['template']) && $_GET['template'] != ''){ $_SESSION['template'] = $_GET['template']; define('CURRENT_SKIN',$_GET['template']); } if(isset($_SESSION['template']) && $_SESSION['template'] != '') { define('CURRENT_SKIN',$_SESSION['template']); } ?> 2ond step Copy your template to a new folder for example if your template is called "Template" make a folder "Templateen" 3rd step Translate the files in the 2ond folder that you have made 4th step point your links to each language that you want with a link http://www.yourwebsi...mplate=Template for spanish and http://www.yourwebsi...late=TemplateEn For english If you have any questions just tell us for example you have 2 flags 1 english and 1 norwegian the english will link to http://www.yourwebsi...late=TemplateEn and the norwegian to http://www.yourwebsi...=TemplateNorway Thank you so much Vangelis! Quote
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.