1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-30 09:16:47 +02:00

Fully translated pkg/gui/confirmation_panel.go

This commit is contained in:
Mark Kopenga 2018-08-15 15:12:55 +02:00
parent 9112278ab7
commit 9abbfe5a43
3 changed files with 14 additions and 1 deletions

View File

@ -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)

View File

@ -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}}",
},
)
}

View File

@ -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}}",
},
)
}