threads / patch / 39240

patchfixed translation error-1

Subject: [PATCH] fixed translation error-1

## tl;dr

One message between May 3, 2015 and May 3, 2015. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Alangi Derick· May 3, 2015, 22:25 UTC · lore
Signed-off-by: Alangi Derick <alangiderick@gmail.com>
---
 builtin/check-attr.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Show changes to builtin/check-attr.c +6 −6
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

← back to recent threads