@matheusbsbs / matheus-bagliano / commits / 788a3755df
Fork 0

i18n: git-archive basic messages

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Feb 22, 2011 at 23:42 UTC 788a3755df6deadde49fd4bf4edf212b33f1363d
1 file changed +7 -7
builtin/archive.c
+7 -7
@@ -14,10 +14,10 @@ static void create_output_file(const char *output_file)
14 {
15 int output_fd = open(output_file, O_CREAT | O_WRONLY | O_TRUNC, 0666);
16 if (output_fd < 0)
17 - die_errno("could not create archive file '%s'", output_file);
17 + die_errno(_("could not create archive file '%s'"), output_file);
18 if (output_fd != 1) {
19 if (dup2(output_fd, 1) < 0)
20 - die_errno("could not redirect output");
20 + die_errno(_("could not redirect output"));
21 else
22 close(output_fd);
23 }
@@ -33,7 +33,7 @@ static int run_remote_archiver(int argc, const char **argv,
33
34 _remote = remote_get(remote);
35 if (!_remote->url[0])
36 - die("git archive: Remote with no URL");
36 + die(_("git archive: Remote with no URL"));
37 transport = transport_get(_remote, _remote->url[0]);
38 transport_connect(transport, "git-upload-archive", exec, fd);
39
@@ -43,18 +43,18 @@ static int run_remote_archiver(int argc, const char **argv,
43
44 len = packet_read_line(fd[0], buf, sizeof(buf));
45 if (!len)
46 - die("git archive: expected ACK/NAK, got EOF");
46 + die(_("git archive: expected ACK/NAK, got EOF"));
47 if (buf[len-1] == '\n')
48 buf[--len] = 0;
49 if (strcmp(buf, "ACK")) {
50 if (len > 5 && !prefixcmp(buf, "NACK "))
51 - die("git archive: NACK %s", buf + 5);
52 - die("git archive: protocol error");
51 + die(_("git archive: NACK %s"), buf + 5);
52 + die(_("git archive: protocol error"));
53 }
54
55 len = packet_read_line(fd[0], buf, sizeof(buf));
56 if (len)
57 - die("git archive: expected a flush");
57 + die(_("git archive: expected a flush"));
58
59 /* Now, start reading from fd[0] and spit it out to stdout */
60 rv = recv_sideband("archive", fd[0], 1);