new i18n api requiring $session

This commit is contained in:
Colin Kuskie 2006-01-12 17:49:20 +00:00
parent 877bf082a0
commit 01d95a265e
141 changed files with 2266 additions and 1745 deletions

View file

@ -39,8 +39,9 @@ sub process {
my $self = shift;
my (@param, $temp, $file);
@param = @_;
my $i18n = WebGUI::International->new($session,'Macro_Include');
if ($param[0] =~ /passwd/ || $param[0] =~ /shadow/ || $param[0] =~ /WebGUI.conf/) {
$temp = WebGUI::International::get('security','Macro_Include');
$temp = $i18n->get('security');
} else {
$file = FileHandle->new($param[0],"r");
if ($file) {
@ -49,7 +50,7 @@ sub process {
}
$file->close;
} else {
$temp = WebGUI::International::get('not found','Macro_Include');
$temp = $i18n->get('not found');
}
}
return $temp;