i18n: transport: mark strings for translation

Mark one printf string and one error string for translation. Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Vasco Almeida committed Jun 17, 2016 at 20:20 UTC 7ab1d44f3316ccab63c5df39fda36ba9b74c4068
1 file changed +10 -10
transport.c
+10 -10
@@ -59,7 +59,7 @@ static void set_upstreams(struct transport *transport, struct ref *refs,
59 localname + 11, transport->remote->name,
60 remotename);
61 else
62 - printf("Would set upstream of '%s' to '%s' of '%s'\n",
62 + printf(_("Would set upstream of '%s' to '%s' of '%s'\n"),
63 localname + 11, remotename + 11,
64 transport->remote->name);
65 }
@@ -148,7 +148,7 @@ static int set_git_option(struct git_transport_options *opts,
148 char *end;
149 opts->depth = strtol(value, &end, 0);
150 if (*end)
151 - die("transport: invalid depth option '%s'", value);
151 + die(_("transport: invalid depth option '%s'"), value);
152 }
153 return 0;
154 }
@@ -767,19 +767,19 @@ static void die_with_unpushed_submodules(struct string_list *needs_pushing)
767 {
768 int i;
769
770 - fprintf(stderr, "The following submodule paths contain changes that can\n"
771 - "not be found on any remote:\n");
770 + fprintf(stderr, _("The following submodule paths contain changes that can\n"
771 + "not be found on any remote:\n"));
772 for (i = 0; i < needs_pushing->nr; i++)
773 printf(" %s\n", needs_pushing->items[i].string);
774 - fprintf(stderr, "\nPlease try\n\n"
775 - " git push --recurse-submodules=on-demand\n\n"
776 - "or cd to the path and use\n\n"
777 - " git push\n\n"
778 - "to push them to a remote.\n\n");
774 + fprintf(stderr, _("\nPlease try\n\n"
775 + " git push --recurse-submodules=on-demand\n\n"
776 + "or cd to the path and use\n\n"
777 + " git push\n\n"
778 + "to push them to a remote.\n\n"));
779
780 string_list_clear(needs_pushing, 0);
781
782 - die("Aborting.");
782 + die(_("Aborting."));
783 }
784
785 static int run_pre_push_hook(struct transport *transport,