From: Matthias Clasen Date: Tue, 1 Nov 2022 11:14:45 +0000 (-0400) Subject: po: Match make-pot X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~9^2~113^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=14a97accf1cfffc97bd08e7fbc2ffbb756105764;p=gtk4.git po: Match make-pot We are not normally using the gtk40-pot target to generate the gtk40.pot file. On the off chance that somebody does, lets make sure we pass the same arguments to xgettext here as in the make-pot script that is used on damn lies. --- diff --git a/po/meson.build b/po/meson.build index 84e0c71ce5..e8b740e162 100644 --- a/po/meson.build +++ b/po/meson.build @@ -1,3 +1,30 @@ i18n = import('i18n') -i18n.gettext('gtk40', preset : 'glib') +xgettext_args = [ + '--msgid-bugs-address="https://gitlab.gnome.org/GNOME/gtk/-/issues/"', + '--add-comments', + '--from-code=utf-8', + '--flag=g_dngettext:2:pass-c-format', + '--flag=g_strdup_printf:1:c-format', + '--flag=g_string_printf:2:c-format', + '--flag=g_string_append_printf:2:c-format', + '--flag=g_error_new:3:c-format', + '--flag=g_set_error:4:c-format', + '--flag=g_markup_printf_escaped:1:c-format', + '--flag=g_log:3:c-format', + '--flag=g_print:1:c-format', + '--flag=g_printerr:1:c-format', + '--flag=g_printf:1:c-format', + '--flag=g_fprintf:2:c-format', + '--flag=g_sprintf:2:c-format', + '--flag=g_snprintf:3:c-format', + '--flag=g_scanner_error:2:c-format', + '--flag=g_scanner_warn:2:c-format', + '--flag=gtk_message_dialog_format_secondary_markup:2:c-format', + '--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', +] + +i18n.gettext('gtk40', args: xgettext_args)