Skip to content

Commit ff46a49

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 642f85f commit ff46a49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,8 @@ XGETTEXT_FLAGS = \
20512051
--add-comments \
20522052
--msgid-bugs-address="Git Mailing List <[email protected]>" \
20532053
--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"
20552056
LOCALIZED_C := $(C_OBJ:o=c)
20562057

20572058
po/git.pot: $(LOCALIZED_C)

0 commit comments

Comments
 (0)