From: Ævar Arnfjörð Bjarmason Date: Thu, 02 Sep 2010 19:40:42 GMT Subject: [PATCH 21/25] gettextize: git-tag tag_template message Message-ID: <1283456446-22577-22-git-send-email-avarab@gmail.com> In-Reply-To: <1283373845-2022-1-git-send-email-avarab@gmail.com> Mark the tag_template message as translatable with N_() and then use it later with _(). Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/tag.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builtin/tag.c b/builtin/tag.c index 7870d87..4841621 100644 --- a/builtin/tag.c +++ b/builtin/tag.c @@ -215,10 +215,10 @@ static int do_sign(struct strbuf *buffer) } static const char tag_template[] = - "\n" + N_("\n" "#\n" "# Write a tag message\n" - "#\n"; + "#\n"); static void set_signingkey(const char *value) { @@ -313,7 +313,7 @@ static void create_tag(const unsigned char *object, const char *tag, if (!is_null_sha1(prev)) write_tag_body(fd, prev); else - write_or_die(fd, tag_template, strlen(tag_template)); + write_or_die(fd, _(tag_template), strlen(_(tag_template))); close(fd); if (launch_editor(path, buf, NULL)) { -- 1.7.2.2.614.g1dc9