git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile: extract Q_() source strings as ngettext()

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 10, 2011, 19:54 UTC
Message-ID
<20110410195436.GD28163@elie>
In-Reply-To
<1302464221-23381-1-git-send-email-avarab@gmail.com>
Ævar Arnfjörð Bjarmason wrote:
Show 9 quoted lines
> --- a/Makefile
> +++ b/Makefile
> @@ -2051,7 +2051,7 @@ XGETTEXT_FLAGS = \
>  	--add-comments \
>  	--msgid-bugs-address="Git Mailing List <git@vger.kernel.org>" \
>  	--from-code=UTF-8
> -XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --keyword=_ --keyword=N_ --language=C
> +XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --keyword=_ --keyword=N_ --keyword="Q_:1,2" --language=C
>  LOCALIZED_C := $(C_OBJ:o=c)

Ack. The line is getting long. Maybe it would make sense to split it up (like this)?

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index 2441d56..2dbe555 100644
--- a/Makefile
+++ b/Makefile
@@ -2051,7 +2051,8 @@ XGETTEXT_FLAGS = \
 	--add-comments \
 	--msgid-bugs-address="Git Mailing List <git@vger.kernel.org>" \
 	--from-code=UTF-8
-XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --keyword=_ --keyword=N_ --keyword="Q_:1,2" --language=C
+XGETTEXT_FLAGS_C = $(XGETTEXT_FLAGS) --language=C \
+	--keyword=_ --keyword=N_ --keyword=Q_:1,2
 LOCALIZED_C := $(C_OBJ:o=c)
 
 po/git.pot: $(LOCALIZED_C)
-- 
1.7.5.rc0
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 2 of 3 in “Makefile: extract Q_() source strings as ngettext()”
  1. Makefile: extract Q_() source strings as ngettext()Ævar Arnfjörð Bjarmason, Apr 10, 2011
  2. Jonathan NiederApr 10, 2011
  3. Junio C HamanoApr 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.