summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2001-08-15 12:27:39 +0000
committerBruno Haible <bruno@clisp.org>2001-08-15 12:27:39 +0000
commit9b8a9ac3d575ecbe8f7cf528879cf47265cf59df (patch)
tree6898ee15d7543248e02e86fc6bb78317c7ef453a /src
parent46de0941dcd108cb7e3afb6741066103343f2e9b (diff)
downloadexternal_gettext-9b8a9ac3d575ecbe8f7cf528879cf47265cf59df.zip
external_gettext-9b8a9ac3d575ecbe8f7cf528879cf47265cf59df.tar.gz
external_gettext-9b8a9ac3d575ecbe8f7cf528879cf47265cf59df.tar.bz2
Reflect the real localedir in the manpages, not the default localedir.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/gettext.c3
-rw-r--r--src/ngettext.c3
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);
}