diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-04 11:00:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-10 00:23:01 +1100 |
commit | 37bb89dac33cb4236bf817e1e2e09cb1cbfade5c (patch) | |
tree | ea06fa4595a7f2d7eff80c2602648b18450f5988 /pkg/gui/confirmation_panel.go | |
parent | 7d9aa97f9691dd0a8658c4b6626877a198c5d03c (diff) |
type i18n
Diffstat (limited to 'pkg/gui/confirmation_panel.go')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 9 |
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, }) } |