summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2016-12-17 13:16:22 -0500
committerPaul Smith <psmith@gnu.org>2016-12-25 18:18:45 -0500
commit212cb00923606c89a0a00eff445f91405e5e459d (patch)
tree07631045ae78b7e595e070f55509aabc268dec0d /po
parentac90d80b2ab42cb2f87a9dadf1e84e26b2adfab6 (diff)
downloadmake-git-212cb00923606c89a0a00eff445f91405e5e459d.tar.gz
* po/Makevars, makeint.h, debug.h: Add xgettext C format flags.
Diffstat (limited to 'po')
-rw-r--r--po/Makevars8
1 files changed, 7 insertions, 1 deletions
diff --git a/po/Makevars b/po/Makevars
index ee018843..e32ea34b 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -26,7 +26,13 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
+# Ensure that all our magical output macros are correctly marked as
+# C (printf) format strings.
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ \
+ --flag=DB:2:c-format --flag=DBF:2:c-format --flag=DBS:2:c-format \
+ --flag=O:3:c-format --flag=OSN:3:c-format --flag=ONS:3:c-format \
+ --flag=OS:3:c-format --flag=OSS:3:c-format --flag=OSSS:3:c-format \
+ --flag=ON:3:c-format --flag=ONN:3:c-format
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding