1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-31 23:19:40 +02:00

Fix translations

This commit is contained in:
Ryooooooga 2021-08-24 21:38:34 +09:00 committed by Jesse Duffield
parent 6ca42ff720
commit df4eb70ba2
8 changed files with 32 additions and 32 deletions

View File

@ -208,11 +208,11 @@
<kbd>esc</kbd>: return to files panel <kbd>esc</kbd>: return to files panel
<kbd>M</kbd>: open external merge tool (git mergetool) <kbd>M</kbd>: open external merge tool (git mergetool)
<kbd>space</kbd>: pick hunk <kbd>space</kbd>: pick hunk
<kbd>b</kbd>: pick both hunks <kbd>b</kbd>: pick all hunks
<kbd></kbd>: select previous conflict <kbd></kbd>: select previous conflict
<kbd></kbd>: select next conflict <kbd></kbd>: select next conflict
<kbd></kbd>: select top hunk <kbd></kbd>: select previous hunk
<kbd></kbd>: select bottom hunk <kbd></kbd>: select next hunk
<kbd>z</kbd>: undo <kbd>z</kbd>: undo
</pre> </pre>

View File

@ -208,11 +208,11 @@
<kbd>esc</kbd>: wróć do panelu plików <kbd>esc</kbd>: wróć do panelu plików
<kbd>M</kbd>: open external merge tool (git mergetool) <kbd>M</kbd>: open external merge tool (git mergetool)
<kbd>space</kbd>: pick hunk <kbd>space</kbd>: pick hunk
<kbd>b</kbd>: pick both hunks <kbd>b</kbd>: pick all hunks
<kbd></kbd>: select previous conflict <kbd></kbd>: select previous conflict
<kbd></kbd>: select next conflict <kbd></kbd>: select next conflict
<kbd></kbd>: select top hunk <kbd></kbd>: select previous hunk
<kbd></kbd>: select bottom hunk <kbd></kbd>: select next hunk
<kbd>z</kbd>: cofnij <kbd>z</kbd>: cofnij
</pre> </pre>

View File

