cats/functions/translation.php

30 lines
1.2 KiB
PHP
Raw Normal View History

2013-01-19 18:38:58 +00:00
<?php
function getlang(){
if(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='DE'){
include_once ("lang/german.php");
} elseif(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='FR'){
include_once ("lang/french.php");
} elseif(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='NL'){
include_once ("lang/dutch.php");
} elseif(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='ES'){
include_once ("lang/spanish.php");
}
else{
include_once ("lang/english.php");
}
}
function switchlang(){
if(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='EN') include_once ("lang/english.php");
elseif(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='FR') include_once ("lang/french.php");
elseif(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='NL') include_once ("lang/dutch.php");
elseif(isset($_SESSION['profile']['language']) && $_SESSION['profile']['language']=='ES') include_once ("lang/spanish.php");
else include_once ("lang/german.php");
}
?>