Skip to content

Commit 996ee6d

Browse files
vascoolgitster
authored andcommitted
i18n: notes: mark comment for translation
Mark comment displayed when editing a note for translation. Signed-off-by: Vasco Almeida <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8c6d1f9 commit 996ee6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builtin/notes.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static const char * const git_notes_get_ref_usage[] = {
9191
};
9292

9393
static const char note_template[] =
94-
"\nWrite/edit the notes for the following object:\n";
94+
N_("Write/edit the notes for the following object:");
9595

9696
struct note_data {
9797
int given;
@@ -179,7 +179,8 @@ static void prepare_note_data(const unsigned char *object, struct note_data *d,
179179
copy_obj_to_fd(fd, old_note);
180180

181181
strbuf_addch(&buf, '\n');
182-
strbuf_add_commented_lines(&buf, note_template, strlen(note_template));
182+
strbuf_add_commented_lines(&buf, "\n", strlen("\n"));
183+
strbuf_add_commented_lines(&buf, _(note_template), strlen(_(note_template)));
183184
strbuf_addch(&buf, '\n');
184185
write_or_die(fd, buf.buf, buf.len);
185186

0 commit comments

Comments
 (0)