1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-19 21:28:28 +02:00

Merge pull request #1945 from Ryooooooga/feature/fix-lint

This commit is contained in:
Jesse Duffield 2022-05-18 22:19:36 +10:00 committed by GitHub
commit 5d8c2eeccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 7 deletions

View File

@ -52,7 +52,7 @@ func Run(config config.AppConfigurer, common *common.Common, filterPath string)
stackTrace := newErr.ErrorStack()
app.Log.Error(stackTrace)
log.Fatal(fmt.Sprintf("%s: %s\n\n%s", common.Tr.ErrorOccurred, constants.Links.Issues, stackTrace))
log.Fatalf("%s: %s\n\n%s", common.Tr.ErrorOccurred, constants.Links.Issues, stackTrace)
}
}

View File

@ -468,7 +468,7 @@ func (self *FilesController) handleAmendCommitPress() error {
}
return self.c.Confirm(types.ConfirmOpts{
Title: strings.Title(self.c.Tr.AmendLastCommit),
Title: self.c.Tr.AmendLastCommitTitle,
Prompt: self.c.Tr.SureToAmend,
HandleConfirm: func() error {
cmdObj := self.git.Commit.AmendHeadCmdObj()

View File

@ -68,9 +68,8 @@ func (gui *Gui) layout(g *gocui.Gui) error {
dimensionsObj.Y1+frameOffset,
0,
)
view.Frame = frame
if view != nil {
view.Frame = frame
view.Visible = true
}

View File

@ -2,7 +2,6 @@ package gui
import (
"log"
"strings"
"github.com/jesseduffield/generics/slices"
"github.com/jesseduffield/lazygit/pkg/gui/keybindings"
@ -79,7 +78,7 @@ func (gui *Gui) handleCreateOptionsMenu() error {
})
return gui.c.Menu(types.CreateMenuOptions{
Title: strings.Title(gui.c.Tr.LcMenu),
Title: gui.c.Tr.MenuTitle,
Items: menuItems,
HideCancel: true,
})

View File

@ -23,7 +23,7 @@ func (self *FakePopupHandler) Alert(title string, message string) error {
}
func (self *FakePopupHandler) Confirm(opts types.ConfirmOpts) error {
return self.Confirm(opts)
return self.OnConfirm(opts)
}
func (self *FakePopupHandler) Prompt(opts types.PromptOpts) error {

View File

@ -54,6 +54,7 @@ func chineseTranslationSet() TranslationSet {
PassUnameWrong: "密码 和/或 用户名错误",
CommitChanges: "提交更改",
AmendLastCommit: "修补最后一次提交",
AmendLastCommitTitle: "修补最后一次提交",
SureToAmend: "您确定要修补上一次提交吗?之后您可以从提交面板更改提交消息。",
NoCommitToAmend: "没有需要提交的修补。",
CommitChangesWithEditor: "提交更改(使用编辑器编辑提交信息)",

View File

@ -20,6 +20,7 @@ func dutchTranslationSet() TranslationSet {
PassUnameWrong: "Wachtwoord en/of gebruikersnaam verkeerd",
CommitChanges: "commit veranderingen",
AmendLastCommit: "wijzig laatste commit",
AmendLastCommitTitle: "Wijzig Laatste Commit",
SureToAmend: "Weet je zeker dat je de laatste commit wilt wijzigen? U kunt het commit-bericht wijzigen vanuit het commits-paneel.",
NoCommitToAmend: "Er is geen commits om te wijzigen.",
CommitChangesWithEditor: "commit veranderingen met de git editor",

View File

@ -31,6 +31,7 @@ type TranslationSet struct {
PassUnameWrong string
CommitChanges string
AmendLastCommit string
AmendLastCommitTitle string
SureToAmend string
NoCommitToAmend string
CommitChangesWithEditor string
@ -652,6 +653,7 @@ func EnglishTranslationSet() TranslationSet {
PassUnameWrong: "Password, passphrase and/or username wrong",
CommitChanges: "commit changes",
AmendLastCommit: "amend last commit",
AmendLastCommitTitle: "Amend Last Commit",
SureToAmend: "Are you sure you want to amend last commit? Afterwards, you can change commit message from the commits panel.",
NoCommitToAmend: "There's no commit to amend.",
CommitChangesWithEditor: "commit changes using git editor",

View File

@ -40,6 +40,7 @@ func japaneseTranslationSet() TranslationSet {
PassUnameWrong: "パスワード, パスフレーズまたはユーザ名が間違っています。",
CommitChanges: "変更をコミット",
AmendLastCommit: "最新のコミットにamend",
AmendLastCommitTitle: "最新のコミットにamend",
SureToAmend: "最新のコミットに変更をamendします。よろしいですか? コミットメッセージはコミットパネルから変更できます。",
NoCommitToAmend: "amend可能なコミットが存在しません。",
CommitChangesWithEditor: "gitエディタを使用して変更をコミット",

View File

@ -17,6 +17,7 @@ func polishTranslationSet() TranslationSet {
PassUnameWrong: "Niewłaściwe hasło, fraza lub nazwa użytkownika",
CommitChanges: "Zatwierdź zmiany",
AmendLastCommit: "Zmień ostatni commit",
AmendLastCommitTitle: "Zmień Ostatni Commit",
SureToAmend: "Czy na pewno chcesz zmienić ostatni commit? Możesz zmienić komunikat commitu z panelu commitów.",
NoCommitToAmend: "Brak commitów do zmiany.",
CommitChangesWithEditor: "Zatwierdź zmiany używając edytora",