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

Make tooltip i18n-able

This commit is contained in:
Luka Markušić 2022-05-15 12:16:20 +02:00
parent ca191159f5
commit 241d182da7
2 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func (self *FilesController) createResetMenu() error {
self.c.Tr.LcDiscardStagedChanges,
red.Sprint("stash staged and drop stash"),
},
Tooltip: "This will create a new stash entry containing only staged files and then drop it.",
Tooltip: self.c.Tr.DiscardStagedChangesDescription,
OnPress: func() error {
self.c.LogAction(self.c.Tr.Actions.RemoveStagedFiles)
if !self.helpers.WorkingTree.IsWorkingTreeDirty() {

View File

@ -492,6 +492,7 @@ type TranslationSet struct {
HardResetAutostashPrompt string
UpstreamGone string
NukeDescription string
DiscardStagedChangesDescription string
Actions Actions
Bisect Bisect
}
@ -1112,6 +1113,7 @@ func EnglishTranslationSet() TranslationSet {
CheckoutPrompt: "Are you sure you want to checkout '%s'?",
UpstreamGone: "(upstream gone)",
NukeDescription: "If you want to make all the changes in the worktree go away, this is the way to do it. If there are dirty submodule changes this will stash those changes in the submodule(s).",
DiscardStagedChangesDescription: "This will create a new stash entry containing only staged files and then drop it, so that the working tree is left with only unstaged changes",
Actions: Actions{
// TODO: combine this with the original keybinding descriptions (those are all in lowercase atm)
CheckoutCommit: "Checkout commit",