From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1105) id 1C26A385841B; Fri, 11 Feb 2022 23:22:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C26A385841B MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Joseph Myers To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7207] preprocessor: Extract messages from cpp_*_at calls for translation X-Act-Checkin: gcc X-Git-Author: Joseph Myers X-Git-Refname: refs/heads/master X-Git-Oldrev: 434b2caf5d44d58cb48c9588d4b70588f6d5965b X-Git-Newrev: becc9a12a515a2d0bbe56555185102dd42ec4ef3 Message-Id: <20220211232247.1C26A385841B@sourceware.org> Date: Fri, 11 Feb 2022 23:22:47 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Feb 2022 23:22:47 -0000 https://gcc.gnu.org/g:becc9a12a515a2d0bbe56555185102dd42ec4ef3 commit r12-7207-gbecc9a12a515a2d0bbe56555185102dd42ec4ef3 Author: Joseph Myers Date: Fri Feb 11 23:22:07 2022 +0000 preprocessor: Extract messages from cpp_*_at calls for translation 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". * Makefile.in (po/$(PACKAGE).pot): Also handle cpp_warning_at, cpp_pedwarning_at and cpp_error_at. Diff: --- libcpp/Makefile.in | 3 +++ 1 file changed, 3 insertions(+) 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." \