summaryrefslogtreecommitdiffstats
path: root/pkg/gui/confirmation_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/confirmation_panel.go')
-rw-r--r--pkg/gui/confirmation_panel.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go
index eabc57881..135ac782f 100644
--- a/pkg/gui/confirmation_panel.go
+++ b/pkg/gui/confirmation_panel.go
@@ -13,6 +13,7 @@ import (
"github.com/fatih/color"
"github.com/jesseduffield/gocui"
"github.com/jesseduffield/lazygit/pkg/theme"
+ "github.com/jesseduffield/lazygit/pkg/utils"
)
type createPopupPanelOpts struct {
@@ -205,9 +206,9 @@ func (gui *Gui) createPopupPanel(opts createPopupPanelOpts) error {
}
func (gui *Gui) setKeyBindings(opts createPopupPanelOpts) error {
- actions := gui.Tr.TemplateLocalize(
- "CloseConfirm",
- Teml{
+ actions := utils.ResolvePlaceholderString(
+ gui.Tr.CloseConfirm,
+ map[string]string{
"keyBindClose": "esc",
"keyBindConfirm": "enter",
},
@@ -240,7 +241,7 @@ func (gui *Gui) createErrorPanel(message string) error {
}
return gui.ask(askOpts{
- title: gui.Tr.SLocalize("Error"),
+ title: gui.Tr.Error,
prompt: coloredMessage,
})
}