diff options
author | Moritz Haase <Moritz.Haase@bmw.de> | 2022-03-24 13:19:46 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-28 09:13:34 +1100 |
commit | b7079634ee6b597ab5f8082e2deda2b52d9cc648 (patch) | |
tree | 4c1c10f80229ee6e3a5e608fa6021da0fffb63c6 /pkg/i18n/english.go | |
parent | 9bccc20888bbd92edbb902e35606166e29b12afe (diff) |
i18n: Make user-facing strings in the updater translatable
Convert a number of static (english) user-facing string in the updater code to
translatable ones.
Diffstat (limited to 'pkg/i18n/english.go')
-rw-r--r-- | pkg/i18n/english.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 3bef51e8b..f7f02600e 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -129,9 +129,16 @@ type TranslationSet struct { UpdatesRejectedAndForcePushDisabled string LcCheckForUpdate string CheckingForUpdates string + UpdateAvailableTitle string + UpdateAvailable string + UpdateInProgressWaitingStatus string + FailedToRetrieveLatestVersionErr string OnLatestVersionErr string MajorVersionErr string CouldNotFindBinaryErr string + UpdateFailedErr string + ConfirmQuitDuringUpdateTitle string + ConfirmQuitDuringUpdate string MergeToolTitle string MergeToolPrompt string IntroPopupMessage string @@ -719,9 +726,16 @@ func EnglishTranslationSet() TranslationSet { UpdatesRejectedAndForcePushDisabled: "Updates were rejected and you have disabled force pushing", LcCheckForUpdate: "check for update", CheckingForUpdates: "Checking for updates...", + UpdateAvailableTitle: "Update available!", + UpdateAvailable: "Download and install version {{.newVersion}}?", + UpdateInProgressWaitingStatus: "updating", + FailedToRetrieveLatestVersionErr: "Failed to retrieve version information", OnLatestVersionErr: "You already have the latest version", MajorVersionErr: "New version ({{.newVersion}}) has non-backwards compatible changes compared to the current version ({{.currentVersion}})", CouldNotFindBinaryErr: "Could not find any binary at {{.url}}", + UpdateFailedErr: "Update failed: {{.errMessage}}", + ConfirmQuitDuringUpdateTitle: "Currently Updating", + ConfirmQuitDuringUpdate: "An update is in progress. Are you sure you want to quit?", MergeToolTitle: "Merge tool", MergeToolPrompt: "Are you sure you want to open `git mergetool`?", IntroPopupMessage: englishIntroPopupMessage, |