diff options
author | Paul Smith <psmith@gnu.org> | 1999-07-28 06:23:37 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 1999-07-28 06:23:37 +0000 |
commit | 28ef4c4dacc6fee628e65f07b52a4d2f0efe7fb3 (patch) | |
tree | 8c221f1b16a2ce3281898476bd46f35b7290a197 /misc.c | |
parent | 3a945a665e3d06aa02e9e1e5843d2b8fa61f1e52 (diff) | |
download | gunmake-28ef4c4dacc6fee628e65f07b52a4d2f0efe7fb3.tar.gz |
* Add gettext macros to start i18n support.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -304,7 +304,7 @@ fatal (flocp, fmt, va_alist) VA_PRINTF (stderr, fmt, args); VA_END (args); - fputs (". Stop.\n", stderr); + fputs (_(". Stop.\n"), stderr); die (2); } @@ -326,7 +326,7 @@ strerror (errnum) if (errno < sys_nerr) return sys_errlist[errnum]; - sprintf (buf, "Unknown error %d", errnum); + sprintf (buf, _("Unknown error %d"), errnum); return buf; } #endif @@ -366,7 +366,7 @@ xmalloc (size) { char *result = (char *) malloc (size); if (result == 0) - fatal (NILF, "virtual memory exhausted"); + fatal (NILF, _("virtual memory exhausted")); return result; } @@ -381,7 +381,7 @@ xrealloc (ptr, size) /* Some older implementations of realloc() don't conform to ANSI. */ result = ptr ? realloc (ptr, size) : malloc (size); if (result == 0) - fatal (NILF, "virtual memory exhausted"); + fatal (NILF, _("virtual memory exhausted")); return result; } @@ -399,7 +399,7 @@ xstrdup (ptr) #endif if (result == 0) - fatal (NILF, "virtual memory exhausted"); + fatal (NILF, _("virtual memory exhausted")); #ifdef HAVE_STRDUP return result; @@ -650,7 +650,7 @@ log_access (flavor) but we write this one to stderr because it might be run in a child fork whose stdout is piped. */ - fprintf (stderr, "%s access: user %lu (real %lu), group %lu (real %lu)\n", + fprintf (stderr, _("%s access: user %lu (real %lu), group %lu (real %lu)\n"), flavor, (unsigned long) geteuid (), (unsigned long) getuid (), (unsigned long) getegid (), (unsigned long) getgid ()); fflush (stderr); @@ -671,7 +671,7 @@ init_access () if (user_uid == -1 || user_gid == -1 || make_uid == -1 || make_gid == -1) pfatal_with_name ("get{e}[gu]id"); - log_access ("Initialized"); + log_access (_("Initialized")); current_access = make; #endif |