1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-15 01:34:26 +02:00

more i18n

This commit is contained in:
Jesse Duffield
2021-07-27 20:05:53 +10:00
parent 58ddbae4d1
commit b81bac3d65
2 changed files with 10 additions and 10 deletions

View File

@ -18,13 +18,13 @@ func (gui *Gui) createPullRequestMenu(selectedBranch *models.Branch, checkedOutB
menuItemsForBranch := func(branch *models.Branch) []*menuItem { menuItemsForBranch := func(branch *models.Branch) []*menuItem {
return []*menuItem{ return []*menuItem{
{ {
displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.DefaultBranch), displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.LcDefaultBranch),
onPress: func() error { onPress: func() error {
return gui.createPullRequest(branch.Name, "") return gui.createPullRequest(branch.Name, "")
}, },
}, },
{ {
displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.SelectBranch), displayStrings: fromToDisplayStrings(branch.Name, gui.Tr.LcSelectBranch),
onPress: func() error { onPress: func() error {
return gui.prompt(promptOpts{ return gui.prompt(promptOpts{
title: branch.Name + " →", title: branch.Name + " →",
@ -61,7 +61,7 @@ func (gui *Gui) createPullRequest(from string, to string) error {
if err != nil { if err != nil {
return gui.surfaceError(err) 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 return nil
} }

View File

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