how to translate System.ComponentModel.Annotations-Attributes?

Jun 1, 2011 at 10:57 AM

I just came across this inside module CyberStride.Contacts:

        [RegularExpression(Validations.EMAIL_ADDRESS_PATTERN, ErrorMessage="Email does not appear to be in a valid format")]
        [Required]
        public string Email
        {
            get { return Record.Email; }
            set { Record.Email = value; }
        }

 

How would I translate both the RegularExpression.ErrorMessage and the implicit message which [Required] would trigger?

Oct 26, 2011 at 10:12 AM

I have exactly the same problem - I'm trying to localize error messages in CyberStride.Contacts module.
Is there anyone who knows how to deal with this type of messages, or at least can point out some 
documentation about modifying modules to allow this localization.  

Feb 22, 2012 at 10:09 AM

I think you can use the 'regular' way to do translations (using regx files) but I agree that that shouldn't be the way to go for orchard :(

I'm not 100% btw, but thats what I found when I searched for a solution.