From: Bruno Haible Date: Thu, 3 Jul 2025 09:19:38 +0000 (+0200) Subject: xgettext: Fix handling of syntax-checks with multi-domain POT files. X-Git-Tag: v0.26~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=762db318fc3e1944759e5417f017dd7b0ac7096b;p=thirdparty%2Fgettext.git xgettext: Fix handling of syntax-checks with multi-domain POT files. * gettext-tools/src/xgettext.c (main): Consider the total number of errors. --- diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c index c10186db1..f44e93481 100644 --- a/gettext-tools/src/xgettext.c +++ b/gettext-tools/src/xgettext.c @@ -1104,7 +1104,7 @@ xgettext cannot work without keywords to look for")); for (i = 0; i < mdlp->nitems; i++) { message_list_ty *mlp = mdlp->item[i]->messages; - nerrors = syntax_check_message_list (mlp); + nerrors += syntax_check_message_list (mlp); } /* Exit with status 1 on any error. */