Skip to content

Commit b18237f

Browse files
vascoolgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f813fb4 commit b18237f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/branch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,9 @@ static int edit_branch_description(const char *branch_name)
614614
if (!buf.len || buf.buf[buf.len-1] != '\n')
615615
strbuf_addch(&buf, '\n');
616616
strbuf_commented_addf(&buf,
617-
"Please edit the description for the branch\n"
618-
" %s\n"
619-
"Lines starting with '%c' will be stripped.\n",
617+
_("Please edit the description for the branch\n"
618+
" %s\n"
619+
"Lines starting with '%c' will be stripped.\n"),
620620
branch_name, comment_line_char);
621621
if (write_file_gently(git_path(edit_description), "%s", buf.buf)) {
622622
strbuf_release(&buf);

0 commit comments

Comments
 (0)