diff --git a/pkg/commands/git.go b/pkg/commands/git.go index c4de147cd..ec53d985d 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -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 // where we continue the rebase if c.usingGpg() { - errors.New("feature not available for users using GPG") + errors.New(c.Tr.SLocalize("DisabledForGPG")) } commitSha := commits[commitIndex].Sha diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index 13eb1ee0c..c90bab649 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -667,6 +667,9 @@ func addDutch(i18nObject *i18n.Bundle) error { }, &i18n.Message{ 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", + }, &i18n.Message{ + ID: "DisabledForGPG", + Other: "Feature not available for users using GPG", }, ) } diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 925b9db38..f9b32b86f 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -690,6 +690,9 @@ func addEnglish(i18nObject *i18n.Bundle) error { }, &i18n.Message{ 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", + }, &i18n.Message{ + ID: "DisabledForGPG", + Other: "Feature not available for users using GPG", }, ) } diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index 37791d9e5..2eaddeff1 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -650,6 +650,9 @@ func addPolish(i18nObject *i18n.Bundle) error { }, &i18n.Message{ 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", + }, &i18n.Message{ + ID: "DisabledForGPG", + Other: "Feature not available for users using GPG", }, ) }