summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/app/app.go2
-rw-r--r--pkg/gui/files_panel.go2
-rw-r--r--pkg/i18n/dutch.go8
3 files changed, 6 insertions, 6 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go
index f4311bb03..3e227a395 100644
--- a/pkg/app/app.go
+++ b/pkg/app/app.go
@@ -51,7 +51,7 @@ func NewApp(config config.AppConfigurer) (*App, error) {
return nil, err
}
- app.Tr, err = i18n.NewLocalizer()
+ app.Tr, err = i18n.NewLocalizer(app.Log)
if err != nil {
return nil, err
}
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go
index 3afbc1b85..6c62240a7 100644
--- a/pkg/gui/files_panel.go
+++ b/pkg/gui/files_panel.go
@@ -188,7 +188,7 @@ func (gui *Gui) handleFileSelect(g *gocui.Gui, v *gocui.View) error {
func (gui *Gui) handleCommitPress(g *gocui.Gui, filesView *gocui.View) error {
if len(gui.stagedFiles()) == 0 && !gui.State.HasMergeConflicts {
- return gui.createErrorPanel(g, "There are no staged files to commit")
+ return gui.createErrorPanel(g, tr.SLocalize("NoStagedFilesCommit", "There are no staged files to commit"))
}
commitMessageView := gui.getCommitMessageView(g)
g.Update(func(g *gocui.Gui) error {
diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go
index da3406ee8..e6ef4ff7e 100644
--- a/pkg/i18n/dutch.go
+++ b/pkg/i18n/dutch.go
@@ -6,7 +6,7 @@ import (
)
// addDutch will add all dutch translations
-func addDutch(i18nObject *i18n.Bundle) *i18n.Bundle {
+func addDutch(i18nObject *i18n.Bundle) {
// add the translations
i18nObject.AddMessages(language.Dutch,
@@ -91,9 +91,9 @@ func addDutch(i18nObject *i18n.Bundle) *i18n.Bundle {
}, &i18n.Message{
ID: "CantIgnoreTrackFiles",
Other: "Kan gevolgde bestanden niet negeren",
+ }, &i18n.Message{
+ ID: "NoStagedFilesCommit",
+ Other: "Er zijn geen staged bestanden om te commiten",
},
)
-
- // return the new i18nObject
- return i18nObject
}