Commit 17b3010e authored by Evan Goldenberg's avatar Evan Goldenberg
Browse files

use language strings for spam trap names (bug #557873)


Signed-off-by: default avatarEvan Goldenberg <evangoldenberg@gmail.com>
parent fab9968f
......@@ -597,4 +597,10 @@ $string['installed'] = 'Installed';
$string['errors'] = 'Errors';
$string['install'] = 'Install';
$string['reinstall'] = 'Reinstall';
// spam trap names
$string['None'] = 'None';
$string['Simple'] = 'Simple';
$string['Advanced'] = 'Advanced';
?>
......@@ -54,7 +54,7 @@ function available_spam_traps() {
while ($file = readdir($handle)) {
preg_match("/(.+)SpamTrap\.php/", $file, $name);
if ($name) {
$results[strtolower($name[1])] = $name[1];
$results[strtolower($name[1])] = get_string($name[1], 'admin');
}
}
return $results;
......
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