2016-12-20, 00:18:59
(This post was last modified: 2016-12-20, 00:26:07 by cobber.
Edit Reason: change heading
)
Finally decided to create a solution. Maybe this will help others who experience the same problem.
PHP
-----
if(isset($_GET['setlang'])){
$language = htmlentities($_GET['setlang']);
$_SESSION["lang"] = $language;
}
switch($_SESSION["lang"]){
case 'en':
$home = "Home";
break;
case 'po':
$home = "Dom";
break;
case 'ro':
$home = "Acasă";
break;
}
PHP
-----
if(isset($_GET['setlang'])){
$language = htmlentities($_GET['setlang']);
$_SESSION["lang"] = $language;
}
switch($_SESSION["lang"]){
case 'en':
$home = "Home";
break;
case 'po':
$home = "Dom";
break;
case 'ro':
$home = "Acasă";
break;
}