mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
i18n for error message about a feature being disabled for GPG users
This commit is contained in:
@ -836,7 +836,7 @@ func (c *GitCommand) DiscardOldFileChanges(commits []*Commit, commitIndex int, f
|
|||||||
// one where we handle the possibility of a credential request, and the other
|
// one where we handle the possibility of a credential request, and the other
|
||||||
// where we continue the rebase
|
// where we continue the rebase
|
||||||
if c.usingGpg() {
|
if c.usingGpg() {
|
||||||
errors.New("feature not available for users using GPG")
|
errors.New(c.Tr.SLocalize("DisabledForGPG"))
|
||||||
}
|
}
|
||||||
|
|
||||||
commitSha := commits[commitIndex].Sha
|
commitSha := commits[commitIndex].Sha
|
||||||
|
@ -667,6 +667,9 @@ func addDutch(i18nObject *i18n.Bundle) error {
|
|||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "DiscardFileChangesPrompt",
|
ID: "DiscardFileChangesPrompt",
|
||||||
Other: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
Other: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
||||||
|
}, &i18n.Message{
|
||||||
|
ID: "DisabledForGPG",
|
||||||
|
Other: "Feature not available for users using GPG",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -690,6 +690,9 @@ func addEnglish(i18nObject *i18n.Bundle) error {
|
|||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "DiscardFileChangesPrompt",
|
ID: "DiscardFileChangesPrompt",
|
||||||
Other: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
Other: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
||||||
|
}, &i18n.Message{
|
||||||
|
ID: "DisabledForGPG",
|
||||||
|
Other: "Feature not available for users using GPG",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -650,6 +650,9 @@ func addPolish(i18nObject *i18n.Bundle) error {
|
|||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "DiscardFileChangesPrompt",
|
ID: "DiscardFileChangesPrompt",
|
||||||
Other: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
Other: "Are you sure you want to discard this commit's changes to this file? If this file was created in this commit, it will be deleted",
|
||||||
|
}, &i18n.Message{
|
||||||
|
ID: "DisabledForGPG",
|
||||||
|
Other: "Feature not available for users using GPG",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user