summaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2011-04-29 11:36:23 +0200
committerJunio C Hamano <gitster@pobox.com>2011-04-29 11:22:56 -0700
commit7478ac57c4b5cd589cb134d88e8cd78db1247b30 (patch)
treea1b26eced25b7aff0981f8ce07fd074583b4c29a /diff.c
parent51670fc87e193a42022087d8d773cf2315736604 (diff)
downloadgit-7478ac57c4b5cd589cb134d88e8cd78db1247b30.tar.gz
Mark dirstat error messages for translation
Suggested-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/diff.c b/diff.c
index 5f497fac52..097eb4c47a 100644
--- a/diff.c
+++ b/diff.c
@@ -101,12 +101,12 @@ static int parse_dirstat_params(struct diff_options *options, const char *params
if (end - p == p_len)
options->dirstat_permille = permille;
else {
- strbuf_addf(errmsg, " Failed to parse dirstat cut-off percentage '%.*s'\n",
+ strbuf_addf(errmsg, _(" Failed to parse dirstat cut-off percentage '%.*s'\n"),
p_len, p);
ret++;
}
} else {
- strbuf_addf(errmsg, " Unknown dirstat parameter '%.*s'\n",
+ strbuf_addf(errmsg, _(" Unknown dirstat parameter '%.*s'\n"),
p_len, p);
ret++;
}
@@ -202,7 +202,7 @@ int git_diff_basic_config(const char *var, const char *value, void *cb)
struct strbuf errmsg = STRBUF_INIT;
default_diff_options.dirstat_permille = diff_dirstat_permille_default;
if (parse_dirstat_params(&default_diff_options, value, &errmsg))
- warning("Found errors in 'diff.dirstat' config variable:\n%s",
+ warning(_("Found errors in 'diff.dirstat' config variable:\n%s"),
errmsg.buf);
strbuf_release(&errmsg);
diff_dirstat_permille_default = default_diff_options.dirstat_permille;
@@ -3260,7 +3260,7 @@ static int parse_dirstat_opt(struct diff_options *options, const char *params)
{
struct strbuf errmsg = STRBUF_INIT;
if (parse_dirstat_params(options, params, &errmsg))
- die("Failed to parse --dirstat/-X option parameter:\n%s",
+ die(_("Failed to parse --dirstat/-X option parameter:\n%s"),
errmsg.buf);
strbuf_release(&errmsg);
/*