Skip to content

Commit c3027be

Browse files
jnavilagitster
authored andcommitted
i18n: remove i18n from tag reflog message
The building of the reflog message is using strbuf, which is not friendly with internationalization frameworks. No other reflog messages are translated right now and switching all the messages to i18n would require a major rework of the way the messages are built. Signed-off-by: Jean-Noel Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 027a3b9 commit c3027be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

builtin/tag.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,36 +309,36 @@ static void create_reflog_msg(const unsigned char *sha1, struct strbuf *sb)
309309
if (rla) {
310310
strbuf_addstr(sb, rla);
311311
} else {
312-
strbuf_addstr(sb, _("tag: tagging "));
312+
strbuf_addstr(sb, "tag: tagging ");
313313
strbuf_add_unique_abbrev(sb, sha1, DEFAULT_ABBREV);
314314
}
315315

316316
strbuf_addstr(sb, " (");
317317
type = sha1_object_info(sha1, NULL);
318318
switch (type) {
319319
default:
320-
strbuf_addstr(sb, _("object of unknown type"));
320+
strbuf_addstr(sb, "object of unknown type");
321321
break;
322322
case OBJ_COMMIT:
323323
if ((buf = read_sha1_file(sha1, &type, &size)) != NULL) {
324324
subject_len = find_commit_subject(buf, &subject_start);
325325
strbuf_insert(sb, sb->len, subject_start, subject_len);
326326
} else {
327-
strbuf_addstr(sb, _("commit object"));
327+
strbuf_addstr(sb, "commit object");
328328
}
329329
free(buf);
330330

331331
if ((c = lookup_commit_reference(sha1)) != NULL)
332332
strbuf_addf(sb, ", %s", show_date(c->date, 0, DATE_MODE(SHORT)));
333333
break;
334334
case OBJ_TREE:
335-
strbuf_addstr(sb, _("tree object"));
335+
strbuf_addstr(sb, "tree object");
336336
break;
337337
case OBJ_BLOB:
338-
strbuf_addstr(sb, _("blob object"));
338+
strbuf_addstr(sb, "blob object");
339339
break;
340340
case OBJ_TAG:
341-
strbuf_addstr(sb, _("other tag object"));
341+
strbuf_addstr(sb, "other tag object");
342342
break;
343343
}
344344
strbuf_addch(sb, ')');

0 commit comments

Comments
 (0)