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>
Vasco Almeida committed
Jul 28, 2016 at 11:26 UTC
996ee6d27a6b084b9647f2f0ab59f7e03582716c
1 file changed
+3
-2
builtin/notes.c
+3
-2
@@ -91,7 +91,7 @@ static const char * const git_notes_get_ref_usage[] = {
91
};
92
93
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:");
95
96
struct note_data {
97
int given;
@@ -179,7 +179,8 @@ static void prepare_note_data(const unsigned char *object, struct note_data *d,
179
copy_obj_to_fd(fd, old_note);
180
181
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)));
184
strbuf_addch(&buf, '\n');
185
write_or_die(fd, buf.buf, buf.len);
186