]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
gettext-runtime: Fix --help output in relocatable installations.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Jun 2025 19:20:13 +0000 (21:20 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 23 Jun 2025 19:20:13 +0000 (21:20 +0200)
* gettext-runtime/src/gettext.c (usage): Show the relocated LOCALEDIR.
* gettext-runtime/src/ngettext.c (usage): Likewise.

gettext-runtime/src/gettext.c
gettext-runtime/src/ngettext.c

index 51fce993b4361a5dfebf6a0e12a534445d8efbd1..6ae28c8ea130a3bbf2331ff9caf77f2d88c140eb 100644 (file)
@@ -290,7 +290,7 @@ 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"),
-              getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@");
+              getenv ("IN_HELP2MAN") == NULL ? relocate (LOCALEDIR) : "@localedir@");
       printf ("\n");
       /* TRANSLATORS: The first placeholder is the web address of the Savannah
          project of this package.  The second placeholder is the bug-reporting
index 4b6b25bee2798a40a097a8d1d7bd001d0f0c560c..737495e6243160ee11ded91feea696d4c952b0be 100644 (file)
@@ -256,7 +256,7 @@ 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"),
-              getenv ("IN_HELP2MAN") == NULL ? LOCALEDIR : "@localedir@");
+              getenv ("IN_HELP2MAN") == NULL ? relocate (LOCALEDIR) : "@localedir@");
       printf ("\n");
       /* TRANSLATORS: The first placeholder is the web address of the Savannah
          project of this package.  The second placeholder is the bug-reporting