git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fixed translation error-1
@ 2015-05-03 22:25 Alangi Derick
  0 siblings, 0 replies; only message in thread
From: Alangi Derick @ 2015-05-03 22:25 UTC (permalink / 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-04 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-03 22:25 [PATCH] fixed translation error-1 Alangi Derick

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).