Base solution for your next web application
Open Closed

What is ILocalizableString? #2759


User avatar
0
bilalhaidar created

Hi, I noticed in the Features class, the following property:

/// <summary>
        /// Display name of the feature.
        /// This can be used to show features on UI.
        /// </summary>
        public ILocalizableString DisplayName { get; set; }

Reading through the comments, this allows us to have a localized string.

How would I then be able to localize such a property? I mean what are the steps required for localization? Or just by having a key of "DisplayName" in the .xml files, it works automagically? Or how?

Thanks


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

    Hi,

    You can check the definition of "ChatFeature" feature for this. Basically when defining a Feature, set it's display name like L("ChatFeature") and add values with key "ChatFeature" in localization xml files and it will work like you said.

  • User Avatar
    0
    bilalhaidar created

    Oh okay. So instead of just assigning a normal string, I assign an L("string").

    Thanks, I got it.