IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8232 for trunk/psLib/src/math


Ignore:
Timestamp:
Aug 8, 2006, 1:32:23 PM (20 years ago)
Author:
jhoblitt
Message:

bug #790 - remove psErrorText.h and inline all error codes. all newly inlined error codes are wrapped with the _() macro from future gettextification

Location:
trunk/psLib/src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src

    • Property svn:ignore
      •  

        old new  
        1010libpslib.la.temp
        1111config.h.in
        12 psErrorText.h
        1312*.bb
        1413*.bbg
  • trunk/psLib/src/math/psBinaryOp.c

    r7766 r8232  
    3030 *  @author Robert DeSonia, MHPCC
    3131 *
    32  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    33  *  @date $Date: 2006-06-30 02:20:06 $
     32 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     33 *  @date $Date: 2006-08-08 23:32:23 $
    3434 *
    3535 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5050#include "psLogMsg.h"
    5151#include "psAssert.h"
    52 #include "psErrorText.h"
     52
    5353
    5454/*****************************************************************************
     
    107107    long n2 = ((psVector*)IN2)->n; \
    108108    if (n1 != n2) { \
    109         psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n1, n2); \
     109        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n1, n2); \
    110110        if (OUT != IN1 && OUT != IN2) { \
    111111            psFree(OUT); \
     
    129129    if (((psVector*)IN1)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \
    130130        if (n1 != numRows2) { \
    131             psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n1, numRows2); \
     131            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n1, numRows2); \
    132132            if (OUT != IN1 && OUT != IN2) { \
    133133                psFree(OUT); \
     
    146146    } else {  /* Transposed vectors */ \
    147147        if (n1 != numCols2) { \
    148             psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n1, numCols2); \
     148            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n1, numCols2); \
    149149            if (OUT != IN1 && OUT != IN2) { \
    150150                psFree(OUT); \
     
    187187    if (((psVector*)IN2)->type.dimen == PS_DIMEN_VECTOR) { /* Regular vectors */ \
    188188        if (n2 != numRows1) { \
    189             psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n2, numRows1); \
     189            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n2, numRows1); \
    190190            if (OUT != IN1 && OUT != IN2) { \
    191191                psFree(OUT); \
     
    204204    } else {  /* Transposed vectors */ \
    205205        if (n2 != numCols1) { \
    206             psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, n2, numCols1); \
     206            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), n2, numCols1); \
    207207            if (OUT != IN1) { \
    208208                psFree(OUT); \
     
    229229    long numCols2 = ((psImage*)IN2)->numCols; \
    230230    if (numRows1 != numRows2 || numCols1 != numCols2) { \
    231         psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_SIZE_DIFFERS, \
     231        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %dx%d vs %dx%d."), \
    232232                numCols1, numRows1, numCols2, numRows2); \
    233233        if (OUT != IN1 && OUT != IN2) { \
     
    278278    PS_TYPE_NAME(strType,IN1->type);                                                                         \
    279279    psError(PS_ERR_BAD_PARAMETER_TYPE, true,                                                                 \
    280             PS_ERRORTEXT_psMatrix_TYPE_MISMATCH,                                                             \
     280            _("Specified data type, %s, is not supported."),                                                             \
    281281            strType);  */                                                                                    \
    282282    if (OUT != IN1 && OUT != IN2) {                                                                          \
     
    329329    PS_TYPE_NAME(strType,IN1->type);                                                                         \
    330330    psError(PS_ERR_BAD_PARAMETER_TYPE, true,                                                                 \
    331             PS_ERRORTEXT_psMatrix_TYPE_MISMATCH,                                                             \
     331            _("Specified data type, %s, is not supported."),                                                             \
    332332            strType);  */                                                                                    \
    333333    if (OUT != IN1 && OUT != IN2) {                                                                          \
     
    372372    if (PS_IS_PSELEMTYPE_COMPLEX(IN1->type)) {                                                               \
    373373        psError(PS_ERR_BAD_PARAMETER_VALUE, true,                                                            \
    374                 PS_ERRORTEXT_psMatrix_MIN_COMPLEX_SUPPORT);                                                  \
     374                _("The minimum operation is not supported with complex data."));                                                  \
    375375        if (OUT != IN1 && OUT != IN2) {                                                                      \
    376376            psFree(OUT);                                                                                     \
     
    383383    if (PS_IS_PSELEMTYPE_COMPLEX(IN1->type)) {                                                               \
    384384        psError(PS_ERR_BAD_PARAMETER_VALUE, true,                                                            \
    385                 PS_ERRORTEXT_psMatrix_MAX_COMPLEX_SUPPORT);                                                  \
     385                _("The maximum operation is not supported with complex data."));                                                  \
    386386        if (OUT != IN1 && OUT != IN2) {                                                                      \
    387387            psFree(OUT);                                                                                     \
     
    393393} else {                                                                                                     \
    394394    psError(PS_ERR_BAD_PARAMETER_VALUE, true,                                                                \
    395             PS_ERRORTEXT_psMatrix_OPERATION_UNSUPPORTED,                                                     \
     395            _("Specified operation, %s, is not supported."),                                                     \
    396396            OP);                                                                                             \
    397397    if (OUT != IN1 && OUT != IN2) {                                                                          \
     
    469469            if (out == NULL) {
    470470                psError(PS_ERR_UNKNOWN, false,
    471                         PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);
     471                        _("Couldn't create a proper output psVector."));
    472472                return NULL;
    473473            }
     
    478478            if (out == NULL) {
    479479                psError(PS_ERR_UNKNOWN, false,
    480                         PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);
     480                        _("Couldn't create a proper output psImage."));
    481481                return NULL;
    482482            }
     
    484484        } else {
    485485            psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    486                     PS_ERRORTEXT_psMatrix_DIMEN_INVALID,
     486                    _("Specified parameter, %s, has invalid dimensionality, %d."),
    487487                    "in2",dim2);
    488488            psBinaryOp_EXIT;
     
    493493            if (out == NULL) {
    494494                psError(PS_ERR_UNKNOWN, false,
    495                         PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);
     495                        _("Couldn't create a proper output psVector."));
    496496                return NULL;
    497497            }
     
    502502            if (out == NULL) {
    503503                psError(PS_ERR_UNKNOWN, false,
    504                         PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);
     504                        _("Couldn't create a proper output psVector."));
    505505                return NULL;
    506506            }
     
    511511            if (out == NULL) {
    512512                psError(PS_ERR_UNKNOWN, false,
    513                         PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);
     513                        _("Couldn't create a proper output psImage."));
    514514                return NULL;
    515515            }
     
    517517        } else {
    518518            psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    519                     PS_ERRORTEXT_psMatrix_DIMEN_INVALID,
     519                    _("Specified parameter, %s, has invalid dimensionality, %d."),
    520520                    "in2",dim2);
    521521            psBinaryOp_EXIT;
     
    525525        if (out == NULL) {
    526526            psError(PS_ERR_UNKNOWN, false,
    527                     PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);
     527                    _("Couldn't create a proper output psImage."));
    528528            return NULL;
    529529        }
     
    536536        } else {
    537537            psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    538                     PS_ERRORTEXT_psMatrix_DIMEN_INVALID,
     538                    _("Specified parameter, %s, has invalid dimensionality, %d."),
    539539                    "in2",dim2);
    540540            psBinaryOp_EXIT;
     
    542542    } else {
    543543        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    544                 PS_ERRORTEXT_psMatrix_DIMEN_INVALID,
     544                _("Specified parameter, %s, has invalid dimensionality, %d."),
    545545                "in1",dim1);
    546546        psBinaryOp_EXIT;
  • trunk/psLib/src/math/psMathUtils.c

    r7766 r8232  
    33 *  This file contains standard math routines.
    44 *
    5  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-06-30 02:20:06 $
     5 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-08-08 23:32:23 $
    77 *
    88 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psAssert.h"
    2727#include "psConstants.h"
    28 #include "psErrorText.h"
     28
    2929
    3030/*****************************************************************************/
  • trunk/psLib/src/math/psMatrix.c

    r7766 r8232  
    2121 *  @author Robert DeSonia, MHPCC
    2222 *
    23  *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    24  *  @date $Date: 2006-06-30 02:20:06 $
     23 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     24 *  @date $Date: 2006-08-08 23:32:23 $
    2525 *
    2626 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4343#include "psMatrix.h"
    4444#include "psAssert.h"
    45 #include "psErrorText.h"
     45
    4646#include "psTrace.h"
    4747
     
    568568
    569569    if(numRowsIn!=numColsOut && numRowsOut!=numColsIn) {
    570         psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMatrix_TRANSPOSE_MISMATCH);
     570        psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Number of rows do not match number of columns."));
    571571        TRANSPOSE_CLEANUP;
    572572    }
  • trunk/psLib/src/math/psPolynomial.c

    r7914 r8232  
    77*  polynomials.  It also contains a Gaussian functions.
    88*
    9 *  @version $Revision: 1.147 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-07-15 02:57:12 $
     9*  @version $Revision: 1.148 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-08-08 23:32:23 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3232#include "psPolynomial.h"
    3333#include "psAssert.h"
    34 #include "psErrorText.h"
     34
    3535
    3636/*****************************************************************************/
     
    795795    } else {
    796796        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    797                 PS_ERRORTEXT_psPolynomial_INVALID_POLYNOMIAL_TYPE,
     797                _("Unknown polynomial type 0x%x found.  Evaluation failed."),
    798798                poly->type);
    799799    }
     
    845845    } else {
    846846        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    847                 PS_ERRORTEXT_psPolynomial_INVALID_POLYNOMIAL_TYPE,
     847                _("Unknown polynomial type 0x%x found.  Evaluation failed."),
    848848                poly->type);
    849849    }
     
    924924    } else {
    925925        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    926                 PS_ERRORTEXT_psPolynomial_INVALID_POLYNOMIAL_TYPE,
     926                _("Unknown polynomial type 0x%x found.  Evaluation failed."),
    927927                poly->type);
    928928    }
     
    10401040    } else {
    10411041        psError(PS_ERR_BAD_PARAMETER_TYPE, true,
    1042                 PS_ERRORTEXT_psPolynomial_INVALID_POLYNOMIAL_TYPE,
     1042                _("Unknown polynomial type 0x%x found.  Evaluation failed."),
    10431043                poly->type);
    10441044    }
  • trunk/psLib/src/math/psRandom.c

    r7766 r8232  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-06-30 02:20:06 $
     12*  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-08-08 23:32:23 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    3131#include "psLogMsg.h"
    3232#include "psAssert.h"
    33 #include "psErrorText.h"
     33
    3434
    3535psU64 p_psRandomGetSystemSeed()
     
    7878        psError(PS_ERR_UNEXPECTED_NULL,
    7979                true,
    80                 PS_ERRORTEXT_psRandom_UNKNOWN_RANDFOM_NUMBER_GENERATOR_TYPE);
     80                _("Unknown Random Number Generator Type"));
    8181        break;
    8282    }
     
    9292        psError(PS_ERR_UNEXPECTED_NULL,
    9393                true,
    94                 PS_ERRORTEXT_psRandom_NULL_RANDOM_VAR);
     94                _("Random variable is NULL."));
    9595    } else {
    9696        // Check seed value to see if system seed should be used
     
    109109        psError(PS_ERR_UNEXPECTED_NULL,
    110110                true,
    111                 PS_ERRORTEXT_psRandom_NULL_RANDOM_VAR);
     111                _("Random variable is NULL."));
    112112        return(0);
    113113    } else {
     
    122122        psError(PS_ERR_UNEXPECTED_NULL,
    123123                true,
    124                 PS_ERRORTEXT_psRandom_NULL_RANDOM_VAR);
     124                _("Random variable is NULL."));
    125125        return(0);
    126126    } else {
     
    136136        psError(PS_ERR_UNEXPECTED_NULL,
    137137                true,
    138                 PS_ERRORTEXT_psRandom_NULL_RANDOM_VAR);
     138                _("Random variable is NULL."));
    139139        return(0);
    140140    } else {
     
    149149        psError(PS_ERR_UNEXPECTED_NULL,
    150150                true,
    151                 PS_ERRORTEXT_psRandom_NULL_RANDOM_VAR);
     151                _("Random variable is NULL."));
    152152        return(0);
    153153    } else {
  • trunk/psLib/src/math/psRegion.c

    r7901 r8232  
    33#include "psMemory.h"
    44#include "psError.h"
    5 #include "psErrorText.h"
     5
    66#include "psRegion.h"
    77
     
    5252    if (sscanf(region,"[%d:%d,%d:%d]",&col0,&col1,&row0,&row1) < 4) {
    5353        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    54                 PS_ERRORTEXT_psImage_SUBSECTION_INVALID,
     54                _("Specified subsection string, '%s', can not be parsed.  Must be in the form '[x1:x2,y1:y2]'."),
    5555                region);
    5656        return psRegionSet(NAN,NAN,NAN,NAN);
     
    6464    if ((col1 > 0) && (col0 > col1)) {
    6565        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    66                 PS_ERRORTEXT_psImage_SUBSET_RANGE_MALFORMED,
     66                _("Specified subset range, [%d:%d,%d:%d], is invalid.  Ranges must be incremental."),
    6767                col0,col1,row0,row1);
    6868        return psRegionSet(NAN,NAN,NAN,NAN);
     
    7171    if ((row1 > 0) && (row0 > row1)) {
    7272        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    73                 PS_ERRORTEXT_psImage_SUBSET_RANGE_MALFORMED,
     73                _("Specified subset range, [%d:%d,%d:%d], is invalid.  Ranges must be incremental."),
    7474                col0,col1,row0,row1);
    7575        return psRegionSet(NAN,NAN,NAN,NAN);
  • trunk/psLib/src/math/psSpline.c

    r7914 r8232  
    66*  This file contains the routines that allocate, free, and evaluate splines.
    77*
    8 *  @version $Revision: 1.150 $ $Name: not supported by cvs2svn $
    9 *  @date $Date: 2006-07-15 02:57:12 $
     8*  @version $Revision: 1.151 $ $Name: not supported by cvs2svn $
     9*  @date $Date: 2006-08-08 23:32:23 $
    1010*
    1111*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2828#include "psSpline.h"
    2929#include "psAssert.h"
    30 #include "psErrorText.h"
     30
    3131#include "psMathUtils.h"
    3232
  • trunk/psLib/src/math/psStats.c

    r7999 r8232  
    1616 * use ->min and ->max (PS_STAT_USE_RANGE)
    1717 *
    18  *  @version $Revision: 1.182 $ $Name: not supported by cvs2svn $
    19  *  @date $Date: 2006-07-28 00:44:05 $
     18 *  @version $Revision: 1.183 $ $Name: not supported by cvs2svn $
     19 *  @date $Date: 2006-08-08 23:32:23 $
    2020 *
    2121 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4949#include "psString.h"
    5050
    51 #include "psErrorText.h"
     51
    5252
    5353/*****************************************************************************/
     
    440440        psError(PS_ERR_UNEXPECTED_NULL,
    441441                false,
    442                 PS_ERRORTEXT_psStats_STATS_SAMPLE_MEDIAN_SORT_PROBLEM);
     442                _("Failed to sort input data."));
    443443        psTrace(__func__, 4, "---- %s(false) end ----\n", __func__);
    444444        psFree(vector);
     
    924924                ((y->data.F64[2] <= yVal) && (yVal <= y->data.F64[0]))) ) {
    925925            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    926                     PS_ERRORTEXT_psStats_YVAL_OUT_OF_RANGE,
     926                    _("Specified yVal, %g, is not within y-range, %g to %g."),
    927927                    (psF64)yVal, y->data.F64[0], y->data.F64[2]);
    928928        }
     
    946946        if (myPoly == NULL) {
    947947            psError(PS_ERR_UNEXPECTED_NULL, false,
    948                     PS_ERRORTEXT_psStats_STATS_FIT_QUADRATIC_POLYNOMIAL_1D_FIT);
     948                    _("Failed to fit a 1-dimensional polynomial to the three specified data points.  Returning NAN."));
    949949            psFree(x);
    950950            psFree(y);
     
    967967        if (isnan(tmpFloat)) {
    968968            psError(PS_ERR_UNEXPECTED_NULL,
    969                     false, PS_ERRORTEXT_psStats_STATS_FIT_QUADRATIC_POLY_MEDIAN);
     969                    false, _("Failed to determine the median of the fitted polynomial.  Returning NAN."));
    970970            psFree(x);
    971971            psFree(y);
     
    20352035                          PS_STAT_FITTED_MEAN | PS_STAT_FITTED_STDEV)) {
    20362036        if (!vectorRobustStats(inF32, errorsF32, maskU8, maskVal, stats)) {
    2037             psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psStats_STATS_FAILED);
     2037            psError(PS_ERR_UNKNOWN, false, _("Failed to calculate the specified statistic."));
    20382038            psFree(stats);
    20392039            psFree(inF32);
  • trunk/psLib/src/math/psUnaryOp.c

    r7766 r8232  
    3030 *  @author Robert DeSonia, MHPCC
    3131 *
    32  *  @version $Revision: 1.8 $ $Name: not supported by cvs2svn $
    33  *  @date $Date: 2006-06-30 02:20:06 $
     32 *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
     33 *  @date $Date: 2006-08-08 23:32:23 $
    3434 *
    3535 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5151#include "psLogMsg.h"
    5252#include "psAssert.h"
    53 #include "psErrorText.h"
     53
    5454
    5555/*****************************************************************************
     
    7878    long nOut = ((psVector*)OUT)->n; \
    7979    if (nIn != nOut) { \
    80         psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_COUNT_DIFFERS, nIn, nOut); \
     80        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Number of elements inconsistent, %d vs %d.  Number of elements must match."), nIn, nOut); \
    8181        if (OUT != IN) { \
    8282            psFree(OUT); \
     
    9999    long numColsOut = ((psImage*)OUT)->numCols; \
    100100    if(numRowsIn!=numRowsOut || numColsIn!=numColsOut) { \
    101         psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_SIZE_DIFFERS, \
     101        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified psImage dimensions differed, %dx%d vs %dx%d."), \
    102102                numColsIn, numRowsIn, numColsOut, numRowsOut); \
    103103        if (OUT != IN) { \
     
    157157        char* strType; \
    158158        PS_TYPE_NAME(strType, IN->type); \
    159         psError(PS_ERR_BAD_PARAMETER_TYPE, true, PS_ERRORTEXT_psMatrix_TYPE_MISMATCH, strType); \
     159        psError(PS_ERR_BAD_PARAMETER_TYPE, true, _("Specified data type, %s, is not supported."), strType); \
    160160        if (OUT != IN) { \
    161161            psFree(OUT); \
     
    275275    } \
    276276} else { \
    277     psError(PS_ERR_BAD_PARAMETER_VALUE, true, PS_ERRORTEXT_psMatrix_OPERATION_UNSUPPORTED, OP); \
     277    psError(PS_ERR_BAD_PARAMETER_VALUE, true, _("Specified operation, %s, is not supported."), OP); \
    278278    if (OUT != IN) { \
    279279        psFree(OUT); \
     
    309309    case PS_DIMEN_TRANSV:
    310310        if (((psVector*)in)->n == 0) {
    311             psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_VECTOR_EMPTY);
     311            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Input psVector contains no elements.  No data to perform operation with."));
    312312            psUnaryOp_EXIT;
    313313        }
     
    315315        out = psVectorRecycle(out, ((psVector*)in)->n, psTypeIn->type);
    316316        if (out == NULL) {
    317             psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psMatrix_OUTPUT_VECTOR_NOT_CREATED);
     317            psError(PS_ERR_UNKNOWN, false, _("Couldn't create a proper output psVector."));
    318318            psUnaryOp_EXIT;
    319319        }
     
    324324    case PS_DIMEN_IMAGE:
    325325        if (((psImage* ) in)->numCols == 0 || ((psImage* ) in)->numRows == 0) {
    326             psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_IMAGE_EMPTY);
     326            psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Input psImage contains no pixels.  No data to perform operation with."));
    327327            psUnaryOp_EXIT;
    328328        }
     
    330330        out = psImageRecycle(out, ((psImage*)in)->numCols, ((psImage*)in)->numRows, psTypeIn->type);
    331331        if (out == NULL) {
    332             psError(PS_ERR_UNKNOWN, false, PS_ERRORTEXT_psMatrix_OUTPUT_IMAGE_NOT_CREATED);
     332            psError(PS_ERR_UNKNOWN, false, _("Couldn't create a proper output psImage."));
    333333            psUnaryOp_EXIT;
    334334        }
     
    340340            psFree(out);
    341341        }
    342         psError(PS_ERR_BAD_PARAMETER_SIZE, true, PS_ERRORTEXT_psMatrix_DIMEN_INVALID, "in", psTypeIn->dimen);
     342        psError(PS_ERR_BAD_PARAMETER_SIZE, true, _("Specified parameter, %s, has invalid dimensionality, %d."), "in", psTypeIn->dimen);
    343343        psUnaryOp_EXIT;
    344344    }
Note: See TracChangeset for help on using the changeset viewer.