Skip to content

Commit 7465feb

Browse files
pcloudsgitster
authored andcommitted
sha1_file.c: mark strings for translation
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 13e0b0d commit 7465feb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sha1_file.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ unsigned char *use_pack(struct packed_git *p,
10421042
if (offset > (p->pack_size - 20))
10431043
die("offset beyond end of packfile (truncated pack?)");
10441044
if (offset < 0)
1045-
die("offset before end of packfile (broken .idx?)");
1045+
die(_("offset before end of packfile (broken .idx?)"));
10461046

10471047
if (!win || !in_window(win, offset)) {
10481048
if (win)
@@ -2367,11 +2367,11 @@ void check_pack_index_ptr(const struct packed_git *p, const void *vptr)
23672367
const unsigned char *start = p->index_data;
23682368
const unsigned char *end = start + p->index_size;
23692369
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?)"),
23712371
p->pack_name);
23722372
/* No need to check for underflow; .idx files must be at least 8 bytes */
23732373
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?)"),
23752375
p->pack_name);
23762376
}
23772377

0 commit comments

Comments
 (0)