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>

Nguyễn Thái Ngọc Duy committed Jul 14, 2013 at 15:35 UTC f01d9820e768e7eb9eab4ad9a55a62317e0b23ad
1 file changed +3 -3
pathspec.c
+3 -3
@@ -167,11 +167,11 @@ static const char *prefix_pathspec(const char *prefix, int prefixlen, const char
167 break;
168 }
169 if (ARRAY_SIZE(pathspec_magic) <= i)
170 - die("Invalid pathspec magic '%.*s' in '%s'",
170 + die(_("Invalid pathspec magic '%.*s' in '%s'"),
171 (int) len, copyfrom, elt);
172 }
173 if (*copyfrom != ')')
174 - die("Missing ')' at the end of pathspec magic in '%s'", elt);
174 + die(_("Missing ')' at the end of pathspec magic in '%s'"), elt);
175 copyfrom++;
176 } else {
177 /* shorthand */
@@ -188,7 +188,7 @@ static const char *prefix_pathspec(const char *prefix, int prefixlen, const char
188 break;
189 }
190 if (ARRAY_SIZE(pathspec_magic) <= i)
191 - die("Unimplemented pathspec magic '%c' in '%s'",
191 + die(_("Unimplemented pathspec magic '%c' in '%s'"),
192 ch, elt);
193 }
194 if (*copyfrom == ':')