diff options
author | Jean-Noël Avila <jn.avila@free.fr> | 2019-08-06 19:19:52 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-06 21:43:43 +0200 |
commit | 182f59daf04e5343a8965d84abe2cdae32ed5e81 (patch) | |
tree | e892d26d9926055a3550e25d3b2b436ff99f0f57 /builtin/fetch.c | |
parent | Git 2.23-rc1 (diff) | |
download | git-182f59daf04e5343a8965d84abe2cdae32ed5e81.tar.xz git-182f59daf04e5343a8965d84abe2cdae32ed5e81.zip |
l10n: reformat some localized strings for v2.23.0
Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | builtin/fetch.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 53ce99d2bb..717dd14e89 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -850,6 +850,15 @@ static int iterate_ref_map(void *cb_data, struct object_id *oid) return 0; } +static const char warn_show_forced_updates[] = +N_("Fetch normally indicates which branches had a forced update,\n" + "but that check has been disabled. To re-enable, use '--show-forced-updates'\n" + "flag or run 'git config fetch.showForcedUpdates true'."); +static const char warn_time_show_forced_updates[] = +N_("It took %.2f seconds to check forced updates. You can use\n" + "'--no-show-forced-updates' or run 'git config fetch.showForcedUpdates false'\n" + " to avoid this check.\n"); + static int store_updated_refs(const char *raw_url, const char *remote_name, int connectivity_checked, struct ref *ref_map) { @@ -1005,12 +1014,10 @@ static int store_updated_refs(const char *raw_url, const char *remote_name, if (advice_fetch_show_forced_updates) { if (!fetch_show_forced_updates) { - warning(_("Fetch normally indicates which branches had a forced update, but that check has been disabled.")); - warning(_("To re-enable, use '--show-forced-updates' flag or run 'git config fetch.showForcedUpdates true'.")); + warning(_(warn_show_forced_updates)); } else if (forced_updates_ms > FORCED_UPDATES_DELAY_WARNING_IN_MS) { - warning(_("It took %.2f seconds to check forced updates. You can use '--no-show-forced-updates'\n"), + warning(_(warn_time_show_forced_updates), forced_updates_ms / 1000.0); - warning(_("or run 'git config fetch.showForcedUpdates false' to avoid this check.\n")); } } |