Skip to content

Commit e7b90b8

Browse files
committed
add translation for download failed error msg
1 parent 262cf90 commit e7b90b8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/Languages/en.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
<system:String x:Key="plugin_pluginsmanager_update_title">Plugin Update</system:String>
2020
<system:String x:Key="plugin_pluginsmanager_update_exists">This plugin has an update, would you like to see it?</system:String>
2121
<system:String x:Key="plugin_pluginsmanager_update_alreadyexists">This plugin is already installed</system:String>
22+
<system:String x:Key="plugin_pluginsmanager_update_failed_title">Plugin Manifest Download Failed</system:String>
23+
<system:String x:Key="plugin_pluginsmanager_update_failed_subtitle">Please check if you can connect to github.com. This error means you may not be able to install or update plugins.</system:String>
2224

2325
<!--Controls-->
2426

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,8 @@ internal Task UpdateManifest()
6161
{
6262
_downloadManifestTask = pluginsManifest.DownloadManifest();
6363
_downloadManifestTask.ContinueWith(_ =>
64-
Context.API.ShowMsg("Plugin Manifest Download Fail.",
65-
"Please check if you can connect to github.com. " +
66-
"This error means you may not be able to Install and Update Plugin.", icoPath, false),
64+
Context.API.ShowMsg(Context.API.GetTranslation("plugin_pluginsmanager_update_failed_title"),
65+
Context.API.GetTranslation("plugin_pluginsmanager_update_failed_subtitle"), icoPath, false),
6766
TaskContinuationOptions.OnlyOnFaulted);
6867
return _downloadManifestTask;
6968
}

0 commit comments

Comments
 (0)