mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-23 22:25:14 -04:00
New: Translations support for Health Checks
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.Configuration.Events;
|
||||
using NzbDrone.Core.Download;
|
||||
using NzbDrone.Core.Localization;
|
||||
using NzbDrone.Core.ThingiProvider.Events;
|
||||
|
||||
namespace NzbDrone.Core.HealthCheck.Checks
|
||||
@@ -12,7 +13,8 @@ namespace NzbDrone.Core.HealthCheck.Checks
|
||||
{
|
||||
private readonly IConfigService _configService;
|
||||
|
||||
public ImportMechanismCheck(IConfigService configService)
|
||||
public ImportMechanismCheck(IConfigService configService, ILocalizationService localizationService)
|
||||
: base(localizationService)
|
||||
{
|
||||
_configService = configService;
|
||||
}
|
||||
@@ -21,7 +23,7 @@ namespace NzbDrone.Core.HealthCheck.Checks
|
||||
{
|
||||
if (!_configService.EnableCompletedDownloadHandling)
|
||||
{
|
||||
return new HealthCheck(GetType(), HealthCheckResult.Warning, "Enable Completed Download Handling");
|
||||
return new HealthCheck(GetType(), HealthCheckResult.Warning, _localizationService.GetLocalizedString("ImportMechanismHealthCheckMessage"));
|
||||
}
|
||||
|
||||
return new HealthCheck(GetType());
|
||||
|
||||
Reference in New Issue
Block a user