diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:48:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:48:38 -0700 |
commit | 768ededa9c4e804ead6d473d4fe3a8092a77b05c (patch) | |
tree | 6af33e1d498cf14f80618086adc601331d07fc7e /builtin | |
parent | Merge branch 'js/rebase-i-progress-tidy' (diff) | |
parent | i18n: config: unfold error messages marked for translation (diff) | |
download | tgif-768ededa9c4e804ead6d473d4fe3a8092a77b05c.tar.xz |
Merge branch 'va/i18n'
More i18n marking.
* va/i18n:
i18n: config: unfold error messages marked for translation
i18n: notes: mark comment for translation
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/notes.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builtin/notes.c b/builtin/notes.c index 0572051762..f848b89692 100644 --- a/builtin/notes.c +++ b/builtin/notes.c @@ -91,7 +91,7 @@ static const char * const git_notes_get_ref_usage[] = { }; static const char note_template[] = - "\nWrite/edit the notes for the following object:\n"; + N_("Write/edit the notes for the following object:"); struct note_data { int given; @@ -179,7 +179,8 @@ static void prepare_note_data(const unsigned char *object, struct note_data *d, copy_obj_to_fd(fd, old_note); strbuf_addch(&buf, '\n'); - strbuf_add_commented_lines(&buf, note_template, strlen(note_template)); + strbuf_add_commented_lines(&buf, "\n", strlen("\n")); + strbuf_add_commented_lines(&buf, _(note_template), strlen(_(note_template))); strbuf_addch(&buf, '\n'); write_or_die(fd, buf.buf, buf.len); |