# [PATCH] fixed translation error-1

1 messages from 2015-05-03 to 2015-05-03. Participants: Alangi Derick.
Thread: https://gitlist.dev/t/39240

## Alangi Derick, 2015-05-03 22:25

Subject: [PATCH] fixed translation error-1
Message-ID: <554769b8.e25bb40a.1c70.ffff88bd@mx.google.com>
URL: https://gitlist.dev/e/554769b8.e25bb40a.1c70.ffff88bd%40mx.google.com

```
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

```
