IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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:
2 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/astro/psSphereOps.c

    r7914 r8232  
    88 *  @author Dave Robbins, MHPCC
    99 *
    10  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-07-15 02:57:12 $
     10 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-08-08 23:32:22 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2525#include "psError.h"
    2626#include "psLogMsg.h"
    27 #include "psErrorText.h"
     27
    2828
    2929
     
    225225    // Check the specified MJD is greater than 1900
    226226    if ( MJD < MJD_1900 ) {
    227         psError(PS_ERR_BAD_PARAMETER_TYPE,true,PS_ERRORTEXT_psCoord_INVALID_MJD);
     227        psError(PS_ERR_BAD_PARAMETER_TYPE,true,_("Specified time is less than 1900."));
    228228        return NULL;
    229229    }
     
    252252    // Check the specified MJD is greater than 1900
    253253    if ( MJD < MJD_1900 ) {
    254         psError(PS_ERR_BAD_PARAMETER_TYPE,true,PS_ERRORTEXT_psCoord_INVALID_MJD);
     254        psError(PS_ERR_BAD_PARAMETER_TYPE,true,_("Specified time is less than 1900."));
    255255        return NULL;
    256256    }
     
    361361        else {
    362362            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    363                     PS_ERRORTEXT_psCoord_UNITS_UNKNOWN,
     363                    _("Specified units, 0x%x, is not supported."),
    364364                    unit);
    365365            psFree(tmp);
     
    370370    } else {
    371371        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    372                 PS_ERRORTEXT_psCoord_OFFSET_MODE_UNKNOWN,
     372                _("Specified offset mode, 0x%x, is not supported."),
    373373                mode);
    374374        psFree(tmp);
     
    432432        } else {
    433433            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    434                     PS_ERRORTEXT_psCoord_UNITS_UNKNOWN,
     434                    _("Specified units, 0x%x, is not supported."),
    435435                    unit);
    436436            return NULL;
     
    451451    } else {
    452452        psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    453                 PS_ERRORTEXT_psCoord_OFFSET_MODE_UNKNOWN,
     453                _("Specified offset mode, 0x%x, is not supported."),
    454454                mode);
    455455        return NULL;
Note: See TracChangeset for help on using the changeset viewer.