tbrehm
2010-02-10 ef3719783d6ec416ddad2e8a9151f5f430efc4b2
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
7 files modified
17 ■■■■■ changed files
install/tpl/config.inc.php.master 1 ●●●● patch | view | raw | blame | history
interface/lib/app.inc.php 4 ●●●● patch | view | raw | blame | history
interface/lib/config.inc.php 1 ●●●● patch | view | raw | blame | history
interface/web/dns/lib/lang/en.lng 3 ●●●●● patch | view | raw | blame | history
interface/web/help/lib/lang/en.lng 2 ●●●●● patch | view | raw | blame | history
interface/web/mail/lib/lang/en.lng 2 ●●●●● patch | view | raw | blame | history
interface/web/sites/lib/lang/en.lng 4 ●●●● patch | view | raw | blame | history
install/tpl/config.inc.php.master
@@ -134,6 +134,7 @@
//** Default Language
$conf["language"] = '{language}';
$conf["debug_language"] = false;
//** Misc.
interface/lib/app.inc.php
@@ -172,6 +172,10 @@
        }        
        if(!empty($this->_wb[$text])) {
            $text = $this->_wb[$text];
        } else {
            if($this->_conf['debug_language']) {
                $text = '#'.$text.'#';
            }
        }
        return $text;
    }
interface/lib/config.inc.php
@@ -121,6 +121,7 @@
//** Default Language
$conf["language"] = 'en';
$conf["debug_language"] = false;
//** Misc.
interface/web/dns/lib/lang/en.lng
@@ -15,5 +15,8 @@
$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';
?>
interface/web/help/lib/lang/en.lng
@@ -4,5 +4,7 @@
$wb['Send message'] = 'Send message';
$wb['View messages'] = 'View messages';
$wb['Support'] = 'Support';
$wb['About ISPConfig'] = 'About ISPConfig';
$wb['Version'] = 'Version';
?>
interface/web/mail/lib/lang/en.lng
@@ -45,5 +45,7 @@
$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';
?>
interface/web/sites/lib/lang/en.lng
@@ -15,4 +15,8 @@
$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';
?>