From c3027be9d1962b3bf839f8e04eb05a86bc871ee9 Mon Sep 17 00:00:00 2001 From: Jean-Noel Avila Date: Sun, 30 Apr 2017 23:32:47 +0200 Subject: 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 Signed-off-by: Junio C Hamano --- builtin/tag.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/builtin/tag.c b/builtin/tag.c index 222404522..bdf1e88e9 100644 --- a/builtin/tag.c +++ b/builtin/tag.c @@ -309,7 +309,7 @@ static void create_reflog_msg(const unsigned char *sha1, struct strbuf *sb) if (rla) { strbuf_addstr(sb, rla); } else { - strbuf_addstr(sb, _("tag: tagging ")); + strbuf_addstr(sb, "tag: tagging "); strbuf_add_unique_abbrev(sb, sha1, DEFAULT_ABBREV); } @@ -317,14 +317,14 @@ static void create_reflog_msg(const unsigned char *sha1, struct strbuf *sb) type = sha1_object_info(sha1, NULL); switch (type) { default: - strbuf_addstr(sb, _("object of unknown type")); + strbuf_addstr(sb, "object of unknown type"); break; case OBJ_COMMIT: if ((buf = read_sha1_file(sha1, &type, &size)) != NULL) { subject_len = find_commit_subject(buf, &subject_start); strbuf_insert(sb, sb->len, subject_start, subject_len); } else { - strbuf_addstr(sb, _("commit object")); + strbuf_addstr(sb, "commit object"); } free(buf); @@ -332,13 +332,13 @@ static void create_reflog_msg(const unsigned char *sha1, struct strbuf *sb) strbuf_addf(sb, ", %s", show_date(c->date, 0, DATE_MODE(SHORT))); break; case OBJ_TREE: - strbuf_addstr(sb, _("tree object")); + strbuf_addstr(sb, "tree object"); break; case OBJ_BLOB: - strbuf_addstr(sb, _("blob object")); + strbuf_addstr(sb, "blob object"); break; case OBJ_TAG: - strbuf_addstr(sb, _("other tag object")); + strbuf_addstr(sb, "other tag object"); break; } strbuf_addch(sb, ')'); -- cgit v1.2.1 From 78bde923f16daccf590c78a619fbdbbe2a3d82ac Mon Sep 17 00:00:00 2001 From: Peter Krefting Date: Sun, 30 Apr 2017 23:32:48 +0200 Subject: i18n: read-cache: typofix Signed-off-by: Peter Krefting Signed-off-by: Jean-Noel Avila Signed-off-by: Junio C Hamano --- read-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/read-cache.c b/read-cache.c index b3d0f3c30..0d0081a11 100644 --- a/read-cache.c +++ b/read-cache.c @@ -2372,7 +2372,7 @@ static int should_delete_shared_index(const char *shared_index_path) if (!expiration) return 0; if (stat(shared_index_path, &st)) - return error_errno(_("could not stat '%s"), shared_index_path); + return error_errno(_("could not stat '%s'"), shared_index_path); if (st.st_mtime > expiration) return 0; -- cgit v1.2.1