mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-19 07:50:29 +00:00
29 lines
791 B
C#
29 lines
791 B
C#
using System.ComponentModel;
|
|
using ConfigGenerator.Localization;
|
|
|
|
namespace ConfigGenerator {
|
|
internal sealed class LocalizedCategoryAttribute : CategoryAttribute {
|
|
internal LocalizedCategoryAttribute(string key) : base(key) { }
|
|
|
|
protected override string GetLocalizedString(string value) {
|
|
switch (value) {
|
|
case "Access":
|
|
return CGStrings.CategoryAccess;
|
|
case "Advanced":
|
|
return CGStrings.CategoryAdvanced;
|
|
case "Core":
|
|
return '\t' + CGStrings.CategoryCore;
|
|
case "Debugging":
|
|
return CGStrings.CategoryDebugging;
|
|
case "Performance":
|
|
return CGStrings.CategoryPerformance;
|
|
case "Updates":
|
|
return CGStrings.CategoryUpdates;
|
|
default:
|
|
Logging.LogGenericWarning("Unknown value: " + value);
|
|
return value;
|
|
}
|
|
}
|
|
}
|
|
}
|