Fernando Posted January 12, 2015 Report Share Posted January 12, 2015 I have a little problem, I have 2 identical skins, one in the Portuguese language "and another in" English " On my server is as follows lib / skins / pt (to Portuguese) lib / skins / en (to Inglês) The link to change the language of the page is below: www.mysite.com/?template=en But when I click does not change. Anyone have any ideas? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted January 12, 2015 Members Report Share Posted January 12, 2015 Just to confirm you need to follow theese steps Step 1 in local.config.php you need to add the above code at the top <?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']); } ?> <?php Step 2 2 language folders in skins folder named by your language Step 3 Link to www.mysite.com/index.php/?template=languagefoldername Quote Link to comment Share on other sites More sharing options...
Fernando Posted January 13, 2015 Author Report Share Posted January 13, 2015 Thank you!!! Solved with your help. Quote Link to comment 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.