Jump to content

###SOLVED###Change the skin language


Fernando

Recommended Posts

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?

Link to comment
Share on other sites

  • Members

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...