From: Kashav Madan <kshvmdn@xxxxxxxxx> There are three callsites of git_prompt() that ask the user for "yes/no" confirmation, but the one in help.c, used for auto-correction, is formatted differently from the others. Update that format string to make the prompt look more consistent, by adding a space after the prompt and enclosing the choices in [] instead of (). Signed-off-by: Kashav Madan <kshvmdn@xxxxxxxxx> --- help.c | 2 +- po/bg.po | 4 ++-- po/ca.po | 4 ++-- po/de.po | 4 ++-- po/es.po | 4 ++-- po/fr.po | 4 ++-- po/git.pot | 2 +- po/id.po | 2 +- po/pl.po | 4 ++-- po/sv.po | 4 ++-- po/tr.po | 4 ++-- po/vi.po | 4 ++-- po/zh_CN.po | 4 ++-- po/zh_TW.po | 4 ++-- 14 files changed, 25 insertions(+), 25 deletions(-) diff --git a/help.c b/help.c index 973e47cdc30..2cd08b199c2 100644 --- a/help.c +++ b/help.c @@ -643,7 +643,7 @@ const char *help_unknown_cmd(const char *cmd) else if (autocorrect == AUTOCORRECT_PROMPT) { char *answer; struct strbuf msg = STRBUF_INIT; - strbuf_addf(&msg, _("Run '%s' instead? (y/N)"), assumed); + strbuf_addf(&msg, _("Run '%s' instead? [y/N] "), assumed); answer = git_prompt(msg.buf, PROMPT_ECHO); strbuf_release(&msg); if (!(starts_with(answer, "y") || diff --git a/po/bg.po b/po/bg.po index 5f768a72102..5933ea51b06 100644 --- a/po/bg.po +++ b/po/bg.po @@ -4800,8 +4800,8 @@ msgstr "" #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Да се изпълни „%s“ вместо това? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Да се изпълни „%s“ вместо това? [y/N] " #: help.c:654 #, c-format diff --git a/po/ca.po b/po/ca.po index 8419c7fe04f..0c1084d8733 100644 --- a/po/ca.po +++ b/po/ca.po @@ -4665,8 +4665,8 @@ msgstr "El procés continuarà, pressuposant que volíeu dir «%s»." #: help.c:646 #, c-format, fuzzy -msgid "Run '%s' instead? (y/N)" -msgstr "Voleu executar «%s»? (s/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Voleu executar «%s»? [s/N] " #: help.c:654 #, c-format diff --git a/po/de.po b/po/de.po index 367cd73c5a4..4afe6f94325 100644 --- a/po/de.po +++ b/po/de.po @@ -4620,8 +4620,8 @@ msgstr "Setze fort unter der Annahme, dass Sie '%s' meinten." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Stattdessen '%s' ausführen? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Stattdessen '%s' ausführen? [y/N] " #: help.c:654 #, c-format diff --git a/po/es.po b/po/es.po index 3877b1351e6..472a633a8f2 100644 --- a/po/es.po +++ b/po/es.po @@ -4565,8 +4565,8 @@ msgstr "Continuando asumiendo que quisiste decir '%s'." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Ejecutar '%s' en su lugar? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Ejecutar '%s' en su lugar? [y/N] " #: help.c:654 #, c-format diff --git a/po/fr.po b/po/fr.po index 11b83570f71..b9c111c096b 100644 --- a/po/fr.po +++ b/po/fr.po @@ -4698,8 +4698,8 @@ msgstr "Continuons en supposant que vous avez voulu dire '%s'." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Lancer '%s' à la place ? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Lancer '%s' à la place ? [y/N] " #: help.c:654 #, c-format diff --git a/po/git.pot b/po/git.pot index 0fe5805d8ec..c4ff320187a 100644 --- a/po/git.pot +++ b/po/git.pot @@ -4246,7 +4246,7 @@ msgstr "" #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" +msgid "Run '%s' instead? [y/N] " msgstr "" #: help.c:654 diff --git a/po/id.po b/po/id.po index 3a9f703a106..4ffe1005120 100644 --- a/po/id.po +++ b/po/id.po @@ -4415,7 +4415,7 @@ msgstr "Melanjutkan di bawah asumsi bahwa maksud Anda '%s'." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" +msgid "Run '%s' instead? [y/N] " msgstr "" #: help.c:654 diff --git a/po/pl.po b/po/pl.po index f9b6bc59dde..bfbb2be5ca2 100644 --- a/po/pl.po +++ b/po/pl.po @@ -4591,8 +4591,8 @@ msgstr "Zakładam dalej, że chodziło o „%s”." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Wykonać zamiast tego „%s”? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Wykonać zamiast tego „%s”? [y/N] " #: help.c:654 #, c-format diff --git a/po/sv.po b/po/sv.po index 685294c8bac..a43e1072b53 100644 --- a/po/sv.po +++ b/po/sv.po @@ -4528,8 +4528,8 @@ msgstr "Fortsätter under förutsättningen att du menade \"%s\"." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Köra \"%s\" istället? (j/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Köra \"%s\" istället? [j/N] " #: help.c:654 #, c-format diff --git a/po/tr.po b/po/tr.po index 4c7cea44183..40d5ec8d703 100644 --- a/po/tr.po +++ b/po/tr.po @@ -4597,8 +4597,8 @@ msgstr "'%s' demek istediğiniz varsayılarak sürdürülüyor." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Bunun yerine '%s' çalıştır? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Bunun yerine '%s' çalıştır? [y/N] " #: help.c:654 #, c-format diff --git a/po/vi.po b/po/vi.po index 0aed6d2d0a4..b8500e04f99 100644 --- a/po/vi.po +++ b/po/vi.po @@ -4535,8 +4535,8 @@ msgstr "Tiếp tục và coi rằng ý bạn là “%s”." #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "Chạy “%s” để thay thế? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "Chạy “%s” để thay thế? [y/N] " #: help.c:654 #, c-format diff --git a/po/zh_CN.po b/po/zh_CN.po index e785a8156ae..475c43f0ea2 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -4546,8 +4546,8 @@ msgstr "假定您想要的是 '%s' 并继续。" #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "取而代之运行 '%s' ? (y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "取而代之运行 '%s' ? [y/N] " #: help.c:654 #, c-format diff --git a/po/zh_TW.po b/po/zh_TW.po index a1fb6b5267a..8727a72e182 100644 --- a/po/zh_TW.po +++ b/po/zh_TW.po @@ -4411,8 +4411,8 @@ msgstr "假定你想要的是 '%s' 並繼續。" #: help.c:646 #, c-format -msgid "Run '%s' instead? (y/N)" -msgstr "改執行「%s」?(y/N)" +msgid "Run '%s' instead? [y/N] " +msgstr "改執行「%s」?[y/N] " #: help.c:654 #, c-format -- gitgitgadget