Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to localize enumerable variants? #2527


User avatar
0
trendline created

Is there a way that could define the localization string for enumerable variants? Such as below enumerable class:

/// <summary>
    /// Represents an evaluated result item status enumeration
    /// </summary>
    public enum FeedbackStatus
    {
        /// <summary>
        /// Active 
        /// </summary>
        Active = 10,
        /// <summary>
        /// Resolved
        /// </summary>
        Resolved = 20,
        /// <summary>
        /// Won't fix
        /// </summary>
        WillNotFix = 30,
        /// <summary>
        /// Closed 
        /// </summary>
        Closed = 40
    }

Then they will be used as a dropdownlist, but how to get the localization string when it is rendering.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Currently, there is nothing for this in ABP or AspNet Zero. You need to implement it by yourself.