Index: trunk/psLib/src/math/psUnaryOp.c
===================================================================
--- trunk/psLib/src/math/psUnaryOp.c	(revision 7766)
+++ trunk/psLib/src/math/psUnaryOp.c	(revision 8232)
@@ -30,6 +30,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-06-30 02:20:06 $
+ *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-08 23:32:23 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -51,5 +51,5 @@
 #include "psLogMsg.h"
 #include "psAssert.h"
-#include "psErrorText.h"
+
 
 /*****************************************************************************
@@ -78,5 +78,5 @@
     long nOut = ((psVector*)OUT)->n; \
     if (nIn != nOut) { \
-        psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, nIn, nOut); \
+        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), nIn, nOut); \
         if (OUT != IN) { \
             psFree(OUT); \
@@ -99,5 +99,5 @@
     long numColsOut = ((psImage*)OUT)->numCols; \
     if(numRowsIn!=numRowsOut || numColsIn!=numColsOut) { \
-        psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_SIZE_DIFFERS, \
+        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %dx%d vs %dx%d."), \
                 numColsIn, numRowsIn, numColsOut, numRowsOut); \
         if (OUT != IN) { \
@@ -157,5 +157,5 @@
         char* strType; \
         PS_TYPE_NAME(strType, IN->type); \
-        psError(PS_ERR_BAD_PARAMETER_TYPE, true, PS_ERRORTEXT_psMatrix_TYPE_MISMATCH, strType); \
+        psError(PS_ERR_BAD_PARAMETER_TYPE, true, _("Specified data type, %s, is not supported."), strType); \
         if (OUT != IN) { \
             psFree(OUT); \
@@ -275,5 +275,5 @@
     } \
 } else { \
-    psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMatrix_OPERATION_UNSUPPORTED, OP); \
+    psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Specified operation, %s, is not supported."), OP); \
     if (OUT != IN) { \
         psFree(OUT); \
@@ -309,5 +309,5 @@
     case PS_DIMEN_TRANSV:
         if (((psVector*)in)->n == 0) {
-            psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_VECTOR_EMPTY);
+            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Input psVector contains no elements.  No data to perform operation with."));
             psUnaryOp_EXIT;
         }
@@ -315,5 +315,5 @@
         out = psVectorRecycle(out, ((psVector*)in)->n, psTypeIn->type);
         if (out == NULL) {
-            psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);
+            psError(PS_ERR_UNKNOWN, false, _("Couldn't create a proper output psVector."));
             psUnaryOp_EXIT;
         }
@@ -324,5 +324,5 @@
     case PS_DIMEN_IMAGE:
         if (((psImage* ) in)->numCols == 0 || ((psImage* ) in)->numRows == 0) {
-            psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_EMPTY);
+            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Input psImage contains no pixels.  No data to perform operation with."));
             psUnaryOp_EXIT;
         }
@@ -330,5 +330,5 @@
         out = psImageRecycle(out, ((psImage*)in)->numCols, ((psImage*)in)->numRows, psTypeIn->type);
         if (out == NULL) {
-            psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);
+            psError(PS_ERR_UNKNOWN, false, _("Couldn't create a proper output psImage."));
             psUnaryOp_EXIT;
         }
@@ -340,5 +340,5 @@
             psFree(out);
         }
-        psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_DIMEN_INVALID, "in", psTypeIn->dimen);
+        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified parameter, %s, has invalid dimensionality, %d."), "in", psTypeIn->dimen);
         psUnaryOp_EXIT;
     }
