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 {
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 + " →",
@ -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
}

View File

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