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>

Nguyễn Thái Ngọc Duy committed Feb 27, 2016 at 14:49 UTC 7465feba513a8bd3d47f27630ccc9ab7e82d916c
1 file changed +3 -3
sha1_file.c
+3 -3
@@ -1042,7 +1042,7 @@ unsigned char *use_pack(struct packed_git *p,
1042 if (offset > (p->pack_size - 20))
1043 die("offset beyond end of packfile (truncated pack?)");
1044 if (offset < 0)
1045 - die("offset before end of packfile (broken .idx?)");
1045 + die(_("offset before end of packfile (broken .idx?)"));
1046
1047 if (!win || !in_window(win, offset)) {
1048 if (win)
@@ -2367,11 +2367,11 @@ void check_pack_index_ptr(const struct packed_git *p, const void *vptr)
2367 const unsigned char *start = p->index_data;
2368 const unsigned char *end = start + p->index_size;
2369 if (ptr < start)
2370 - die("offset before start of pack index for %s (corrupt index?)",
2370 + die(_("offset before start of pack index for %s (corrupt index?)"),
2371 p->pack_name);
2372 /* No need to check for underflow; .idx files must be at least 8 bytes */
2373 if (ptr >= end - 8)
2374 - die("offset beyond end of pack index for %s (truncated index?)",
2374 + die(_("offset beyond end of pack index for %s (truncated index?)"),
2375 p->pack_name);
2376 }
2377