From cffef417bb9e0a231968c5fbadca8e5141a65083 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 26 Nov 1998 03:58:57 +0000 Subject: Internationalization support via GNU gettext(). svn path=/trunk/; revision=2208 --- report.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'report.c') diff --git a/report.c b/report.c index d2f12348..2e4cfeaa 100644 --- a/report.c +++ b/report.c @@ -20,6 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ * Bludgeoned into submission for SunOS 4.1.3 by * Chris Cheyney . * Now it works even when the return from vprintf is unreliable. + * + * i18n by Arnaldo Carvalho de Melo 7-Nov-1998 */ #ifdef HAVE_CONFIG_H @@ -52,9 +54,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ void exit (); #endif -#ifndef _ -# define _(String) String -#endif +#include "i18n.h" #include "fetchmail.h" #define MALLOC(n) xmalloc(n) @@ -137,7 +137,7 @@ error (status, errnum, message, va_alist) if (partial_message_size_used != 0) { partial_message_size_used = 0; - error (0, 0, "%s (log message incomplete)", partial_message); + error (0, 0, _("%s (log message incomplete)"), partial_message); } #if defined(HAVE_SYSLOG) @@ -233,7 +233,7 @@ error (status, errnum, message, va_alist) fprintf (stderr, ": %s", tmps); } else { - fprintf (stderr, ": Error %d", errnum); + fprintf (stderr, _(": Error %d"), errnum); } } putc ('\n', stderr); @@ -337,7 +337,7 @@ error_build (message, va_alist) if (partial_message_size_used >= partial_message_size) { partial_message_size_used = 0; - error (PS_UNDEFINED, 0, "partial error message buffer overflow"); + error (PS_UNDEFINED, 0, _("partial error message buffer overflow")); } #endif va_end (args); @@ -365,7 +365,7 @@ error_build (message, va_alist) if ((partial_message_size_used = strlen (partial_message)) >= partial_message_size) { partial_message_size_used = 0; - error (PS_UNDEFINED, 0, "partial error message buffer overflow"); + error (PS_UNDEFINED, 0, _("partial error message buffer overflow")); } #endif #endif @@ -439,7 +439,7 @@ error_complete (status, errnum, message, va_alist) if (partial_message_size_used >= partial_message_size) { partial_message_size_used = 0; - error (PS_UNDEFINED, 0, "partial error message buffer overflow"); + error (PS_UNDEFINED, 0, _("partial error message buffer overflow")); } #endif va_end (args); @@ -467,7 +467,7 @@ error_complete (status, errnum, message, va_alist) if ((partial_message_size_used = strlen (partial_message)) >= partial_message_size) { partial_message_size_used = 0; - error (PS_UNDEFINED, 0, "partial error message buffer overflow"); + error (PS_UNDEFINED, 0, _("partial error message buffer overflow")); } #endif #endif -- cgit v1.2.3