diff --git a/pkg/gui/controllers/helpers/refs_helper.go b/pkg/gui/controllers/helpers/refs_helper.go index 6b07b6ec6..d7ac0845f 100644 --- a/pkg/gui/controllers/helpers/refs_helper.go +++ b/pkg/gui/controllers/helpers/refs_helper.go @@ -79,7 +79,7 @@ func (self *RefsHelper) CheckoutRef(ref string, options types.CheckoutRefOptions Prompt: self.c.Tr.AutoStashPrompt, HandleConfirm: func() error { return withCheckoutStatus(func(gocui.Task) error { - if err := self.c.Git().Stash.Push(self.c.Tr.StashPrefix + ref); err != nil { + if err := self.c.Git().Stash.Push(fmt.Sprintf(self.c.Tr.AutoStashForCheckout, ref)); err != nil { return err } if err := self.c.Git().Branch.Checkout(ref, cmdOptions); err != nil { diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 9c6663d9a..07301af74 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -449,6 +449,7 @@ type TranslationSet struct { AutoStashPrompt string StashPrefix string AutoStashForUndo string + AutoStashForCheckout string Discard string DiscardChangesTitle string DiscardFileChangesTooltip string @@ -1543,6 +1544,7 @@ func EnglishTranslationSet() *TranslationSet { AutoStashPrompt: "You must stash and pop your changes to bring them across. Do this automatically? (enter/esc)", StashPrefix: "Auto-stashing changes for ", AutoStashForUndo: "Auto-stashing changes for undoing to %s", + AutoStashForCheckout: "Auto-stashing changes for checking out %s", Discard: "Discard", DiscardFileChangesTooltip: "View options for discarding changes to the selected file.", DiscardChangesTitle: "Discard changes",