localise bsipa uninstall fail box

This commit is contained in:
Jack Baron 2020-11-05 16:31:24 +00:00
parent 8659cbb7f7
commit be06ee7a99
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064
3 changed files with 8 additions and 1 deletions

View file

@ -73,6 +73,8 @@
<sys:String x:Key="Mods:FailedExtract">{0} {1} {2} {3} Mods:FailedExtract</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">{0} {1} Mods:FailedExtractMaxReached</sys:String>
<sys:String x:Key="Mods:SearchLabel">Mods:SearchLabel</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Mods:UninstallBSIPANotFound:Title</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">Mods:UninstallBSIPANotFound:Body</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">About:Title</sys:String>

View file

@ -104,6 +104,8 @@
<sys:String x:Key="Mods:FailedExtract">Failed to extract {0}, trying again in {1} seconds. ({2}/{3})</sys:String>
<sys:String x:Key="Mods:FailedExtractMaxReached">Failed to extract {0} after max attempts ({1}), skipping. This mod might not work properly so proceed at your own risk</sys:String>
<sys:String x:Key="Mods:SearchLabel">Search...</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Title">Failed to Uninstall BSIPA</sys:String>
<sys:String x:Key="Mods:UninstallBSIPANotFound:Body">BSIPA installation not found, uninstall operation skipped.</sys:String>
<!-- About Page -->
<sys:String x:Key="About:Title">About</sys:String>

View file

@ -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)