diff mbox series

[committed] preprocessor: Extract messages from cpp_*_at calls for translation

Message ID alpine.DEB.2.22.394.2202112322230.245895@digraph.polyomino.org.uk
State New
Headers show
Series [committed] preprocessor: Extract messages from cpp_*_at calls for translation | expand

Commit Message

Joseph Myers Feb. 11, 2022, 11:23 p.m. UTC
The logic in libcpp/Makefile.in listing diagnostic functions in a call
to xgettext was missing cpp_warning_at, cpp_pedwarning_at and
cpp_error_at, so resulting in some messages not being extracted for
translation; add those functions to those for which messages are
extracted.

Tested with "make cpplib.pot".  Applied to mainline.

	* Makefile.in (po/$(PACKAGE).pot): Also handle cpp_warning_at,
	cpp_pedwarning_at and cpp_error_at.
diff mbox series

Patch

diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in
index 9e4c3fe5c16..08d48def0bc 100644
--- a/libcpp/Makefile.in
+++ b/libcpp/Makefile.in
@@ -252,10 +252,13 @@  po/$(PACKAGE).pot: $(libcpp_a_SOURCES)
 	  --keyword=cpp_warning:3 \
 	  --keyword=cpp_pedwarning:3 \
 	  --keyword=cpp_warning_syshdr:3 \
+	  --keyword=cpp_warning_at:4 \
+	  --keyword=cpp_pedwarning_at:4 \
 	  --keyword=cpp_error_with_line:5 \
 	  --keyword=cpp_warning_with_line:5 \
 	  --keyword=cpp_pedwarning_with_line:5 \
 	  --keyword=cpp_warning_with_line_syshdr:5 \
+	  --keyword=cpp_error_at:4 \
 	  --keyword=cpp_errno:3 \
 	  --keyword=SYNTAX_ERROR --keyword=SYNTAX_ERROR2 \
 	  --copyright-holder="Free Software Foundation, Inc." \