diff --git a/pkg/gui/pull_request_menu_panel.go b/pkg/gui/pull_request_menu_panel.go index 22da1347b..e3115d7e2 100644 --- a/pkg/gui/pull_request_menu_panel.go +++ b/pkg/gui/pull_request_menu_panel.go @@ -44,7 +44,7 @@ func (gui *Gui) createOrOpenPullRequestMenu(selectedBranch *models.Branch, check if hasPr { menuItems = append(menuItems, &menuItem{ - displayString: "open #" + strconv.Itoa(pr.Number), + displayString: gui.GitCommand.Tr.OpenPr + strconv.Itoa(pr.Number), onPress: func() error { return gui.OSCommand.OpenLink(pr.Url) }, diff --git a/pkg/i18n/chinese.go b/pkg/i18n/chinese.go index 3306a9e83..183d14469 100644 --- a/pkg/i18n/chinese.go +++ b/pkg/i18n/chinese.go @@ -441,6 +441,8 @@ func chineseTranslationSet() TranslationSet { LcDefaultBranch: "默认分支", LcSelectBranch: "选择分支", CreatingPullRequestAtUrl: "在 URL 创建抓取请求: %s", + OpenPr: "公开公关 #", + Spans: Spans{ // TODO: combine this with the original keybinding descriptions (those are all in lowercase atm) CheckoutCommit: "检出提交", diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index c6cfc9d39..4da3981b1 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -436,6 +436,7 @@ type TranslationSet struct { MustSpecifyOriginError string GitOutput string GitCommandFailed string + OpenPr string Spans Spans } @@ -965,6 +966,8 @@ func englishTranslationSet() TranslationSet { MustSpecifyOriginError: "Must specify a remote if specifying a branch", GitOutput: "Git output:", GitCommandFailed: "Git command failed. Check command log for details (open with %s)", + OpenPr: "Open PR #", + Spans: Spans{ // TODO: combine this with the original keybinding descriptions (those are all in lowercase atm) CheckoutCommit: "Checkout commit",