mirror of
https://github.com/knah/VRCMelonAssistant.git
synced 2024-09-29 08:41:43 +13:00
localise updater class
This commit is contained in:
parent
434a59278f
commit
7908f64b24
3 changed files with 10 additions and 2 deletions
|
@ -51,7 +51,7 @@ namespace ModAssistant
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
Utils.SendNotify("Couldn't check for updates.");
|
Utils.SendNotify((string)Application.Current.FindResource("Updater:CheckFailed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NeedsUpdate) StartUpdate();
|
if (NeedsUpdate) StartUpdate();
|
||||||
|
@ -74,7 +74,7 @@ namespace ModAssistant
|
||||||
|
|
||||||
if (String.IsNullOrEmpty(DownloadLink))
|
if (String.IsNullOrEmpty(DownloadLink))
|
||||||
{
|
{
|
||||||
Utils.SendNotify("Couldn't download update.");
|
Utils.SendNotify((string)Application.Current.FindResource("Updater:DownloadFailed"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} DEBUG</sys:String>
|
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} DEBUG</sys:String>
|
||||||
<sys:String x:Key="OneClick:ProtocolHandler:Unregistered">{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 -->
|
<!-- Utils Class -->
|
||||||
<sys:String x:Key="Utils:NotificationTitle">DEBUG</sys:String>
|
<sys:String x:Key="Utils:NotificationTitle">DEBUG</sys:String>
|
||||||
<sys:String x:Key="Utils:NoInstallFolder">DEBUG</sys:String>
|
<sys:String x:Key="Utils:NoInstallFolder">DEBUG</sys:String>
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
<sys:String x:Key="OneClick:ProtocolHandler:Registered">{0} OneClick™ Install handlers registered!</sys:String>
|
<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>
|
<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 -->
|
<!-- Utils Class -->
|
||||||
<sys:String x:Key="Utils:NotificationTitle">Mod Assistant</sys:String>
|
<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>
|
<sys:String x:Key="Utils:NoInstallFolder">Could not detect your Beat Saber install folder. Please select it manually.</sys:String>
|
||||||
|
|
Loading…
Reference in a new issue