@matheusbsbs / matheus-bagliano / commits / ff46a49afa
Fork 0

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 <avarab@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Apr 10, 2011 at 19:37 UTC ff46a49afadc92bf16ab1ec2dab6d31487de23cb
1 file changed +2 -1
Makefile
+2 -1
@@ -2051,7 +2051,8 @@ XGETTEXT_FLAGS = \
2051 --add-comments \
2052 --msgid-bugs-address="Git Mailing List <git@vger.kernel.org>" \
2053 --from-code=UTF-8
2054 -XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --keyword=_ --keyword=N_ --language=C
2054 +XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --language=C \
2055 + --keyword=_ --keyword=N_ --keyword="Q_:1,2"
2056 LOCALIZED_C := $(C_OBJ:o=c)
2057
2058 po/git.pot: $(LOCALIZED_C)