summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorMark Kopenga <mkopenga@gmail.com>2018-08-15 15:12:55 +0200
committerMark Kopenga <mkopenga@gmail.com>2018-08-15 15:12:55 +0200
commit9abbfe5a43ea7b2a9758f910dd51d41ae43cf45b (patch)
tree527fba9cb2c338f115c702a390fb596985a315c1 /pkg
parent9112278ab751f2c5637a2fc74acb057be678be20 (diff)
Fully translated pkg/gui/confirmation_panel.go
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gui/confirmation_panel.go9
-rw-r--r--pkg/i18n/dutch.go3
-rw-r--r--pkg/i18n/english.go3
3 files changed, 14 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)
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}}",
},
)
}