[PATCH v3 39/39] i18n: branch: mark comment when editing branch description for translation
- From
Vasco Almeida <vascomalmeida@sapo.pt>
- Date
- Jun 1, 2016, 18:13 UTC
- Message-ID
- <1464804783-10195-10-git-send-email-vascomalmeida@sapo.pt>
- In-Reply-To
- <1464799289-7639-1-git-send-email-vascomalmeida@sapo.pt>
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> --- builtin/branch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/builtin/branch.c b/builtin/branch.c index 2ecde53..12203fd 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);
-- 2.7.3