From be06ee7a99ca1d84845e586ca2da969a786fbc37 Mon Sep 17 00:00:00 2001 From: Jack Baron Date: Thu, 5 Nov 2020 16:31:24 +0000 Subject: [PATCH] localise bsipa uninstall fail box --- ModAssistant/Localisation/en-DEBUG.xaml | 2 ++ ModAssistant/Localisation/en.xaml | 2 ++ ModAssistant/Pages/Mods.xaml.cs | 5 ++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ModAssistant/Localisation/en-DEBUG.xaml b/ModAssistant/Localisation/en-DEBUG.xaml index 6124d99..a8de611 100644 --- a/ModAssistant/Localisation/en-DEBUG.xaml +++ b/ModAssistant/Localisation/en-DEBUG.xaml @@ -73,6 +73,8 @@ {0} {1} {2} {3} Mods:FailedExtract {0} {1} Mods:FailedExtractMaxReached Mods:SearchLabel + Mods:UninstallBSIPANotFound:Title + Mods:UninstallBSIPANotFound:Body About:Title diff --git a/ModAssistant/Localisation/en.xaml b/ModAssistant/Localisation/en.xaml index b720950..45e9a00 100644 --- a/ModAssistant/Localisation/en.xaml +++ b/ModAssistant/Localisation/en.xaml @@ -104,6 +104,8 @@ Failed to extract {0}, trying again in {1} seconds. ({2}/{3}) Failed to extract {0} after max attempts ({1}), skipping. This mod might not work properly so proceed at your own risk Search... + Failed to Uninstall BSIPA + BSIPA installation not found, uninstall operation skipped. About diff --git a/ModAssistant/Pages/Mods.xaml.cs b/ModAssistant/Pages/Mods.xaml.cs index 6cb8d5f..0861655 100644 --- a/ModAssistant/Pages/Mods.xaml.cs +++ b/ModAssistant/Pages/Mods.xaml.cs @@ -702,7 +702,10 @@ namespace ModAssistant.Pages } else { - System.Windows.Forms.MessageBox.Show("BSIPA was not uninstalled as it was not found.", "Failed to uninstall BSIPA.", MessageBoxButtons.OK,MessageBoxIcon.Warning); + var title = (string)FindResource("Mods:UninstallBSIPANotFound:Title"); + var body = (string)FindResource("Mods:UninstallBSIPANotFound:Body"); + + System.Windows.Forms.MessageBox.Show(body, title, MessageBoxButtons.OK,MessageBoxIcon.Warning); } } foreach (Mod.FileHashes files in links.hashMd5)