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/diffing.go | |
parent | 7d9aa97f9691dd0a8658c4b6626877a198c5d03c (diff) |
type i18n
Diffstat (limited to 'pkg/gui/diffing.go')
-rw-r--r-- | pkg/gui/diffing.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/diffing.go b/pkg/gui/diffing.go index 58a549d62..4a1d92a8d 100644 --- a/pkg/gui/diffing.go +++ b/pkg/gui/diffing.go @@ -114,7 +114,7 @@ func (gui *Gui) handleCreateDiffingMenuPanel(g *gocui.Gui, v *gocui.View) error name := name menuItems = append(menuItems, []*menuItem{ { - displayString: fmt.Sprintf("%s %s", gui.Tr.SLocalize("diff"), name), + displayString: fmt.Sprintf("%s %s", gui.Tr.LcDiff, name), onPress: func() error { gui.State.Modes.Diffing.Ref = name // can scope this down based on current view but too lazy right now @@ -126,9 +126,9 @@ func (gui *Gui) handleCreateDiffingMenuPanel(g *gocui.Gui, v *gocui.View) error menuItems = append(menuItems, []*menuItem{ { - displayString: gui.Tr.SLocalize("enterRefToDiff"), + displayString: gui.Tr.LcEnterRefToDiff, onPress: func() error { - return gui.prompt(gui.Tr.SLocalize("enteRefName"), "", func(response string) error { + return gui.prompt(gui.Tr.LcEnteRefName, "", func(response string) error { gui.State.Modes.Diffing.Ref = strings.TrimSpace(response) return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) }) @@ -139,14 +139,14 @@ func (gui *Gui) handleCreateDiffingMenuPanel(g *gocui.Gui, v *gocui.View) error if gui.State.Modes.Diffing.Active() { menuItems = append(menuItems, []*menuItem{ { - displayString: gui.Tr.SLocalize("swapDiff"), + displayString: gui.Tr.LcSwapDiff, onPress: func() error { gui.State.Modes.Diffing.Reverse = !gui.State.Modes.Diffing.Reverse return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) }, }, { - displayString: gui.Tr.SLocalize("exitDiffMode"), + displayString: gui.Tr.LcExitDiffMode, onPress: func() error { gui.State.Modes.Diffing = Diffing{} return gui.refreshSidePanels(refreshOptions{mode: ASYNC}) @@ -155,5 +155,5 @@ func (gui *Gui) handleCreateDiffingMenuPanel(g *gocui.Gui, v *gocui.View) error }...) } - return gui.createMenu(gui.Tr.SLocalize("DiffingMenuTitle"), menuItems, createMenuOptions{showCancel: true}) + return gui.createMenu(gui.Tr.DiffingMenuTitle, menuItems, createMenuOptions{showCancel: true}) } |