[PATCH] fixed translation error-1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alangi Derick <alangiderick@xxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]