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 --- env.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'env.c') diff --git a/env.c b/env.c index da8168d6..95d93be2 100644 --- a/env.c +++ b/env.c @@ -2,6 +2,8 @@ * env.c -- small service routines * * For license terms, see the file COPYING in this directory. + * + * i18n by Arnaldo Carvalho de Melo 7-Nov-1998 */ #include "config.h" @@ -25,6 +27,8 @@ #endif #include "fetchmail.h" +#include "i18n.h" + extern char *getenv(); /* needed on sysV68 R3V7.1. */ extern char *program_name; @@ -52,7 +56,7 @@ void envquery(int argc, char **argv) else { fprintf(stderr, - "%s: can't find your name and home directory!\n", + _("%s: can't find your name and home directory!\n"), program_name); exit(PS_UNDEFINED); } @@ -77,7 +81,7 @@ char *host_fqdn(void) if (gethostname(tmpbuf, sizeof(tmpbuf))) { - fprintf(stderr, "%s: can't determine your host!", + fprintf(stderr, _("%s: can't determine your host!"), program_name); exit(PS_DNS); } @@ -93,7 +97,7 @@ char *host_fqdn(void) { /* exit with error message */ fprintf(stderr, - "gethostbyname failed for %s\n", tmpbuf); + _("gethostbyname failed for %s\n"), tmpbuf); exit(PS_DNS); } return(xstrdup(hp->h_name)); -- cgit v1.2.3