Commit ef371978 authored by tbrehm's avatar tbrehm
Browse files

Added a option to debug the language files (show strings that are not...

Added a option to debug the language files (show strings that are not contained in the lang file surrounded by #....#)
Fixed: FS#1063 - Missing language variables in shell user options 
parent 2b7e04ff
......@@ -134,6 +134,7 @@ $conf["logo"] = 'themes/default/images/ispc_logo.png';
//** Default Language
$conf["language"] = '{language}';
$conf["debug_language"] = false;
//** Misc.
......
......@@ -172,6 +172,10 @@ class app {
}
if(!empty($this->_wb[$text])) {
$text = $this->_wb[$text];
} else {
if($this->_conf['debug_language']) {
$text = '#'.$text.'#';
}
}
return $text;
}
......
......@@ -121,6 +121,7 @@ $conf["logo"] = 'themes/default/images/ispc_logo.png';
//** Default Language
$conf["language"] = 'en';
$conf["debug_language"] = false;
//** Misc.
......
......@@ -15,5 +15,8 @@ $wb['Records'] = 'Records';
$wb['DNS SRV'] = 'DNS SRV';
$wb['DNS TXT Record'] = 'DNS TXT Record';
$wb['DNS TXT'] = 'DNS TXT';
$wb['DNS Wizard'] = 'DNS Wizard';
$wb['Add DNS Zone'] = 'Add DNS Zone';
$wb['Templates'] = 'Templates';
?>
\ No newline at end of file
......@@ -4,5 +4,7 @@ $wb['Message'] = 'Message';
$wb['Send message'] = 'Send message';
$wb['View messages'] = 'View messages';
$wb['Support'] = 'Support';
$wb['About ISPConfig'] = 'About ISPConfig';
$wb['Version'] = 'Version';
?>
......@@ -45,5 +45,7 @@ $wb['Postfix Whitelist'] = 'Postfix Whitelist';
$wb['Postfix Blacklist'] = 'Postfix Blacklist';
$wb['Content Filter'] = 'Content Filter';
$wb['Global Filters'] = 'Global Filters';
$wb['Domain Alias'] = 'Domain Alias';
$wb["Relay Recipients"] = 'Relay Recipients';
?>
\ No newline at end of file
......@@ -15,4 +15,8 @@ $wb['Shell-User'] = 'Shell-User';
$wb['Shell'] = 'Shell';
$wb['Websites'] = 'Websites';
$wb["Stats"] = 'Statistics';
$wb["Cron"] = 'Cron';
$wb["Cron Jobs"] = 'Cron Jobs';
$wb["Statistics"] = 'Statistics';
$wb["Web traffic"] = 'Web Traffic';
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment