Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Translations for Display attribute not working for PropertyList

Fixed in

EPiServer.CMS.UI 11.13.2

(Or a related package)

Created

Nov 30, 2018

Updated

Dec 10, 2018

Area

CMS UI

State

Closed, Fixed and tested


Description

Steps to reproduce

  1. Define a PropertyList on the StartPage with a Display attribute that requires translation (see code below)
  2. Go to the start page.

Expected:
The Name property is translated.

Actual:
The translation key is displayed.

public class StartPage : SitePageData
{
    // all current properties do not change
 
    [EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor<PerformanceAlert>))]
    public virtual IList<PerformanceAlert> PerformanceAlertList { get; set; }
}
 
[PropertyDefinitionTypePlugIn]
public class PerformanceAlertProperty : PropertyList<PerformanceAlert>
{
}
 
public class PerformanceAlert
{
    [Display(Name = "/resolutions/androidvertical")]
    public virtual int PerformanceId { get; set; }
 
    public virtual int AnotherProperty { get; set; }
}