Try our conversational search powered by Generative AI!

Using culture specific properties in ImageData

Vote:
 

Hi everyone

Sorry I'm new to Episerver and I'm trying to understand why I can't save a property for every language of my media file.

The object definition is the following:

public class ImageFile : ImageData
    {
        [CultureSpecific]
        public virtual string Description { get; set; }

        [CultureSpecific]
        public virtual string Alt { get; set; }

        [CultureSpecific]
        public virtual string Copyright { get; set; }

    }

And entering the CMS admin, in properties of my image, I can write into textboxes called "Copyright / alt / description"

My problem is that I can't save a string for each language as it seems I don't have a version for each language: just an unique version of that file.

Can anyone help me to understand where I'm wrong?

#118600
Mar 10, 2015 16:50
Vote:
 

Hello Claudio 

By default properties of MediaData items cannot be translated. However someone has written a blog on how this can be done:

http://www.patrickvankleef.com/2014/06/16/use-culture-specific-mediadata-properties/

David

#118603
Mar 10, 2015 18:03
Vote:
 

what a bad thing.... however, thank you for your answer David.

I saw that post but I had the hope it was different/better on episerver 8

#118604
Mar 10, 2015 18:10
* 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.