diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-03-18 14:12:35 +0100 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-23 12:33:16 +0200 |
commit | ddd6323aa5429908f712f7b7fe67760b15ed398c (patch) | |
tree | cdf795e48dcd61c35f2957ed9b12d52ce84da1a8 /pkg | |
parent | 7e92dbfd3d49c6bb859c5bd1bf5a43f09ef324b3 (diff) |
Add prompt to the remote branch checkout menu
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/controllers/helpers/refs_helper.go | 1 | ||||
-rw-r--r-- | pkg/i18n/english.go | 2 |
2 files changed, 3 insertions, 0 deletions
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", |