diff options
author | Simon Rettberg | 2014-09-02 18:46:24 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-09-02 18:46:24 +0200 |
commit | 32f22e10ff63a555e5b80207dc524390aa4bc6c1 (patch) | |
tree | 702a01c3ba1dc2a5ca6ebc4a7810005a8c76a16f /index.php | |
parent | [Render] Show untranslated tags in rendered output (diff) | |
download | slx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.tar.gz slx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.tar.xz slx-admin-32f22e10ff63a555e5b80207dc524390aa4bc6c1.zip |
[i18n] Language handling is now completely dynamic, no more hardcoded de,en,pt
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -117,11 +117,13 @@ Page::preprocess(); //$menu = new Menu; if (User::getName() === false) { Render::addTemplate('main-menu-login', array( - 'url' => urlencode($_SERVER['REQUEST_URI']) + 'url' => urlencode($_SERVER['REQUEST_URI']), + 'langs' => Dictionary::getLanguages(true) )); } else { Render::addTemplate('main-menu-logout', array( 'url' => urlencode($_SERVER['REQUEST_URI']), + 'langs' => Dictionary::getLanguages(true), 'user' => User::getName() )); } |