Set Culture Specific on Product Name

Vote:
 

We are in the process of adding multi language support to an ecommerce site. We are trying to make the product name property translatable but not having any success.  The products inherit from the standard ProductContent class, so we have tried overriding the name property in our derived classes. 

        [CultureSpecific]
        public override string Name { get; set; }

But when we try editing this in the cms, then switch to switch to another language, the property is still grayed out.  Has anyone seen this before. Is it even possible or is there anything happening under the hood that would prevent this from working?

#249395
Mar 01, 2021 12:21
Vote:
 

You can use the Display Name property. If you have enabled multi-languages in the catalogue then it will work.

#249400
Mar 01, 2021 13:01
Vote:
 

Name is not a metadata-backed property so even if you override it, it is not localizable. DisplayName as Naveed mentioned is, so you might want to use that instead

#249407
Mar 01, 2021 14:47
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.