i18n: notes: mark comment for translation
Mark comment displayed when editing a note for translation. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
8c6d1f9807
commit
996ee6d27a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user