Enumeration Texts
This enumeration and its Description attributes defines following local text keys and translations:
Enumeration translations use full name of enumeration type as prefix to generate local text keys. This prefix can be overriden with EnumKeyAttribute:
Now defined keys and translations are:
Key | LanguageID | Text (Translation) |
---|---|---|
Enums.Something.Value1 | First Value | |
Enums.Something.Value2 | Second Value |
EnumLocalTextRegistration Class
For enumeration local text definitions to be registered, you need to call EnumLocalTextRegistration.Initialize() method in your application start:
It gets list of assemblies to search for enumeration types. You can pass list of assemblies manually or use ExtensibilityHelper.SelfAssemblies which contains all assemblies that reference a Serenity assembly.