diff options
author | Mark Kopenga <mkopenga@gmail.com> | 2018-08-15 09:15:31 +0200 |
---|---|---|
committer | Mark Kopenga <mkopenga@gmail.com> | 2018-08-15 09:15:31 +0200 |
commit | 8418fa17a536749dc4b9cb8d49862c7e04368e5f (patch) | |
tree | 7afe16920247895ec357c2408fa843c6565e4473 | |
parent | 3dba246029957ef20828e7ad95a9dbd8f0318b22 (diff) |
Fully translated pkg/gui/commit_message_panel.go
-rw-r--r-- | pkg/gui/commit_message_panel.go | 12 | ||||
-rw-r--r-- | pkg/i18n/dutch.go | 6 |
2 files changed, 16 insertions, 2 deletions
diff --git a/pkg/gui/commit_message_panel.go b/pkg/gui/commit_message_panel.go index 599c80186..086d4f287 100644 --- a/pkg/gui/commit_message_panel.go +++ b/pkg/gui/commit_message_panel.go @@ -7,7 +7,7 @@ import ( func (gui *Gui) handleCommitConfirm(g *gocui.Gui, v *gocui.View) error { message := gui.trimmedContent(v) if message == "" { - return gui.createErrorPanel(g, "You cannot commit without a commit message") + return gui.createErrorPanel(g, gui.Tr.SLocalize("CommitWithoutMessageErr", "You cannot commit without a commit message")) } sub, err := gui.GitCommand.Commit(g, message) if err != nil { @@ -48,5 +48,13 @@ func (gui *Gui) handleNewlineCommitMessage(g *gocui.Gui, v *gocui.View) error { } func (gui *Gui) handleCommitFocused(g *gocui.Gui, v *gocui.View) error { - return gui.renderString(g, "options", "esc: close, enter: confirm") + message := gui.Tr.TemplateLocalize( + "CloseConfirm", + "{{.keyBindClose}}: close, {{.keyBindConfirm}}: confirm", + map[string]interface{}{ + "keyBindClose": "esc", + "keyBindConfirm": "enter", + }, + ) + return gui.renderString(g, "options", message) } diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index f383b783b..e44a85268 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -160,6 +160,12 @@ func addDutch(i18nObject *i18n.Bundle) { }, &i18n.Message{ ID: "NoTrackingThisRepo", Other: "deze branch wordt niet gevolgd", + }, &i18n.Message{ + ID: "CommitWithoutMessageErr", + Other: "Je kan geen commit maken zonder commit bericht", + }, &i18n.Message{ + ID: "CloseConfirm", + Other: "{{.keyBindClose}}: Sluiten, {{.keyBindConfirm}}: Bevestigen", }, ) } |