mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 07:36:27 -04:00
Add i18n for unknown branch
This commit is contained in:
parent
37bdbd9a21
commit
44de380c2b
|
|
@ -56,7 +56,7 @@ func (gui *Gui) getCurrentBranch(path string) string {
|
|||
}
|
||||
}
|
||||
|
||||
return "unknown branch"
|
||||
return gui.c.Tr.LcBranchUnknown
|
||||
}
|
||||
|
||||
func (gui *Gui) handleCreateRecentReposMenu() error {
|
||||
|
|
|
|||
|
|
@ -409,6 +409,7 @@ type TranslationSet struct {
|
|||
NoFilesStagedPrompt string
|
||||
BranchNotFoundTitle string
|
||||
BranchNotFoundPrompt string
|
||||
LcBranchUnknown string
|
||||
UnstageLinesTitle string
|
||||
UnstageLinesPrompt string
|
||||
LcCreateNewBranchFromCommit string
|
||||
|
|
@ -1045,6 +1046,7 @@ func EnglishTranslationSet() TranslationSet {
|
|||
NoFilesStagedPrompt: "You have not staged any files. Commit all files?",
|
||||
BranchNotFoundTitle: "Branch not found",
|
||||
BranchNotFoundPrompt: "Branch not found. Create a new branch named",
|
||||
LcBranchUnknown: "branch unknown",
|
||||
UnstageLinesTitle: "Unstage lines",
|
||||
UnstageLinesPrompt: "Are you sure you want to delete the selected lines (git reset)? It is irreversible.\nTo disable this dialogue set the config key of 'gui.skipUnstageLineWarning' to true",
|
||||
LcCreateNewBranchFromCommit: "create new branch off of commit",
|
||||
|
|
|
|||
Loading…
Reference in a new issue