@ -1464,8 +1464,8 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
ViewName: "main", ViewName: "main",
Contexts: []string{string(MAIN_MERGING_CONTEXT_KEY)}, Contexts: []string{string(MAIN_MERGING_CONTEXT_KEY)},
Key: gui.getKey(config.Main.PickBothHunks), Key: gui.getKey(config.Main.PickBothHunks),
Handler: gui.handlePickBothHunks, Handler: gui.handlePickAllHunks,
Description: gui.Tr.PickBothHunks, Description: gui.Tr.PickAllHunks,
}, },
{ {
ViewName: "main", ViewName: "main",
@ -1486,14 +1486,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Contexts: []string{string(MAIN_MERGING_CONTEXT_KEY)}, Contexts: []string{string(MAIN_MERGING_CONTEXT_KEY)},
Key: gui.getKey(config.Universal.PrevItem), Key: gui.getKey(config.Universal.PrevItem),
Handler: gui.handleSelectPrevConflictHunk, Handler: gui.handleSelectPrevConflictHunk,
Description: gui.Tr.SelectTop, Description: gui.Tr.SelectPrevHunk,
}, },
{ {
ViewName: "main", ViewName: "main",
Contexts: []string{string(MAIN_MERGING_CONTEXT_KEY)}, Contexts: []string{string(MAIN_MERGING_CONTEXT_KEY)},
Key: gui.getKey(config.Universal.NextItem), Key: gui.getKey(config.Universal.NextItem),
Handler: gui.handleSelectNextConflictHunk, Handler: gui.handleSelectNextConflictHunk,
Description: gui.Tr.SelectBottom, Description: gui.Tr.SelectNextHunk,
}, },
{ {
ViewName: "main", ViewName: "main",

View File

@ -95,7 +95,7 @@ func (gui *Gui) handlePickHunk() error {
}) })
} }
func (gui *Gui) handlePickBothHunks() error { func (gui *Gui) handlePickAllHunks() error {
return gui.withMergeConflictLock(func() error { return gui.withMergeConflictLock(func() error {
gui.takeOverMergeConflictScrolling() gui.takeOverMergeConflictScrolling()
@ -233,7 +233,7 @@ func (gui *Gui) getMergingOptions() map[string]string {
fmt.Sprintf("%s %s", gui.getKeyDisplay(keybindingConfig.Universal.PrevItem), gui.getKeyDisplay(keybindingConfig.Universal.NextItem)): gui.Tr.LcSelectHunk, fmt.Sprintf("%s %s", gui.getKeyDisplay(keybindingConfig.Universal.PrevItem), gui.getKeyDisplay(keybindingConfig.Universal.NextItem)): gui.Tr.LcSelectHunk,
fmt.Sprintf("%s %s", gui.getKeyDisplay(keybindingConfig.Universal.PrevBlock), gui.getKeyDisplay(keybindingConfig.Universal.NextBlock)): gui.Tr.LcNavigateConflicts, fmt.Sprintf("%s %s", gui.getKeyDisplay(keybindingConfig.Universal.PrevBlock), gui.getKeyDisplay(keybindingConfig.Universal.NextBlock)): gui.Tr.LcNavigateConflicts,
gui.getKeyDisplay(keybindingConfig.Universal.Select): gui.Tr.LcPickHunk, gui.getKeyDisplay(keybindingConfig.Universal.Select): gui.Tr.LcPickHunk,
gui.getKeyDisplay(keybindingConfig.Main.PickBothHunks): gui.Tr.LcPickBothHunks, gui.getKeyDisplay(keybindingConfig.Main.PickBothHunks): gui.Tr.LcPickAllHunks,
gui.getKeyDisplay(keybindingConfig.Universal.Undo): gui.Tr.LcUndo, gui.getKeyDisplay(keybindingConfig.Universal.Undo): gui.Tr.LcUndo,
} }
} }

View File

@ -130,7 +130,7 @@ func chineseTranslationSet() TranslationSet {
LcSelectHunk: "选择块", LcSelectHunk: "选择块",
LcNavigateConflicts: "解决冲突", LcNavigateConflicts: "解决冲突",
LcPickHunk: "选择块", LcPickHunk: "选择块",
LcPickBothHunks: "pick both hunks", LcPickAllHunks: "pick all hunks",
LcUndo: "撤销", LcUndo: "撤销",
LcUndoReflog: "撤销 (via reflog) (实验性)", LcUndoReflog: "撤销 (via reflog) (实验性)",
LcRedoReflog: "重做 (via reflog) (实验性)", LcRedoReflog: "重做 (via reflog) (实验性)",
@ -201,7 +201,7 @@ func chineseTranslationSet() TranslationSet {
FoundConflictsTitle: "自动合并失败", FoundConflictsTitle: "自动合并失败",
Undo: "撤销", Undo: "撤销",
PickHunk: "pick hunk", PickHunk: "pick hunk",
PickBothHunks: "pick both hunks", PickAllHunks: "pick all hunks",
ViewMergeRebaseOptions: "查看 合并/变基 选项", ViewMergeRebaseOptions: "查看 合并/变基 选项",
NotMergingOrRebasing: "您目前既不进行基础调整也不进行合并", NotMergingOrRebasing: "您目前既不进行基础调整也不进行合并",
RecentRepos: "最近的仓库", RecentRepos: "最近的仓库",
@ -247,8 +247,8 @@ func chineseTranslationSet() TranslationSet {
NextHunk: "选择下一个块", NextHunk: "选择下一个块",
PrevConflict: "选择上一个冲突", PrevConflict: "选择上一个冲突",
NextConflict: "选择下一个冲突", NextConflict: "选择下一个冲突",
SelectTop: "选择顶部块", SelectPrevHunk: "选择顶部块",
SelectBottom: "选择底部块", SelectNextHunk: "选择底部块",
ScrollDown: "向下滚动", ScrollDown: "向下滚动",
ScrollUp: "向上滚动", ScrollUp: "向上滚动",
LcScrollUpMainPanel: "向上滚动主面板", LcScrollUpMainPanel: "向上滚动主面板",

View File

@ -113,7 +113,7 @@ func dutchTranslationSet() TranslationSet {
LcSelectHunk: "selecteer stuk", LcSelectHunk: "selecteer stuk",
LcNavigateConflicts: "navigeer conflicts", LcNavigateConflicts: "navigeer conflicts",
LcPickHunk: "kies stuk", LcPickHunk: "kies stuk",
LcPickBothHunks: "kies beide stukken", LcPickAllHunks: "kies beide stukken",
LcUndo: "ongedaan maken", LcUndo: "ongedaan maken",
LcUndoReflog: "ongedaan maken (via reflog) (experimenteel)", LcUndoReflog: "ongedaan maken (via reflog) (experimenteel)",
LcRedoReflog: "redo (via reflog) (experimenteel)", LcRedoReflog: "redo (via reflog) (experimenteel)",
@ -183,7 +183,7 @@ func dutchTranslationSet() TranslationSet {
FoundConflictsTitle: "Auto-merge mislukt", FoundConflictsTitle: "Auto-merge mislukt",
Undo: "ongedaan maken", Undo: "ongedaan maken",
PickHunk: "kies hunk", PickHunk: "kies hunk",
PickBothHunks: "kies bijde hunks", PickAllHunks: "kies bijde hunks",
ViewMergeRebaseOptions: "bekijk merge/rebase opties", ViewMergeRebaseOptions: "bekijk merge/rebase opties",
NotMergingOrRebasing: "Je bent momenteel niet aan het rebasen of mergen", NotMergingOrRebasing: "Je bent momenteel niet aan het rebasen of mergen",
RecentRepos: "recente repositories", RecentRepos: "recente repositories",
@ -229,8 +229,8 @@ func dutchTranslationSet() TranslationSet {
NextHunk: "selecteer de volgende hunk", NextHunk: "selecteer de volgende hunk",
PrevConflict: "selecteer voorgaand conflict", PrevConflict: "selecteer voorgaand conflict",
NextConflict: "selecteer volgende conflict", NextConflict: "selecteer volgende conflict",
SelectTop: "selecteer bovenste hunk", SelectPrevHunk: "selecteer bovenste hunk",
SelectBottom: "selecteer onderste hunk", SelectNextHunk: "selecteer onderste hunk",
ScrollDown: "scroll omlaag", ScrollDown: "scroll omlaag",
ScrollUp: "scroll omhoog", ScrollUp: "scroll omhoog",
LcScrollUpMainPanel: "scroll naar beneden vanaf hoofdpaneel", LcScrollUpMainPanel: "scroll naar beneden vanaf hoofdpaneel",

View File

@ -127,7 +127,7 @@ type TranslationSet struct {
LcSelectHunk string LcSelectHunk string
LcNavigateConflicts string LcNavigateConflicts string
LcPickHunk string LcPickHunk string
LcPickBothHunks string LcPickAllHunks string
LcUndo string LcUndo string
LcUndoReflog string LcUndoReflog string
LcRedoReflog string LcRedoReflog string
@ -198,7 +198,7 @@ type TranslationSet struct {
FoundConflictsTitle string FoundConflictsTitle string
Undo string Undo string
PickHunk string PickHunk string
PickBothHunks string PickAllHunks string
ViewMergeRebaseOptions string ViewMergeRebaseOptions string
NotMergingOrRebasing string NotMergingOrRebasing string
RecentRepos string RecentRepos string
@ -243,8 +243,8 @@ type TranslationSet struct {
NextHunk string NextHunk string
PrevConflict string PrevConflict string
NextConflict string NextConflict string
SelectTop string SelectPrevHunk string
SelectBottom string SelectNextHunk string
ScrollDown string ScrollDown string
ScrollUp string ScrollUp string
LcScrollUpMainPanel string LcScrollUpMainPanel string
@ -682,7 +682,7 @@ func englishTranslationSet() TranslationSet {
LcSelectHunk: "select hunk", LcSelectHunk: "select hunk",
LcNavigateConflicts: "navigate conflicts", LcNavigateConflicts: "navigate conflicts",
LcPickHunk: "pick hunk", LcPickHunk: "pick hunk",
LcPickBothHunks: "pick both hunks", LcPickAllHunks: "pick all hunks",
LcUndo: "undo", LcUndo: "undo",
LcUndoReflog: "undo (via reflog) (experimental)", LcUndoReflog: "undo (via reflog) (experimental)",
LcRedoReflog: "redo (via reflog) (experimental)", LcRedoReflog: "redo (via reflog) (experimental)",
@ -753,7 +753,7 @@ func englishTranslationSet() TranslationSet {
FoundConflictsTitle: "Auto-merge failed", FoundConflictsTitle: "Auto-merge failed",
Undo: "undo", Undo: "undo",
PickHunk: "pick hunk", PickHunk: "pick hunk",
PickBothHunks: "pick both hunks", PickAllHunks: "pick all hunks",
ViewMergeRebaseOptions: "view merge/rebase options", ViewMergeRebaseOptions: "view merge/rebase options",
NotMergingOrRebasing: "You are currently neither rebasing nor merging", NotMergingOrRebasing: "You are currently neither rebasing nor merging",
RecentRepos: "recent repositories", RecentRepos: "recent repositories",
@ -799,8 +799,8 @@ func englishTranslationSet() TranslationSet {
NextHunk: "select next hunk", NextHunk: "select next hunk",
PrevConflict: "select previous conflict", PrevConflict: "select previous conflict",
NextConflict: "select next conflict", NextConflict: "select next conflict",
SelectTop: "select top hunk", SelectPrevHunk: "select previous hunk",
SelectBottom: "select bottom hunk", SelectNextHunk: "select next hunk",
ScrollDown: "scroll down", ScrollDown: "scroll down",
ScrollUp: "scroll up", ScrollUp: "scroll up",
LcScrollUpMainPanel: "scroll up main panel", LcScrollUpMainPanel: "scroll up main panel",

View File

@ -96,7 +96,7 @@ func polishTranslationSet() TranslationSet {
LcSelectHunk: "wybierz kawałek", LcSelectHunk: "wybierz kawałek",
LcNavigateConflicts: "nawiguj konflikty", LcNavigateConflicts: "nawiguj konflikty",
LcPickHunk: "wybierz kawałek", LcPickHunk: "wybierz kawałek",
LcPickBothHunks: "wybierz oba kawałki", LcPickAllHunks: "wybierz oba kawałki",
LcUndo: "cofnij", LcUndo: "cofnij",
LcPop: "wyciągnij", LcPop: "wyciągnij",
LcDrop: "porzuć", LcDrop: "porzuć",
@ -166,7 +166,7 @@ func polishTranslationSet() TranslationSet {
FoundConflictsTitle: "Auto-merge failed", FoundConflictsTitle: "Auto-merge failed",
Undo: "undo", Undo: "undo",
PickHunk: "pick hunk", PickHunk: "pick hunk",
PickBothHunks: "pick both hunks", PickAllHunks: "pick all hunks",
ViewMergeRebaseOptions: "view merge/rebase options", ViewMergeRebaseOptions: "view merge/rebase options",
NotMergingOrRebasing: "You are currently neither rebasing nor merging", NotMergingOrRebasing: "You are currently neither rebasing nor merging",
RecentRepos: "recent repositories", RecentRepos: "recent repositories",
@ -190,8 +190,8 @@ func polishTranslationSet() TranslationSet {
NextHunk: "select next hunk", NextHunk: "select next hunk",
PrevConflict: "select previous conflict", PrevConflict: "select previous conflict",
NextConflict: "select next conflict", NextConflict: "select next conflict",
SelectTop: "select top hunk", SelectPrevHunk: "select previous hunk",
SelectBottom: "select bottom hunk", SelectNextHunk: "select next hunk",
ScrollDown: "scroll down", ScrollDown: "scroll down",
ScrollUp: "scroll up", ScrollUp: "scroll up",
AmendCommitTitle: "Amend Commit", AmendCommitTitle: "Amend Commit",