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/sys/psTrace.c

    r7571 r8232  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-06-15 00:22:54 $
     11 *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-08-08 23:32:23 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    5151#include "psLogMsg.h"
    5252
    53 #include "psErrorText.h"
     53
    5454
    5555static p_psComponent* cRoot = NULL; // The root of the trace component
     
    132132        if (NULL == currentNode->subcomp[i]) {
    133133            psLogMsg("p_psTraceReset", PS_LOG_WARN,
    134                      PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT,
     134                     _("Sub-component %d of node %s in trace tree is NULL."),
    135135                     i, currentNode->name);
    136136        } else {
     
    165165    if (strcmp("", addNodeName) == 0) {
    166166        psError(PS_ERR_BAD_PARAMETER_NULL,true,
    167                 PS_ERRORTEXT_psTrace_ADD_NULL_COMPONENT);
     167                _("Failed to add null component to trace tree."));
    168168        return false;
    169169    }
     
    177177    if (addNodeName[0] != '.') {
    178178        psError(PS_ERR_BAD_PARAMETER_VALUE,true,
    179                 PS_ERRORTEXT_psTrace_MALFORMED_COMPONENT_NAME,
     179                _("Failed to add '%s' to the root component tree; component must start with '.'."),
    180180                addNodeName);
    181181        return false;
     
    274274    if ( !componentAdd(compName, level) ) {
    275275        psError(PS_ERR_UNKNOWN, false,
    276                 PS_ERRORTEXT_psTrace_FAILED_TO_ADD_COMPONENT,
     276                _("Failed to set trace level (%d) to '%s'."),
    277277                level,
    278278                compName);
     
    346346            if (NULL == currentNode->subcomp[i]) {
    347347                psLogMsg("p_psTraceReset", PS_LOG_WARN,
    348                          PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT,
     348                         _("Sub-component %d of node %s in trace tree is NULL."),
    349349                         i, currentNode->name);
    350350            }
     
    504504    if (NULL == comp) {
    505505        psError(PS_ERR_BAD_PARAMETER_NULL, true,
    506                 PS_ERRORTEXT_psTrace_NULL_TRACETREE,
     506                _("Function %s called on a NULL trace level tree."),
    507507                __func__);
    508508        return;
     
    705705        default:
    706706            psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    707                     PS_ERRORTEXT_psLogMsg_UNKNOWN_KEY, *ptr);
     707                    _("Unknown logging keyword %c."), *ptr);
    708708            return false;
    709709        }
Note: See TracChangeset for help on using the changeset viewer.