]> Savannah Git Hosting - gnulib.git/commitdiff
argmatch: Use the translation domain "gnulib".
authorBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 12:26:51 +0000 (13:26 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 12:26:51 +0000 (13:26 +0100)
* lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Use translation domain
"gnulib" for the literal string here.

ChangeLog
lib/argmatch.h

index 9d0e2f455646bb62e6cdce0c2ae8891e400edcd6..9a114d53ec109f1c09b0562673c1d34523e2b008 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-12-09  Bruno Haible  <bruno@clisp.org>
+
+       argmatch: Use the translation domain "gnulib".
+       * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Use translation domain
+       "gnulib" for the literal string here.
+
 2024-12-09  Bruno Haible  <bruno@clisp.org>
 
        Localizations: Fix omissions from the POT file.
index ca60dfe1ceff8521da7dbeae840907c36e16e1d7..913c5617d91aae17b9361fd2b74f67648338ba1a 100644 (file)
@@ -239,7 +239,7 @@ char const *argmatch_to_argument (void const *value,
                                                                         \
     /* Try to put synonyms on the same line.  Synonyms are expected     \
        to follow each other. */                                         \
-    fputs (gettext ("Valid arguments are:"), out);                      \
+    fputs (dgettext ("gnulib", "Valid arguments are:"), out);           \
     for (int i = 0; g->args[i].arg; i++)                                \
       if (i == 0                                                        \
           || memcmp (&g->args[i-1].val, &g->args[i].val, size))         \