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 <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jean-Noel Avila committed
Apr 30, 2017 at 23:32 UTC
c3027be9d1962b3bf839f8e04eb05a86bc871ee9
1 file changed
+6
-6
builtin/tag.c
+6
-6
@@ -309,7 +309,7 @@ static void create_reflog_msg(const unsigned char *sha1, struct strbuf *sb)
309
if (rla) {
310
strbuf_addstr(sb, rla);
311
} else {
312
- strbuf_addstr(sb, _("tag: tagging "));
312
+ strbuf_addstr(sb, "tag: tagging ");
313
strbuf_add_unique_abbrev(sb, sha1, DEFAULT_ABBREV);
314
}
315
@@ -317,14 +317,14 @@ static void create_reflog_msg(const unsigned char *sha1, struct strbuf *sb)
317
type = sha1_object_info(sha1, NULL);
318
switch (type) {
319
default:
320
- strbuf_addstr(sb, _("object of unknown type"));
320
+ strbuf_addstr(sb, "object of unknown type");
321
break;
322
case OBJ_COMMIT:
323
if ((buf = read_sha1_file(sha1, &type, &size)) != NULL) {
324
subject_len = find_commit_subject(buf, &subject_start);
325
strbuf_insert(sb, sb->len, subject_start, subject_len);
326
} else {
327
- strbuf_addstr(sb, _("commit object"));
327
+ strbuf_addstr(sb, "commit object");
328
}
329
free(buf);
330
@@ -332,13 +332,13 @@ static void create_reflog_msg(const unsigned char *sha1, struct strbuf *sb)
332
strbuf_addf(sb, ", %s", show_date(c->date, 0, DATE_MODE(SHORT)));
333
break;
334
case OBJ_TREE:
335
- strbuf_addstr(sb, _("tree object"));
335
+ strbuf_addstr(sb, "tree object");
336
break;
337
case OBJ_BLOB:
338
- strbuf_addstr(sb, _("blob object"));
338
+ strbuf_addstr(sb, "blob object");
339
break;
340
case OBJ_TAG:
341
- strbuf_addstr(sb, _("other tag object"));
341
+ strbuf_addstr(sb, "other tag object");
342
break;
343
}
344
strbuf_addch(sb, ')');