From 769a6cd069ba58b69be4128e1048742c3cd12a5d Mon Sep 17 00:00:00 2001 From: Yuki Osaki Date: Sun, 31 Oct 2021 23:10:05 +0900 Subject: [PATCH] add local --- pkg/gui/pull_request_menu_panel.go | 2 +- pkg/i18n/chinese.go | 2 ++ pkg/i18n/english.go | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) 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",