Skip to content

Commit ef37197

Browse files
committed
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
1 parent 2b7e04f commit ef37197

File tree

7 files changed

+17
-0
lines changed

7 files changed

+17
-0
lines changed

install/tpl/config.inc.php.master

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ $conf["logo"] = 'themes/default/images/ispc_logo.png';
134134

135135
//** Default Language
136136
$conf["language"] = '{language}';
137+
$conf["debug_language"] = false;
137138

138139

139140
//** Misc.

interface/lib/app.inc.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ public function lng($text)
172172
}
173173
if(!empty($this->_wb[$text])) {
174174
$text = $this->_wb[$text];
175+
} else {
176+
if($this->_conf['debug_language']) {
177+
$text = '#'.$text.'#';
178+
}
175179
}
176180
return $text;
177181
}

interface/lib/config.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121

122122
//** Default Language
123123
$conf["language"] = 'en';
124+
$conf["debug_language"] = false;
124125

125126

126127
//** Misc.

interface/web/dns/lib/lang/en.lng

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@ $wb['Records'] = 'Records';
1515
$wb['DNS SRV'] = 'DNS SRV';
1616
$wb['DNS TXT Record'] = 'DNS TXT Record';
1717
$wb['DNS TXT'] = 'DNS TXT';
18+
$wb['DNS Wizard'] = 'DNS Wizard';
19+
$wb['Add DNS Zone'] = 'Add DNS Zone';
20+
$wb['Templates'] = 'Templates';
1821

1922
?>

interface/web/help/lib/lang/en.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ $wb['Message'] = 'Message';
44
$wb['Send message'] = 'Send message';
55
$wb['View messages'] = 'View messages';
66
$wb['Support'] = 'Support';
7+
$wb['About ISPConfig'] = 'About ISPConfig';
8+
$wb['Version'] = 'Version';
79

810
?>

interface/web/mail/lib/lang/en.lng

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@ $wb['Postfix Whitelist'] = 'Postfix Whitelist';
4545
$wb['Postfix Blacklist'] = 'Postfix Blacklist';
4646
$wb['Content Filter'] = 'Content Filter';
4747
$wb['Global Filters'] = 'Global Filters';
48+
$wb['Domain Alias'] = 'Domain Alias';
49+
$wb["Relay Recipients"] = 'Relay Recipients';
4850

4951
?>

interface/web/sites/lib/lang/en.lng

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,8 @@ $wb['Shell-User'] = 'Shell-User';
1515
$wb['Shell'] = 'Shell';
1616
$wb['Websites'] = 'Websites';
1717
$wb["Stats"] = 'Statistics';
18+
$wb["Cron"] = 'Cron';
19+
$wb["Cron Jobs"] = 'Cron Jobs';
20+
$wb["Statistics"] = 'Statistics';
21+
$wb["Web traffic"] = 'Web Traffic';
1822
?>

0 commit comments

Comments
 (0)