From 3f567c952c310a1bc446c2c89fc5857b8ef79053 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 11 Mar 2019 13:27:32 +1100 Subject: i18n for error message about a feature being disabled for GPG users --- pkg/commands/git.go | 2 +- pkg/i18n/dutch.go | 3 +++ pkg/i18n/english.go | 3 +++ pkg/i18n/polish.go | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) 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", }, ) } -- cgit v1.2.3