~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_error.c

  • Committer: Monty Taylor
  • Date: 2008-08-01 22:33:44 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080801223344-vzhlflfmtijp1imv
First pass at gettexizing the error messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <mystrings/m_string.h>
19
19
#include <stdarg.h>
20
20
#include <mystrings/m_ctype.h>
 
21
#include <libdrizzle/gettext.h>
21
22
 
22
23
/* Define some external variables for error handling */
23
24
 
80
81
 
81
82
  /* get the error message string. Default, if NULL or empty string (""). */
82
83
  if (! (format= (meh_p && (nr >= meh_p->meh_first)) ?
83
 
         meh_p->meh_errmsgs[nr - meh_p->meh_first] : NULL) || ! *format)
84
 
    (void) snprintf (ebuff, sizeof(ebuff), "Unknown error %d", nr);
 
84
         _(meh_p->meh_errmsgs[nr - meh_p->meh_first]) : NULL) || ! *format)
 
85
    (void) snprintf (ebuff, sizeof(ebuff), _("Unknown error %d"), nr);
85
86
  else
86
87
  {
87
88
    va_start(args,MyFlags);