diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-10-19 07:51:14 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-10-19 07:51:14 +0000 |
commit | 580c61488bf3bfbba581704264ad095c023ab810 (patch) | |
tree | 13411dc18ee4129fd1d660f46f237cf7c1dabcb9 /lib/xstrtol.h | |
parent | d71b0ac718cf920ad3a0509bec081afb5db38ddb (diff) | |
download | gnulib-580c61488bf3bfbba581704264ad095c023ab810.tar.gz |
* lib/xstrtol.h: Include gettext.h.
(_STRTOL_ERROR): Wrap English-language formats inside gettext.
Problem reported by Eric Blake.
* modules/xstrtol (Depends-on): Add gettext-h.
Diffstat (limited to 'lib/xstrtol.h')
-rw-r--r-- | lib/xstrtol.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/xstrtol.h b/lib/xstrtol.h index 354fb6b372..475728aa44 100644 --- a/lib/xstrtol.h +++ b/lib/xstrtol.h @@ -24,6 +24,8 @@ # include <inttypes.h> +# include "gettext.h" + # ifndef _STRTOL_ERROR enum strtol_error { @@ -57,18 +59,19 @@ _DECLARE_XSTRTOL (xstrtoumax, uintmax_t) abort (); \ \ case LONGINT_INVALID: \ - error ((Exit_code), 0, "invalid %s `%s'", \ + error ((Exit_code), 0, gettext ("invalid %s `%s'"), \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_INVALID_SUFFIX_CHAR: \ case LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW: \ - error ((Exit_code), 0, "invalid character following %s in `%s'", \ + error ((Exit_code), 0, \ + gettext ("invalid character following %s in `%s'"), \ (Argument_type_string), (Str)); \ break; \ \ case LONGINT_OVERFLOW: \ - error ((Exit_code), 0, "%s `%s' too large", \ + error ((Exit_code), 0, gettext ("%s `%s' too large"), \ (Argument_type_string), (Str)); \ break; \ } \ |