validator/httpd/cgi-bin check,1.360,1.361

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv30668

Modified Files:
	check 
Log Message:
moving error messages and explanations to a space where they cn later be localized

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.360
retrieving revision 1.361
diff -u -d -r1.360 -r1.361
--- check	15 Nov 2004 05:27:11 -0000	1.360
+++ check	19 Nov 2004 07:02:47 -0000	1.361
@@ -211,12 +211,7 @@
   }
   #FIXME;
 
-  #
-  # Read Resource files... (friendly error messages)
-  my %config_opts = (-ConfigFile => $CFG->{'Verbose Msg'});
-  my %rsrc = Config::General->new(%config_opts)->getall();
-  $RSRC = \%rsrc;
-
+ 
   #
   # Set debug flag.
   if ($CFG->{'Allow Debug'} == TRUE) {
@@ -315,6 +310,14 @@
   die_on_bad_params => FALSE,
 );
 
+
+# Read friendly error message file
+my $error_messages_list =  File::Spec->catfile($CFG->{Paths}->{Templates}, $lang, 'error_messages.cfg')
+my %config_opts = (-ConfigFile => $error_messages_list);
+my %rsrc = Config::General->new(%config_opts)->getall();
+$RSRC = \%rsrc;
+
+
 $T->param(cfg_home_page => $CFG->{'Home Page'});
 
 undef $lang;

Received on Friday, 19 November 2004 07:02:50 UTC