mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 14:18:20 -05:00
19 lines
515 B
C#
19 lines
515 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Text;
|
|
|
|
namespace SharedLibraryCore.Configuration.Attributes
|
|
{
|
|
class LocalizedDisplayName : DisplayNameAttribute
|
|
{
|
|
private readonly string _localizationKey;
|
|
public LocalizedDisplayName(string localizationKey)
|
|
{
|
|
_localizationKey = localizationKey;
|
|
}
|
|
|
|
public override string DisplayName => Utilities.CurrentLocalization.LocalizationIndex[_localizationKey];
|
|
}
|
|
}
|