From 9abbfe5a43ea7b2a9758f910dd51d41ae43cf45b Mon Sep 17 00:00:00 2001 From: Mark Kopenga Date: Wed, 15 Aug 2018 15:12:55 +0200 Subject: Fully translated pkg/gui/confirmation_panel.go --- pkg/gui/confirmation_panel.go | 9 ++++++++- pkg/i18n/dutch.go | 3 +++ pkg/i18n/english.go | 3 +++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'pkg') 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) diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index 7d8ae4b36..9bf542fad 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -274,6 +274,9 @@ func addDutch(i18nObject *i18n.Bundle) { }, &i18n.Message{ ID: "newFocusedViewIs", Other: "nieuw gefocussed weergave is {{.newFocusedView}}", + }, &i18n.Message{ + ID: "CantCloseConfirmationPrompt", + Other: "Kon de bevestiging prompt niet sluiten: {{.error}}", }, ) } diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index d208b13d1..d4c31ae53 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -284,6 +284,9 @@ func addEnglish(i18nObject *i18n.Bundle) { }, &i18n.Message{ ID: "newFocusedViewIs", Other: "new focused view is {{.newFocusedView}}", + }, &i18n.Message{ + ID: "CantCloseConfirmationPrompt", + Other: "Could not close confirmation prompt: {{.error}}", }, ) } -- cgit v1.2.3