diff --git a/src/Orchard/Mvc/DataAnnotations/LocalizedReularExpressionAttribute.cs b/src/Orchard/Mvc/DataAnnotations/LocalizedRegularExpressionAttribute.cs similarity index 97% rename from src/Orchard/Mvc/DataAnnotations/LocalizedReularExpressionAttribute.cs rename to src/Orchard/Mvc/DataAnnotations/LocalizedRegularExpressionAttribute.cs index 4ff861822..6a8a77c3f 100644 --- a/src/Orchard/Mvc/DataAnnotations/LocalizedReularExpressionAttribute.cs +++ b/src/Orchard/Mvc/DataAnnotations/LocalizedRegularExpressionAttribute.cs @@ -1,23 +1,23 @@ -using System; -using System.ComponentModel.DataAnnotations; -using Orchard.Localization; - -namespace Orchard.Mvc.DataAnnotations { - public class LocalizedRegularExpressionAttribute : RegularExpressionAttribute { - public LocalizedRegularExpressionAttribute(RegularExpressionAttribute attribute, Localizer t) - : base(attribute.Pattern) { - if ( !String.IsNullOrEmpty(attribute.ErrorMessage) ) - ErrorMessage = attribute.ErrorMessage; - - T = t; - } - - public Localizer T { get; set; } - - public override string FormatErrorMessage(string name) { - return String.IsNullOrEmpty(ErrorMessage) - ? T("The field {0} must match the regular expression '{1}'.", name, Pattern).Text - : T(ErrorMessage, name, Pattern).Text; - } - } +using System; +using System.ComponentModel.DataAnnotations; +using Orchard.Localization; + +namespace Orchard.Mvc.DataAnnotations { + public class LocalizedRegularExpressionAttribute : RegularExpressionAttribute { + public LocalizedRegularExpressionAttribute(RegularExpressionAttribute attribute, Localizer t) + : base(attribute.Pattern) { + if ( !String.IsNullOrEmpty(attribute.ErrorMessage) ) + ErrorMessage = attribute.ErrorMessage; + + T = t; + } + + public Localizer T { get; set; } + + public override string FormatErrorMessage(string name) { + return String.IsNullOrEmpty(ErrorMessage) + ? T("The field {0} must match the regular expression '{1}'.", name, Pattern).Text + : T(ErrorMessage, name, Pattern).Text; + } + } } \ No newline at end of file diff --git a/src/Orchard/Orchard.Framework.csproj b/src/Orchard/Orchard.Framework.csproj index 6c04b2476..fa0446aa1 100644 --- a/src/Orchard/Orchard.Framework.csproj +++ b/src/Orchard/Orchard.Framework.csproj @@ -265,7 +265,7 @@ - +