mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 22:17:05 +02:00
Add prompt to the remote branch checkout menu
This commit is contained in:
parent
7e92dbfd3d
commit
ddd6323aa5
@ -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,
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user