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>
This commit is contained in:
parent
8785c42532
commit
7ab1d44f33
14
transport.c
14
transport.c
@ -59,7 +59,7 @@ static void set_upstreams(struct transport *transport, struct ref *refs,
|
|||||||
localname + 11, transport->remote->name,
|
localname + 11, transport->remote->name,
|
||||||
remotename);
|
remotename);
|
||||||
else
|
else
|
||||||
printf("Would set upstream of '%s' to '%s' of '%s'\n",
|
printf(_("Would set upstream of '%s' to '%s' of '%s'\n"),
|
||||||
localname + 11, remotename + 11,
|
localname + 11, remotename + 11,
|
||||||
transport->remote->name);
|
transport->remote->name);
|
||||||
}
|
}
|
||||||
@ -148,7 +148,7 @@ static int set_git_option(struct git_transport_options *opts,
|
|||||||
char *end;
|
char *end;
|
||||||
opts->depth = strtol(value, &end, 0);
|
opts->depth = strtol(value, &end, 0);
|
||||||
if (*end)
|
if (*end)
|
||||||
die("transport: invalid depth option '%s'", value);
|
die(_("transport: invalid depth option '%s'"), value);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -767,19 +767,19 @@ static void die_with_unpushed_submodules(struct string_list *needs_pushing)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
fprintf(stderr, "The following submodule paths contain changes that can\n"
|
fprintf(stderr, _("The following submodule paths contain changes that can\n"
|
||||||
"not be found on any remote:\n");
|
"not be found on any remote:\n"));
|
||||||
for (i = 0; i < needs_pushing->nr; i++)
|
for (i = 0; i < needs_pushing->nr; i++)
|
||||||
printf(" %s\n", needs_pushing->items[i].string);
|
printf(" %s\n", needs_pushing->items[i].string);
|
||||||
fprintf(stderr, "\nPlease try\n\n"
|
fprintf(stderr, _("\nPlease try\n\n"
|
||||||
" git push --recurse-submodules=on-demand\n\n"
|
" git push --recurse-submodules=on-demand\n\n"
|
||||||
"or cd to the path and use\n\n"
|
"or cd to the path and use\n\n"
|
||||||
" git push\n\n"
|
" git push\n\n"
|
||||||
"to push them to a remote.\n\n");
|
"to push them to a remote.\n\n"));
|
||||||
|
|
||||||
string_list_clear(needs_pushing, 0);
|
string_list_clear(needs_pushing, 0);
|
||||||
|
|
||||||
die("Aborting.");
|
die(_("Aborting."));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int run_pre_push_hook(struct transport *transport,
|
static int run_pre_push_hook(struct transport *transport,
|
||||||
|
Loading…
Reference in New Issue
Block a user