forked from itchy/Dialyse-Webseite
Add multilingual support (DE default, EN under /en/)
This commit is contained in:
1 parent
01ea3bd07a
commit
1e33c525f1
21 files changed
+855
-443
No files matched your search
@@ -6,8 +6,12 @@ require_once __DIR__ . '/lib/Session.php';
|
||||
|
||||
$session = new Session();
|
||||
|
||||
$lang = (isset($_GET['lang']) && $_GET['lang'] === 'en') ? 'en' : 'de';
|
||||
Helper::setLang($lang);
|
||||
$session->set('lang', $lang);
|
||||
|
||||
$loadFile = function($filename) {
|
||||
global $config, $session;
|
||||
global $config, $session, $lang;
|
||||
|
||||
ob_start();
|
||||
include $filename;
|
||||
|
||||
Reference in new issue
Block a user