[interchange-cvs] interchange - kwalsh modified lib/Vend/Interpolate.pm

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Sat Dec 22 15:49:34 EST 2007


User:      kwalsh
Date:      2007-12-22 20:49:34 GMT
Modified:  lib/Vend Interpolate.pm
Log:
    * Allow localisation of the "No search was found" error message.
      Patch supplied by Rene Hertell - thanks.

Revision  Changes    Path
2.293     +5 -5      interchange/lib/Vend/Interpolate.pm


rev 2.293, prev_rev 2.292
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.292
retrieving revision 2.293
diff -u -r2.292 -r2.293
--- Interpolate.pm	17 Nov 2007 23:30:33 -0000	2.292
+++ Interpolate.pm	22 Dec 2007 20:49:34 -0000	2.293
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.292 2007/11/17 23:30:33 jon Exp $
+# $Id: Interpolate.pm,v 2.293 2007/12/22 20:49:34 kwalsh Exp $
 #
 # Copyright (C) 2002-2007 Interchange Development Group
 # Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.292 $, 10);
+$VERSION = substr(q$Revision: 2.293 $, 10);
 
 @EXPORT = qw (
 
@@ -4674,9 +4674,9 @@
 		if(! $obj) {
 			$obj = perform_search();
 			$obj = {
-						matches => 0,
-						mv_search_error => ['No search was found'],
-				} if ! $obj;
+				matches => 0,
+				mv_search_error => [ errmsg('No search was found') ],
+			} if ! $obj;
 		}
 		finish_search($obj);
 








More information about the interchange-cvs mailing list