We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0799f83 commit e75e35bCopy full SHA for e75e35b
interface/web/nav.php
@@ -56,6 +56,8 @@
56
if(is_file($mt.'/lib/module.conf.php')) {
57
if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.');
58
include_once($mt.'/lib/module.conf.php');
59
+ $language = (isset($_SESSION['s']['user']['language']))?$_SESSION['s']['user']['language']:$conf['language'];
60
+ $app->load_language_file('web/'.$mt.'/lib/'.$language.'.lng');
61
$active = ($module['name'] == $_SESSION['s']['module']['name']) ? 1 : 0;
62
$topnav[] = array( 'title' => $app->lng($module['title']),
63
'active' => $active,
0 commit comments