diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-04 11:00:48 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-10 00:23:01 +1100 |
commit | 37bb89dac33cb4236bf817e1e2e09cb1cbfade5c (patch) | |
tree | ea06fa4595a7f2d7eff80c2602648b18450f5988 /pkg/gui/workspace_reset_options_panel.go | |
parent | 7d9aa97f9691dd0a8658c4b6626877a198c5d03c (diff) |
type i18n
Diffstat (limited to 'pkg/gui/workspace_reset_options_panel.go')
-rw-r--r-- | pkg/gui/workspace_reset_options_panel.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/workspace_reset_options_panel.go b/pkg/gui/workspace_reset_options_panel.go index 6695c6cb5..119eaaa71 100644 --- a/pkg/gui/workspace_reset_options_panel.go +++ b/pkg/gui/workspace_reset_options_panel.go @@ -12,13 +12,13 @@ func (gui *Gui) handleCreateResetMenu(g *gocui.Gui, v *gocui.View) error { nukeStr := "reset --hard HEAD && git clean -fd" if len(gui.State.Submodules) > 0 { - nukeStr = fmt.Sprintf("%s (%s)", nukeStr, gui.Tr.SLocalize("andResetSubmodules")) + nukeStr = fmt.Sprintf("%s (%s)", nukeStr, gui.Tr.LcAndResetSubmodules) } menuItems := []*menuItem{ { displayStrings: []string{ - gui.Tr.SLocalize("discardAllChangesToAllFiles"), + gui.Tr.LcDiscardAllChangesToAllFiles, red.Sprint(nukeStr), }, onPress: func() error { @@ -31,7 +31,7 @@ func (gui *Gui) handleCreateResetMenu(g *gocui.Gui, v *gocui.View) error { }, { displayStrings: []string{ - gui.Tr.SLocalize("discardAnyUnstagedChanges"), + gui.Tr.LcDiscardAnyUnstagedChanges, red.Sprint("git checkout -- ."), }, onPress: func() error { @@ -44,7 +44,7 @@ func (gui *Gui) handleCreateResetMenu(g *gocui.Gui, v *gocui.View) error { }, { displayStrings: []string{ - gui.Tr.SLocalize("discardUntrackedFiles"), + gui.Tr.LcDiscardUntrackedFiles, red.Sprint("git clean -fd"), }, onPress: func() error { @@ -57,7 +57,7 @@ func (gui *Gui) handleCreateResetMenu(g *gocui.Gui, v *gocui.View) error { }, { displayStrings: []string{ - gui.Tr.SLocalize("softReset"), + gui.Tr.LcSoftReset, red.Sprint("git reset --soft HEAD"), }, onPress: func() error { @@ -83,7 +83,7 @@ func (gui *Gui) handleCreateResetMenu(g *gocui.Gui, v *gocui.View) error { }, { displayStrings: []string{ - gui.Tr.SLocalize("hardReset"), + gui.Tr.LcHardReset, red.Sprint("git reset --hard HEAD"), }, onPress: func() error { |