From: Vasco Almeida Date: Fri, 17 Jun 2016 21:54:15 +0000 (+0000) Subject: i18n: branch: mark comment when editing branch description for translation X-Git-Tag: v2.10.0-rc0~130^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b18237f4e354ed653ba5b7b0eacf509dd27f9dd8?ds=inline;hp=--cc i18n: branch: mark comment when editing branch description for translation 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 Signed-off-by: Junio C Hamano --- b18237f4e354ed653ba5b7b0eacf509dd27f9dd8 diff --git a/builtin/branch.c b/builtin/branch.c index 2ecde53bf8..12203fdcc8 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -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);