From 230a5afa4cda31198611751534c839f1bf87b873 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 3 Sep 2018 18:16:54 +0200 Subject: [PATCH] remove capitalization of keybindings descriptions --- pkg/gui/commits_panel.go | 2 +- pkg/gui/keybindings.go | 6 +++--- pkg/gui/status_panel.go | 2 +- pkg/i18n/dutch.go | 4 ++-- pkg/i18n/english.go | 12 ++++++------ pkg/i18n/polish.go | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pkg/gui/commits_panel.go b/pkg/gui/commits_panel.go index 605566505..5074968b3 100644 --- a/pkg/gui/commits_panel.go +++ b/pkg/gui/commits_panel.go @@ -144,7 +144,7 @@ func (gui *Gui) handleRenameCommit(g *gocui.Gui, v *gocui.View) error { if gui.getItemPosition(gui.getCommitsView(g)) != 0 { return gui.createErrorPanel(g, gui.Tr.SLocalize("OnlyRenameTopCommit")) } - gui.createPromptPanel(g, v, gui.Tr.SLocalize("RenameCommit"), func(g *gocui.Gui, v *gocui.View) error { + gui.createPromptPanel(g, v, gui.Tr.SLocalize("renameCommit"), func(g *gocui.Gui, v *gocui.View) error { if err := gui.GitCommand.RenameCommit(v.Buffer()); err != nil { return gui.createErrorPanel(g, err.Error()) } diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index c2f53f7ee..9d5dc27ff 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -88,7 +88,7 @@ func (gui *Gui) GetKeybindings() []Binding { Key: 'u', Modifier: gocui.ModNone, Handler: gui.handleCheckForUpdate, - Description: gui.Tr.SLocalize("CheckForUpdate"), + Description: gui.Tr.SLocalize("checkForUpdate"), }, { ViewName: "files", Key: 'c', @@ -284,13 +284,13 @@ func (gui *Gui) GetKeybindings() []Binding { Key: 'r', Modifier: gocui.ModNone, Handler: gui.handleRenameCommit, - Description: gui.Tr.SLocalize("RenameCommit"), + Description: gui.Tr.SLocalize("renameCommit"), }, { ViewName: "commits", Key: 'R', Modifier: gocui.ModNone, Handler: gui.handleRenameCommitEditor, - Description: gui.Tr.SLocalize("RenameCommitEditor"), + Description: gui.Tr.SLocalize("renameCommitEditor"), }, { ViewName: "commits", Key: 'g', diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index eb7f790f0..0e00b1835 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -45,7 +45,7 @@ func (gui *Gui) renderStatusOptions(g *gocui.Gui) error { return gui.renderOptionsMap(g, map[string]string{ "o": gui.Tr.SLocalize("OpenConfig"), "e": gui.Tr.SLocalize("EditConfig"), - "u": gui.Tr.SLocalize("CheckForUpdate"), + "u": gui.Tr.SLocalize("checkForUpdate"), "?": gui.Tr.SLocalize("help"), }) } diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index 0abb41771..28ba9f7c2 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -224,8 +224,8 @@ func addDutch(i18nObject *i18n.Bundle) error { ID: "OnlyRenameTopCommit", Other: "Je kan alleen de bovenste commit hernoemen", }, &i18n.Message{ - ID: "RenameCommit", - Other: "Hernoem Commit", + ID: "renameCommit", + Other: "hernoem commit", }, &i18n.Message{ ID: "PotentialErrInGetselectedCommit", Other: "Er is mogelijk een error in getSelected Commit (geen match tussen ui en state)", diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index b6847a2b4..8b0d266f3 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -235,11 +235,11 @@ func addEnglish(i18nObject *i18n.Bundle) error { ID: "OnlyRenameTopCommit", Other: "Can only rename topmost commit", }, &i18n.Message{ - ID: "RenameCommit", - Other: "Rename Commit", + ID: "renameCommit", + Other: "rename commit", }, &i18n.Message{ - ID: "RenameCommitEditor", - Other: "Rename Commit with editor", + ID: "renameCommitEditor", + Other: "rename commit with editor", }, &i18n.Message{ ID: "PotentialErrInGetselectedCommit", Other: "potential error in getSelected Commit (mismatched ui and state)", @@ -334,8 +334,8 @@ func addEnglish(i18nObject *i18n.Bundle) error { ID: "ForcePushPrompt", Other: "Your branch has diverged from the remote branch. Press 'esc' to cancel, or 'enter' to force push.", }, &i18n.Message{ - ID: "CheckForUpdate", - Other: "Check for update", + ID: "checkForUpdate", + Other: "check for update", }, &i18n.Message{ ID: "CheckingForUpdates", Other: "Checking for updates...", diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index 78bfacdd0..a9734d74c 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -216,8 +216,8 @@ func addPolish(i18nObject *i18n.Bundle) error { ID: "OnlyRenameTopCommit", Other: "Można przmianować tylko najwyższy commit", }, &i18n.Message{ - ID: "RenameCommit", - Other: "Przemianuj commit", + ID: "renameCommit", + Other: "przemianuj commit", }, &i18n.Message{ ID: "PotentialErrInGetselectedCommit", Other: "potencjalny błąd w getSelected Commit (niedopasowane ui i stan)",