]> Savannah Git Hosting - gnulib.git/commitdiff
Localizations: Fix omissions from the POT file.
authorBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 12:18:21 +0000 (13:18 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 9 Dec 2024 12:18:21 +0000 (13:18 +0100)
Reported by Benno Schulenberg.

* po/Makefile ($(DOMAIN).pot): Remove the file pre-filtering; just pass
all source files to xgettext.
* po/Makevars (XGETTEXT_OPTIONS): Recognize gettext_noop as a keyword.

ChangeLog
po/Makefile
po/Makevars

index cfe2d3d18e986c98f1ea406f3ec4ca469528fa35..9d0e2f455646bb62e6cdce0c2ae8891e400edcd6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-12-09  Bruno Haible  <bruno@clisp.org>
+
+       Localizations: Fix omissions from the POT file.
+       Reported by Benno Schulenberg.
+       * po/Makefile ($(DOMAIN).pot): Remove the file pre-filtering; just pass
+       all source files to xgettext.
+       * po/Makevars (XGETTEXT_OPTIONS): Recognize gettext_noop as a keyword.
+
 2024-12-09  Bruno Haible  <bruno@clisp.org>
 
        gnulib-tool: Fix test failures (regression 2024-12-06).
index 7dfccb2db035f7c3497c0aabf453585a15ded288..26b6ad5b8ede89eb5dffbe0a5e408debc5dc5700 100644 (file)
@@ -12,7 +12,7 @@ $(DOMAIN).pot: force
          --package-version='$(VERSION)' \
          --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \
          $(XGETTEXT_OPTIONS) \
-         `cd .. && LC_ALL=C grep -l '[^A-Za-z_]_(' \`find lib '(' -name '*.c' -o -name '*.h' -o -name '*.y' ')' | LC_ALL=C sort\``
+         `cd .. && find lib '(' -name '*.c' -o -name '*.h' -o -name '*.y' ')' | LC_ALL=C sort`
        mv $(DOMAIN).po $(DOMAIN).pot
 
 force:
index 6383129aa594ef8489d6f2a5d6d6d98eaf2fff2d..74f99cfa2761b822e2faea9d1676555e65417146 100644 (file)
@@ -15,6 +15,7 @@ top_builddir = ..
 XGETTEXT_OPTIONS = \
   --keyword=_ --flag=_:1:pass-c-format \
   --keyword=N_ --flag=N_:1:pass-c-format \
+  --keyword=gettext_noop --flag=gettext_noop:1:pass-c-format \
   --flag=error:3:c-format --flag=error_at_line:5:c-format \
   --flag=verror:3:c-format --flag=verror_at_line:5:c-format \
   --flag=argp_error:2:c-format --flag=argp_failure:4:c-format \