Skip to content

Commit

Permalink
pathspec: i18n-ize error strings in pathspec parsing code
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Nguyễn Thái Ngọc Duy authored and Junio C Hamano committed Jul 15, 2013
1 parent 64acde9 commit f01d982
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pathspec.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ static const char *prefix_pathspec(const char *prefix, int prefixlen, const char
break;
}
if (ARRAY_SIZE(pathspec_magic) <= i)
die("Invalid pathspec magic '%.*s' in '%s'",
die(_("Invalid pathspec magic '%.*s' in '%s'"),
(int) len, copyfrom, elt);
}
if (*copyfrom != ')')
die("Missing ')' at the end of pathspec magic in '%s'", elt);
die(_("Missing ')' at the end of pathspec magic in '%s'"), elt);
copyfrom++;
} else {
/* shorthand */
Expand All @@ -188,7 +188,7 @@ static const char *prefix_pathspec(const char *prefix, int prefixlen, const char
break;
}
if (ARRAY_SIZE(pathspec_magic) <= i)
die("Unimplemented pathspec magic '%c' in '%s'",
die(_("Unimplemented pathspec magic '%c' in '%s'"),
ch, elt);
}
if (*copyfrom == ':')
Expand Down

0 comments on commit f01d982

Please sign in to comment.