summaryrefslogtreecommitdiff
path: root/pathspec.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-07-14 15:35:26 +0700
committerJunio C Hamano <gitster@pobox.com>2013-07-15 10:56:06 -0700
commitf01d9820e768e7eb9eab4ad9a55a62317e0b23ad (patch)
treeebdc7016d8220a25c20d2f20154a0aa8e85fffed /pathspec.c
parent64acde94efd2906c3e20560c31c2957ac0b242c4 (diff)
downloadgit-f01d9820e768e7eb9eab4ad9a55a62317e0b23ad.tar.gz
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>
Diffstat (limited to 'pathspec.c')
-rw-r--r--pathspec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pathspec.c b/pathspec.c
index 133f8be98c..403095ba8c 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 == ':')