From: Alangi Derick <alangiderick@gmail.com>
To: unlisted-recipients:; (no To-header on input)
Subject: [PATCH] fixed translation error-1
Date: Sun, 3 May 2015 23:25:18 +0100 [thread overview]
Message-ID: <554769b8.e25bb40a.1c70.ffff88bd@mx.google.com> (raw)
Signed-off-by: Alangi Derick <alangiderick@gmail.com>
---
builtin/check-attr.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/builtin/check-attr.c b/builtin/check-attr.c
index 21d2bed..fba1b52 100644
--- a/builtin/check-attr.c
+++ b/builtin/check-attr.c
@@ -58,11 +58,11 @@ static void check_attr(const char *prefix, int cnt,
prefix_path(prefix, prefix ? strlen(prefix) : 0, file);
if (check != NULL) {
if (git_check_attr(full_path, cnt, check))
- die("git_check_attr died");
+ die(_("git_check_attr died"));
output_attr(cnt, check, file);
} else {
if (git_all_attrs(full_path, &cnt, &check))
- die("git_all_attrs died");
+ die(_("git_all_attrs died"));
output_attr(cnt, check, file);
free(check);
}
@@ -81,7 +81,7 @@ static void check_attr_stdin_paths(const char *prefix, int cnt,
if (line_termination && buf.buf[0] == '"') {
strbuf_reset(&nbuf);
if (unquote_c_style(&nbuf, buf.buf, NULL))
- die("line is badly quoted");
+ die(_("line is badly quoted"));
strbuf_swap(&buf, &nbuf);
}
check_attr(prefix, cnt, check, buf.buf);
@@ -93,7 +93,7 @@ static void check_attr_stdin_paths(const char *prefix, int cnt,
static NORETURN void error_with_usage(const char *msg)
{
- error("%s", msg);
+ error(_("%s"), msg);
usage_with_options(check_attr_usage, check_attr_options);
}
@@ -111,7 +111,7 @@ int cmd_check_attr(int argc, const char **argv, const char *prefix)
check_attr_usage, PARSE_OPT_KEEP_DASHDASH);
if (read_cache() < 0) {
- die("invalid cache");
+ die(_("invalid cache"));
}
if (cached_attrs)
@@ -169,7 +169,7 @@ int cmd_check_attr(int argc, const char **argv, const char *prefix)
name = argv[i];
a = git_attr(name);
if (!a)
- return error("%s: not a valid attribute name",
+ return error(_("%s: not a valid attribute name"),
name);
check[i].attr = a;
}
--
2.4.0.3.g9c6ac00.dirty
reply other threads:[~2015-05-04 12:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554769b8.e25bb40a.1c70.ffff88bd@mx.google.com \
--to=alangiderick@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).