mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Localize plugin init fail message
This commit is contained in:
parent
d502f1dd25
commit
bfd8dfe2e1
2 changed files with 11 additions and 3 deletions
|
|
@ -209,9 +209,15 @@ namespace Flow.Launcher.Core.Plugin
|
||||||
if (failedPlugins.Any())
|
if (failedPlugins.Any())
|
||||||
{
|
{
|
||||||
var failed = string.Join(",", failedPlugins.Select(x => x.Metadata.Name));
|
var failed = string.Join(",", failedPlugins.Select(x => x.Metadata.Name));
|
||||||
API.ShowMsg($"Fail to Init Plugins",
|
API.ShowMsg(
|
||||||
$"Plugins: {failed} - fail to load and would be disabled, please contact plugin creator for help",
|
InternationalizationManager.Instance.GetTranslation("failedToInitializePluginsTitle"),
|
||||||
"", false);
|
string.Format(
|
||||||
|
InternationalizationManager.Instance.GetTranslation("failedToInitializePluginsMessage"),
|
||||||
|
failed
|
||||||
|
),
|
||||||
|
"",
|
||||||
|
false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@
|
||||||
</system:String>
|
</system:String>
|
||||||
<system:String x:Key="runtimePluginChooseRuntimeExecutable">Please select the {0} executable</system:String>
|
<system:String x:Key="runtimePluginChooseRuntimeExecutable">Please select the {0} executable</system:String>
|
||||||
<system:String x:Key="runtimePluginUnableToSetExecutablePath">Unable to set {0} executable path, please try from Flow's settings (scroll down to the bottom).</system:String>
|
<system:String x:Key="runtimePluginUnableToSetExecutablePath">Unable to set {0} executable path, please try from Flow's settings (scroll down to the bottom).</system:String>
|
||||||
|
<system:String x:Key="failedToInitializePluginsTitle">Fail to Init Plugins</system:String>
|
||||||
|
<system:String x:Key="failedToInitializePluginsMessage">Plugins: {0} - fail to load and would be disabled, please contact plugin creator for help</system:String>
|
||||||
|
|
||||||
<!-- MainWindow -->
|
<!-- MainWindow -->
|
||||||
<system:String x:Key="registerHotkeyFailed">Failed to register hotkey "{0}". The hotkey may be in use by another program. Change to a different hotkey, or exit another program.</system:String>
|
<system:String x:Key="registerHotkeyFailed">Failed to register hotkey "{0}". The hotkey may be in use by another program. Change to a different hotkey, or exit another program.</system:String>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue