Jump to content

How to make template have interchangeable languages?


YianniM

Recommended Posts

  • Members

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

Link to comment
Share on other sites

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! :)

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...