From ecbc24474cfa548e53f995e989d0f1d8e7a9a33f Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sun, 21 Jan 2007 15:29:58 +0000 Subject: Allow more strings to be marked as format strings. CVS patchset: 8538 CVS date: 2007/01/21 15:29:58 --- po/Makefile.format | 21 +++++++++++++++++++++ po/Makefile.in.in | 3 +++ 2 files changed, 24 insertions(+) create mode 100644 po/Makefile.format diff --git a/po/Makefile.format b/po/Makefile.format new file mode 100644 index 000000000..dfbdf1ec1 --- /dev/null +++ b/po/Makefile.format @@ -0,0 +1,21 @@ +# Source: +# grep 'attribute.*format.*printf' src include -rI -B3 -C3 + +# Internal usage +XGETTEXT_FORMAT_FLAGS_PRIVATE = \ + --flag=xine_log_msg:1:c-format \ + --flag=xine_log_err:1:c-format \ + --flag=set_hc_result:3:c-format \ + --flag=log_printf:1:c-format \ + --flag=error_message:1:c-format \ + --flag=error_callback:5:c-format \ + --flag=dbgprintf:1:c-format \ + --flag=dbg_printf:1:c-format \ + --flag=sock_string_write:3:c-format \ + --flag=broadcaster_string_write:3:c-format \ + --flag=scratch_printf:3:c-format + +# External usage (installed include files) +XGETTEXT_FORMAT_FLAGS = \ + --flag=xine_log:3:c-format \ + --flag=xine_vlog:3:c-format diff --git a/po/Makefile.in.in b/po/Makefile.in.in index 2ec0141c1..4cbcf6b94 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -10,6 +10,8 @@ # # Origin: gettext-0.14.4 +include Makefile.format + PACKAGE = @PACKAGE@ LIBNAME = @LIBNAME@ VERSION = @VERSION@ @@ -121,6 +123,7 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ + $(XGETTEXT_FORMAT_FLAGS) $(XGETTEXT_FORMAT_FLAGS_PRIVATE) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ -- cgit v1.2.3