From ddd6323aa5429908f712f7b7fe67760b15ed398c Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 18 Mar 2024 14:12:35 +0100 Subject: [PATCH] Add prompt to the remote branch checkout menu --- pkg/gui/controllers/helpers/refs_helper.go | 1 + pkg/i18n/english.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pkg/gui/controllers/helpers/refs_helper.go b/pkg/gui/controllers/helpers/refs_helper.go index d837d8266..ccfe71799 100644 --- a/pkg/gui/controllers/helpers/refs_helper.go +++ b/pkg/gui/controllers/helpers/refs_helper.go @@ -130,6 +130,7 @@ func (self *RefsHelper) CheckoutRemoteBranch(fullBranchName string, localBranchN Title: utils.ResolvePlaceholderString(self.c.Tr.RemoteBranchCheckoutTitle, map[string]string{ "branchName": fullBranchName, }), + Prompt: self.c.Tr.RemoteBranchCheckoutPrompt, Items: []*types.MenuItem{ { Label: self.c.Tr.CheckoutTypeNewBranch, diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 7aabbbc2b..78b8b84cf 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -113,6 +113,7 @@ type TranslationSet struct { CheckoutByName string CheckoutByNameTooltip string RemoteBranchCheckoutTitle string + RemoteBranchCheckoutPrompt string CheckoutTypeNewBranch string CheckoutTypeNewBranchTooltip string CheckoutTypeDetachedHead string @@ -1079,6 +1080,7 @@ func EnglishTranslationSet() TranslationSet { CheckoutByName: "Checkout by name", CheckoutByNameTooltip: "Checkout by name. In the input box you can enter '-' to switch to the last branch.", RemoteBranchCheckoutTitle: "Checkout {{.branchName}}", + RemoteBranchCheckoutPrompt: "How would you like to check out this branch?", CheckoutTypeNewBranch: "New local branch", CheckoutTypeNewBranchTooltip: "Checkout the remote branch as a local branch, tracking the remote branch.", CheckoutTypeDetachedHead: "Detached head",