Add new printf patterns to make-pot
authorMatthias Clasen <mclasen@redhat.com>
Tue, 1 Nov 2022 11:07:51 +0000 (07:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Nov 2022 10:23:53 +0000 (11:23 +0100)
This script is used to extract our strings for translators
on damn lines, and passing these flags to xgettext makes
it put a hint into the pot file about strings that are
used as printf format strings.

make-pot

index b860a349cbe79cd44b8ec547f764d9350c07f156..2c8cd5f2e772aa7fa536b4251fc7e180ed0c9218 100755 (executable)
--- a/make-pot
+++ b/make-pot
@@ -60,6 +60,7 @@ $XGETTEXT --default-domain="$GETTEXT_PACKAGE" \
           --flag=gtk_message_dialog_format_secondary_text:2:c-format \
           --flag=gtk_message_dialog_new:5:c-format \
           --flag=gtk_message_dialog_new_with_markup:5:c-format \
+          --flag=gtk_alert_dialog_new:1:c-format \
           --files-from="$srcdir/POTFILES.in" \
         && test ! -f "$GETTEXT_PACKAGE.po" \
            || ( rm -f "$srcdir/$GETTEXT_PACKAGE.pot" \