diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/gettext.c | 3 | ||||
-rw-r--r-- | src/ngettext.c | 3 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ea5dc0c..926f74f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,11 @@ 2001-07-28 Bruno Haible <haible@clisp.cons.org> + * gettext.c (usage): If IN_HELP2MAN is set, output template for + localedir, not its value. + * ngettext.c (usage): Likewise. + +2001-07-28 Bruno Haible <haible@clisp.cons.org> + * po-lex.c: Include c-ctype.h instead of <ctype.h>. (control_sequence): Use C locale character classifications. * xgettext.c (main): Cast isspace argument to 'unsigned char'. diff --git a/src/gettext.c b/src/gettext.c index 987836f..fd28175 100644 --- a/src/gettext.c +++ b/src/gettext.c @@ -280,7 +280,8 @@ variable TEXTDOMAINDIR.\n\ When used with the -s option the program behaves like the `echo' command.\n\ But it does not simply copy its arguments to stdout. Instead those messages\n\ found in the selected catalog are translated.\n\ -Standard search directory: %s\n"), LOCALEDIR); +Standard search directory: %s\n"), + getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); printf ("\n"); fputs (_("Report bugs to <bug-gnu-gettext@gnu.org>.\n"), stdout); } diff --git a/src/ngettext.c b/src/ngettext.c index fcd4f24..cf932de 100644 --- a/src/ngettext.c +++ b/src/ngettext.c @@ -236,7 +236,8 @@ If the TEXTDOMAIN parameter is not given, the domain is determined from the\n\ environment variable TEXTDOMAIN. If the message catalog is not found in the\n\ regular directory, another location can be specified with the environment\n\ variable TEXTDOMAINDIR.\n\ -Standard search directory: %s\n"), LOCALEDIR); +Standard search directory: %s\n"), + getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@"); printf ("\n"); fputs (_("Report bugs to <bug-gnu-gettext@gnu.org>.\n"), stdout); } |