Skip to content

Commit

Permalink
more i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Jul 27, 2021
1 parent 58ddbae commit b81bac3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions pkg/gui/pull_request_menu_panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ func (gui *Gui) createPullRequestMenu(selectedBranch *models.Branch, checkedOutB
menuItemsForBranch := func(branch *models.Branch) []*menuItem {
return []*menuItem{
{
displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.DefaultBranch),
displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.LcDefaultBranch),
onPress: func() error {
return gui.createPullRequest(branch.Name, "")
},
},
{
displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.SelectBranch),
displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.LcSelectBranch),
onPress: func() error {
return gui.prompt(promptOpts{
title: branch.Name + " →",
Expand Down Expand Up @@ -61,7 +61,7 @@ func (gui *Gui) createPullRequest(from string, to string) error {
if err != nil {
return gui.surfaceError(err)
}
gui.OnRunCommand(oscommands.NewCmdLogEntry(fmt.Sprintf("Creating pull request at URL: %s", url), "Create pull request", false))
gui.OnRunCommand(oscommands.NewCmdLogEntry(fmt.Sprintf(gui.Tr.CreatingPullRequestAtUrl, url), gui.Tr.CreatePullRequest, false))

return nil
}
14 changes: 7 additions & 7 deletions pkg/i18n/english.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,12 +454,12 @@ type TranslationSet struct {
ToggleWhitespaceInDiffView string
IgnoringWhitespaceInDiffView string
ShowingWhitespaceInDiffView string
CreatePullRequest string
CreatePullRequestOptions string
LcCreatePullRequestOptions string
SelectParentCommitForMerge string
DefaultBranch string
SelectBranch string
LcDefaultBranch string
LcSelectBranch string
CreatePullRequest string
CreatingPullRequestAtUrl string
Spans Spans
}

Expand Down Expand Up @@ -1010,9 +1010,9 @@ func englishTranslationSet() TranslationSet {
CreatePullRequest: "Create pull request",
CreatePullRequestOptions: "Create pull request options",
LcCreatePullRequestOptions: "create pull request options",
SelectParentCommitForMerge: "Select parent commit for merge",
DefaultBranch: "default branch",
SelectBranch: "select branch",
LcDefaultBranch: "default branch",
LcSelectBranch: "select branch",
CreatingPullRequestAtUrl: "Creating pull request at URL: %s",
Spans: Spans{
// TODO: combine this with the original keybinding descriptions (those are all in lowercase atm)
CheckoutCommit: "Checkout commit",
Expand Down

0 comments on commit b81bac3

Please sign in to comment.