localise updater class

This commit is contained in:
Jack Baron 2020-02-02 06:23:30 +00:00
parent 434a59278f
commit 7908f64b24
No known key found for this signature in database
GPG key ID: CD10BCEEC646C064
3 changed files with 10 additions and 2 deletions

View file

@ -51,7 +51,7 @@ namespace ModAssistant
}
catch
{
Utils.SendNotify("Couldn't check for updates.");
Utils.SendNotify((string)Application.Current.FindResource("Updater:CheckFailed"));
}
if (NeedsUpdate) StartUpdate();
@ -74,7 +74,7 @@ namespace ModAssistant
if (String.IsNullOrEmpty(DownloadLink))
{
Utils.SendNotify("Couldn't download update.");
Utils.SendNotify((string)Application.Current.FindResource("Updater:DownloadFailed"));
}
else
{

View file

@ -16,6 +16,10 @@
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} DEBUG</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} DEBUG</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Couldn't check for updates.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Couldn't download update.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">DEBUG</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">DEBUG</sys:String>

View file

@ -16,6 +16,10 @@
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ Install handlers registered!</sys:String>
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{0} OneClick™ Install handlers unregistered!</sys:String>
<!-- Updater Class -->
<sys:String x:Key="Updater:CheckFailed">Couldn't check for updates.</sys:String>
<sys:String x:Key="Updater:DownloadFailed">Couldn't download update.</sys:String>
<!-- Utils Class -->
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
<sys:String x:Key="Utils:NoInstallFolder">Could not detect your Beat Saber install folder. Please select it manually.</sys:String>