search and ai stabilization work, localization stablized.

This commit is contained in:
master
2026-02-24 23:29:36 +02:00
parent 4f947a8b61
commit b07d27772e
766 changed files with 55299 additions and 3221 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.IO;
using System.Linq;
using static StellaOps.Localization.T;
namespace StellaOps.Cryptography.Kms;
@@ -24,7 +25,7 @@ public sealed partial class FileKmsClient
version = record.Versions.SingleOrDefault(v => string.Equals(v.VersionId, keyVersion, StringComparison.Ordinal));
if (version is null)
{
throw new InvalidOperationException($"Key version '{keyVersion}' does not exist for key '{record.KeyId}'.");
throw new InvalidOperationException(_t("crypto.kms.key_version_not_found", keyVersion, record.KeyId));
}
}
else if (!string.IsNullOrWhiteSpace(record.ActiveVersion))
@@ -39,7 +40,7 @@ public sealed partial class FileKmsClient
if (version is null)
{
throw new InvalidOperationException($"Key '{record.KeyId}' does not have an active version.");
throw new InvalidOperationException(_t("crypto.kms.key_no_active_version", record.KeyId));
}
return version;