summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-03-11 13:27:32 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-03-16 10:20:27 +1100
commit3f567c952c310a1bc446c2c89fc5857b8ef79053 (patch)
tree1c7fb5a635564e81c37f2ec6d874d98ea01c2060 /pkg
parent4f7f6a073ced1b31be6bbac119d1f0f4de229578 (diff)
i18n for error message about a feature being disabled for GPG users
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git.go2
-rw-r--r--pkg/i18n/dutch.go3
-rw-r--r--pkg/i18n/english.go3
-rw-r--r--pkg/i18n/polish.go3
4 files changed, 10 insertions, 1 deletions
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",
},
)
}