aboutsummaryrefslogtreecommitdiffstats
path: root/env.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-11-26 03:58:57 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-11-26 03:58:57 +0000
commitcffef417bb9e0a231968c5fbadca8e5141a65083 (patch)
tree6de7999c000af0698dab13fa294229db4948402b /env.c
parent89f0f156f5df8b1e561577b90956ec403b114b4a (diff)
downloadfetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.tar.gz
fetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.tar.bz2
fetchmail-cffef417bb9e0a231968c5fbadca8e5141a65083.zip
Internationalization support via GNU gettext().
svn path=/trunk/; revision=2208
Diffstat (limited to 'env.c')
-rw-r--r--env.c10
1 files changed, 7 insertions, 3 deletions
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 <acme@conectiva.com.br> 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));