From e7b90b818e4773849736d7e227d764c37005b564 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Sun, 4 Jul 2021 21:12:22 +1000 Subject: [PATCH] add translation for download failed error msg --- .../Flow.Launcher.Plugin.PluginsManager/Languages/en.xaml | 2 ++ .../Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/en.xaml b/Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/en.xaml index 3017f39c3..c36a1dcaa 100644 --- a/Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/en.xaml +++ b/Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/en.xaml @@ -19,6 +19,8 @@ Plugin Update This plugin has an update, would you like to see it? This plugin is already installed + Plugin Manifest Download Failed + Please check if you can connect to github.com. This error means you may not be able to install or update plugins. diff --git a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs index ac40b53bc..1aa39469b 100644 --- a/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs +++ b/Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs @@ -61,9 +61,8 @@ namespace Flow.Launcher.Plugin.PluginsManager { _downloadManifestTask = pluginsManifest.DownloadManifest(); _downloadManifestTask.ContinueWith(_ => - Context.API.ShowMsg("Plugin Manifest Download Fail.", - "Please check if you can connect to github.com. " + - "This error means you may not be able to Install and Update Plugin.", icoPath, false), + Context.API.ShowMsg(Context.API.GetTranslation("plugin_pluginsmanager_update_failed_title"), + Context.API.GetTranslation("plugin_pluginsmanager_update_failed_subtitle"), icoPath, false), TaskContinuationOptions.OnlyOnFaulted); return _downloadManifestTask; }