pathspec: i18n-ize error strings in pathspec parsing code
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
64acde94ef
commit
f01d9820e7
@ -167,11 +167,11 @@ static const char *prefix_pathspec(const char *prefix, int prefixlen, const char
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ARRAY_SIZE(pathspec_magic) <= i)
|
if (ARRAY_SIZE(pathspec_magic) <= i)
|
||||||
die("Invalid pathspec magic '%.*s' in '%s'",
|
die(_("Invalid pathspec magic '%.*s' in '%s'"),
|
||||||
(int) len, copyfrom, elt);
|
(int) len, copyfrom, elt);
|
||||||
}
|
}
|
||||||
if (*copyfrom != ')')
|
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++;
|
copyfrom++;
|
||||||
} else {
|
} else {
|
||||||
/* shorthand */
|
/* shorthand */
|
||||||
@ -188,7 +188,7 @@ static const char *prefix_pathspec(const char *prefix, int prefixlen, const char
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ARRAY_SIZE(pathspec_magic) <= i)
|
if (ARRAY_SIZE(pathspec_magic) <= i)
|
||||||
die("Unimplemented pathspec magic '%c' in '%s'",
|
die(_("Unimplemented pathspec magic '%c' in '%s'"),
|
||||||
ch, elt);
|
ch, elt);
|
||||||
}
|
}
|
||||||
if (*copyfrom == ':')
|
if (*copyfrom == ':')
|
||||||
|
Loading…
Reference in New Issue
Block a user