updated internationalization system again

This commit is contained in:
JT Smith 2004-07-04 20:29:01 +00:00
parent a1a950a09f
commit 1b21302eb3
43 changed files with 6716 additions and 2283 deletions

View file

@ -86,7 +86,7 @@ sub get {
my $load = "use ".$cmd;
eval($load);
WebGUI::ErrorHandler::warn($cmd." failed to compile because ".$@) if ($@);
$cmd = "\$".$cmd."::I18N->{'".$id."'}";
$cmd = "\$".$cmd."::I18N->{'".$id."'}{message}";
my $output = eval($cmd);
WebGUI::ErrorHandler::warn("Couldn't get value from ".$cmd." because ".$@) if ($@);
$output = get($id,$namespace,"English") if ($output eq "" && $language ne "English");