Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Yes, just add attribute [Display(Name = "/your/path/to/translation/heading")] to the property.
Is it possible to translate properties in a ListProperty?
I would like to translate the Heading and Text property in the ExpandableModel. I've tried this but that will only translate the Items property...
public class ExpandableListBlock : BlockData { [Display(Order = 10)] [CultureSpecific] public virtual string Heading { get; set; } [Display(Order = 20)] [EditorDescriptor(EditorDescriptorType = typeof(CollectionEditorDescriptor))]
public virtual IList Items { get; set; }
}
public class ExpandableModel { [UIHint(UIHint.Textarea)] public virtual string Heading { get; set; } public virtual XhtmlString Text { get; set; } }