i18n: branch: mark comment when editing branch description for translation
authorVasco Almeida <vascomalmeida@sapo.pt>
Fri, 17 Jun 2016 21:54:15 +0000 (21:54 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jun 2016 22:46:10 +0000 (15:46 -0700)
When one issues git branch --edit-description branch_name, a edit with
that message commented out is opened. Mark that message for translation
in to order to be localized.

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
index 2ecde53bf838777e191926557c0c8190cdc7d09a..12203fdcc8179a41ba43ee87eb8f906bc45380e3 100644 (file)
@@ -614,9 +614,9 @@ static int edit_branch_description(const char *branch_name)
        if (!buf.len || buf.buf[buf.len-1] != '\n')
                strbuf_addch(&buf, '\n');
        strbuf_commented_addf(&buf,
-                   "Please edit the description for the branch\n"
-                   "  %s\n"
-                   "Lines starting with '%c' will be stripped.\n",
+                   _("Please edit the description for the branch\n"
+                     "  %s\n"
+                     "Lines starting with '%c' will be stripped.\n"),
                    branch_name, comment_line_char);
        if (write_file_gently(git_path(edit_description), "%s", buf.buf)) {
                strbuf_release(&buf);