Browse files

Makefile: extract Q_() source strings as ngettext()

The Q_() wrapper added by 0c9ea33 (i18n: add stub Q_() wrapper for
ngettext, 2011-03-09) needs to be noticed by xgettext.

Add an appropriate --keyword option to the Makefile, so that "make pot"
would notice the strings in the plural form marked with the wrapper.

Signed-off-by: Ævar Arnfjörð Bjarmason <>
Signed-off-by: Jonathan Nieder <>
Signed-off-by: Junio C Hamano <>
  • Loading branch information...
1 parent 642f85f commit ff46a49afadc92bf16ab1ec2dab6d31487de23cb @avar avar committed with gitster Apr 10, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
@@ -2051,7 +2051,8 @@ XGETTEXT_FLAGS = \
--add-comments \
--msgid-bugs-address="Git Mailing List <>" \
-XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --keyword=_ --keyword=N_ --language=C
+ --keyword=_ --keyword=N_ --keyword="Q_:1,2"
po/git.pot: $(LOCALIZED_C)

0 comments on commit ff46a49

Please sign in to comment.