Localize all help.

This commit is contained in:
2025-11-21 15:39:54 +00:00
parent 824b6b2032
commit b34e549edd
28 changed files with 328 additions and 222 deletions

View File

@@ -0,0 +1,13 @@
using System.ComponentModel;
using Aaru.Localization;
namespace Aaru.CommonTypes;
public class LocalizedDescriptionAttribute : DescriptionAttribute
{
private readonly string _resourceKey;
public LocalizedDescriptionAttribute(string resourceKey) => _resourceKey = resourceKey;
public override string Description => UI.ResourceManager.GetString(_resourceKey) ?? _resourceKey;
}