add local

This commit is contained in:
Yuki Osaki 2021-10-31 23:10:05 +09:00
parent 1547b4155e
commit 769a6cd069
3 changed files with 6 additions and 1 deletions

View file

@ -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)
},

View file

@ -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: "检出提交",

View file

@ -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",