search and ai stabilization work, localization stablized.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using static StellaOps.Localization.T;
|
||||
|
||||
namespace StellaOps.Configuration;
|
||||
|
||||
@@ -9,12 +10,12 @@ public sealed partial class StellaOpsAuthorityOptions
|
||||
{
|
||||
if (value <= TimeSpan.Zero)
|
||||
{
|
||||
throw new InvalidOperationException($"Authority configuration requires {propertyName} to be greater than zero.");
|
||||
throw new InvalidOperationException(_t("config.authority.property_greater_than_zero", propertyName));
|
||||
}
|
||||
|
||||
if (value > maximum)
|
||||
{
|
||||
throw new InvalidOperationException($"Authority configuration requires {propertyName} to be less than or equal to {maximum}.");
|
||||
throw new InvalidOperationException(_t("config.authority.property_max", propertyName, maximum));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user