diff options
author | Mark Kopenga <mkopenga@gmail.com> | 2018-08-15 15:12:55 +0200 |
---|---|---|
committer | Mark Kopenga <mkopenga@gmail.com> | 2018-08-15 15:12:55 +0200 |
commit | 9abbfe5a43ea7b2a9758f910dd51d41ae43cf45b (patch) | |
tree | 527fba9cb2c338f115c702a390fb596985a315c1 /pkg/gui/confirmation_panel.go | |
parent | 9112278ab751f2c5637a2fc74acb057be678be20 (diff) |
Fully translated pkg/gui/confirmation_panel.go
Diffstat (limited to 'pkg/gui/confirmation_panel.go')
-rw-r--r-- | pkg/gui/confirmation_panel.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkg/gui/confirmation_panel.go b/pkg/gui/confirmation_panel.go index b34200e16..9f76bc1ea 100644 --- a/pkg/gui/confirmation_panel.go +++ b/pkg/gui/confirmation_panel.go @@ -83,7 +83,14 @@ func (gui *Gui) createConfirmationPanel(g *gocui.Gui, currentView *gocui.View, t // delete the existing confirmation panel if it exists if view, _ := g.View("confirmation"); view != nil { if err := gui.closeConfirmationPrompt(g); err != nil { - gui.Log.Error("Could not close confirmation prompt: ", err.Error()) + errMessage := gui.Tr.TemplateLocalize( + "CantCloseConfirmationPrompt", + "Could not close confirmation prompt: {{.error}}", + map[string]interface{}{ + "error": err.Error(), + }, + ) + gui.Log.Error(errMessage) } } x0, y0, x1, y1 := gui.getConfirmationPanelDimensions(g, prompt) |