From: Nguyễn Thái Ngọc Duy Date: Sun, 14 Jul 2013 08:35:26 +0000 (+0700) Subject: pathspec: i18n-ize error strings in pathspec parsing code X-Git-Tag: v1.8.5-rc0~9^2~48 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=f01d9820e768e7eb9eab4ad9a55a62317e0b23ad;p=git-core%2Fgit.git pathspec: i18n-ize error strings in pathspec parsing code Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- diff --git a/pathspec.c b/pathspec.c index 133f8be98..403095ba8 100644 --- a/pathspec.c +++ b/pathspec.c @@ -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 */ @@ -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 == ':')