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/undoing.go | |
parent | 7d9aa97f9691dd0a8658c4b6626877a198c5d03c (diff) |
type i18n
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r-- | pkg/gui/undoing.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go index d6f7c99e2..dad866bc8 100644 --- a/pkg/gui/undoing.go +++ b/pkg/gui/undoing.go @@ -85,10 +85,10 @@ func (gui *Gui) parseReflogForActions(onUserAction func(counter int, action refl func (gui *Gui) reflogUndo(g *gocui.Gui, v *gocui.View) error { undoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit undo]"} - undoingStatus := gui.Tr.SLocalize("UndoingStatus") + undoingStatus := gui.Tr.UndoingStatus if gui.GitCommand.WorkingTreeState() == "rebasing" { - return gui.createErrorPanel(gui.Tr.SLocalize("cantUndoWhileRebasing")) + return gui.createErrorPanel(gui.Tr.LcCantUndoWhileRebasing) } return gui.parseReflogForActions(func(counter int, action reflogAction) (bool, error) { @@ -116,10 +116,10 @@ func (gui *Gui) reflogUndo(g *gocui.Gui, v *gocui.View) error { func (gui *Gui) reflogRedo(g *gocui.Gui, v *gocui.View) error { redoEnvVars := []string{"GIT_REFLOG_ACTION=[lazygit redo]"} - redoingStatus := gui.Tr.SLocalize("RedoingStatus") + redoingStatus := gui.Tr.RedoingStatus if gui.GitCommand.WorkingTreeState() == "rebasing" { - return gui.createErrorPanel(gui.Tr.SLocalize("cantRedoWhileRebasing")) + return gui.createErrorPanel(gui.Tr.LcCantRedoWhileRebasing) } return gui.parseReflogForActions(func(counter int, action reflogAction) (bool, error) { @@ -167,11 +167,11 @@ func (gui *Gui) handleHardResetWithAutoStash(commitSha string, options handleHar if dirtyWorkingTree { // offer to autostash changes return gui.ask(askOpts{ - title: gui.Tr.SLocalize("AutoStashTitle"), - prompt: gui.Tr.SLocalize("AutoStashPrompt"), + title: gui.Tr.AutoStashTitle, + prompt: gui.Tr.AutoStashPrompt, handleConfirm: func() error { return gui.WithWaitingStatus(options.WaitingStatus, func() error { - if err := gui.GitCommand.StashSave(gui.Tr.SLocalize("StashPrefix") + commitSha); err != nil { + if err := gui.GitCommand.StashSave(gui.Tr.StashPrefix + commitSha); err != nil { return gui.surfaceError(err) } if err := reset(); err != nil { |