diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 19:35:42 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 23:36:34 +1000 |
commit | adee0b8ccbeb8e3b6f77c067312dcf457c0bb5bb (patch) | |
tree | 7eb522aa9df554c09dd1f48d25a4ea1cfb57cf85 /pkg/gui/remotes_panel.go | |
parent | 0bebfe454e99264cfab7d97c8f861536e1365c6f (diff) |
add spans to i18n
Diffstat (limited to 'pkg/gui/remotes_panel.go')
-rw-r--r-- | pkg/gui/remotes_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/remotes_panel.go b/pkg/gui/remotes_panel.go index 00feb5680..740a58da3 100644 --- a/pkg/gui/remotes_panel.go +++ b/pkg/gui/remotes_panel.go @@ -85,7 +85,7 @@ func (gui *Gui) handleAddRemote() error { return gui.prompt(promptOpts{ title: gui.Tr.LcNewRemoteUrl, handleConfirm: func(remoteUrl string) error { - if err := gui.GitCommand.WithSpan("Add remote").AddRemote(remoteName, remoteUrl); err != nil { + if err := gui.GitCommand.WithSpan(gui.Tr.Spans.AddRemote).AddRemote(remoteName, remoteUrl); err != nil { return err } return gui.refreshSidePanels(refreshOptions{scope: []RefreshableView{REMOTES}}) @@ -106,7 +106,7 @@ func (gui *Gui) handleRemoveRemote() error { title: gui.Tr.LcRemoveRemote, prompt: gui.Tr.LcRemoveRemotePrompt + " '" + remote.Name + "'?", handleConfirm: func() error { - if err := gui.GitCommand.WithSpan("Remove remote").RemoveRemote(remote.Name); err != nil { + if err := gui.GitCommand.WithSpan(gui.Tr.Spans.RemoveRemote).RemoveRemote(remote.Name); err != nil { return gui.surfaceError(err) } @@ -128,7 +128,7 @@ func (gui *Gui) handleEditRemote() error { }, ) - gitCommand := gui.GitCommand.WithSpan("Update remote") + gitCommand := gui.GitCommand.WithSpan(gui.Tr.Spans.UpdateRemote) return gui.prompt(promptOpts{ title: editNameMessage, |