baucauca Posted July 19, 2013 Report Posted July 19, 2013 Hi! I want to add a multi-language support to my phpvms. How I do it? This is my test site (http://www.fantaepicgamers.altervista.org/en) and I want to add a Welcome Page, before enter the site, where the users can choose the language. It's possible? Can you help me? Please, it's important for me!! Thank you! Quote
Sava Posted July 22, 2013 Report Posted July 22, 2013 You can just set a cookie for the user and select which skin it will load for them. Place this on the top of your local.config.php file under session_start() if(isset($_GET['lang']) && $_GET['lang'] != ''){ $_SESSION['lang'] = $_GET['lang']; define('CURRENT_SKIN',$_GET['lang']); } if(isset($_SESSION['lang']) && $_SESSION['lang'] != '') { define('CURRENT_SKIN',$_SESSION['lang']); } Then create multiple skins. You can call them whatever you want. Then make a link to yoursite.com/?lang=SkinName. 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.