Add wiki fragment and translation to UpdateCheck

pull/1649/head v1.5.0.3300
Bogdan 2 years ago
parent 5e5699fbbe
commit 1fd188fe7a

@ -68,12 +68,9 @@ namespace NzbDrone.Core.HealthCheck.Checks
} }
} }
if (BuildInfo.BuildDateTime < DateTime.UtcNow.AddDays(-14)) if (BuildInfo.BuildDateTime < DateTime.UtcNow.AddDays(-14) && _checkUpdateService.AvailableUpdate() != null)
{ {
if (_checkUpdateService.AvailableUpdate() != null) return new HealthCheck(GetType(), HealthCheckResult.Warning, _localizationService.GetLocalizedString("UpdateAvailable"), "#new-update-is-available");
{
return new HealthCheck(GetType(), HealthCheckResult.Warning, "New update is available");
}
} }
return new HealthCheck(GetType()); return new HealthCheck(GetType());

@ -484,6 +484,7 @@
"UnsavedChanges": "Unsaved Changes", "UnsavedChanges": "Unsaved Changes",
"UnselectAll": "Unselect All", "UnselectAll": "Unselect All",
"UpdateAutomaticallyHelpText": "Automatically download and install updates. You will still be able to install from System: Updates", "UpdateAutomaticallyHelpText": "Automatically download and install updates. You will still be able to install from System: Updates",
"UpdateAvailable": "New update is available",
"UpdateCheckStartupNotWritableMessage": "Cannot install update because startup folder '{0}' is not writable by the user '{1}'.", "UpdateCheckStartupNotWritableMessage": "Cannot install update because startup folder '{0}' is not writable by the user '{1}'.",
"UpdateCheckStartupTranslocationMessage": "Cannot install update because startup folder '{0}' is in an App Translocation folder.", "UpdateCheckStartupTranslocationMessage": "Cannot install update because startup folder '{0}' is in an App Translocation folder.",
"UpdateCheckUINotWritableMessage": "Cannot install update because UI folder '{0}' is not writable by the user '{1}'.", "UpdateCheckUINotWritableMessage": "Cannot install update because UI folder '{0}' is not writable by the user '{1}'.",

Loading…
Cancel
Save