Is it possible to get Windows localization for .NET enums? For example, I'd like to get translation of System.IO.Ports.Parity values.
Here is System.IO.Ports.Parity:
public enum Parity { None = 0, Odd = 1, Even = 2, Mark = 3, Space = 4, } Windows shows them as {"Чет", "Нечет", "Нет", "Маркер", "Пробел"} in COM-port properties window (I use Russian version of Windows 8).
The thing is, I don't want to hardcode these "translations". I'd like to get them automatically according to current culture.
"Enum.Port.Parity.Odd=Odd"), then translate it and show. Don't show names as they are.