summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-02-27 14:49:33 +0700
committerJunio C Hamano <gitster@pobox.com>2016-02-27 09:54:57 -0800
commit7465feba513a8bd3d47f27630ccc9ab7e82d916c (patch)
tree477744caf9cde9dde293cf45d203ef069279d755 /sha1_file.c
parent13e0b0d3dc76353632dcb0bc63cdf03426154317 (diff)
downloadgit-7465feba513a8bd3d47f27630ccc9ab7e82d916c.tar.gz
sha1_file.c: mark strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sha1_file.c b/sha1_file.c
index 4a3a032d53..b8da68baa6 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -1042,7 +1042,7 @@ unsigned char *use_pack(struct packed_git *p,
if (offset > (p->pack_size - 20))
die("offset beyond end of packfile (truncated pack?)");
if (offset < 0)
- die("offset before end of packfile (broken .idx?)");
+ die(_("offset before end of packfile (broken .idx?)"));
if (!win || !in_window(win, offset)) {
if (win)
@@ -2367,11 +2367,11 @@ void check_pack_index_ptr(const struct packed_git *p, const void *vptr)
const unsigned char *start = p->index_data;
const unsigned char *end = start + p->index_size;
if (ptr < start)
- die("offset before start of pack index for %s (corrupt index?)",
+ die(_("offset before start of pack index for %s (corrupt index?)"),
p->pack_name);
/* No need to check for underflow; .idx files must be at least 8 bytes */
if (ptr >= end - 8)
- die("offset beyond end of pack index for %s (truncated index?)",
+ die(_("offset beyond end of pack index for %s (truncated index?)"),
p->pack_name);
}