Fixing file name typo

This commit is contained in:
Zoltán Lehóczky 2013-08-27 18:44:05 +02:00
parent 7f463d07cc
commit 3a73e77afe
2 changed files with 23 additions and 23 deletions

View File

@ -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;
}
}
}

View File

@ -265,7 +265,7 @@
<Compile Include="Logging\OrchardLog4netFactory.cs" />
<Compile Include="Logging\OrchardLog4netLogger.cs" />
<Compile Include="Messaging\Services\DefaultMessageManager.cs" />
<Compile Include="Mvc\DataAnnotations\LocalizedReularExpressionAttribute.cs" />
<Compile Include="Mvc\DataAnnotations\LocalizedRegularExpressionAttribute.cs" />
<Compile Include="Mvc\DataAnnotations\LocalizedStringMaxLengthAttribute.cs" />
<Compile Include="Mvc\DataAnnotations\LocalizedRangeAttribute.cs" />
<Compile Include="Mvc\DataAnnotations\LocalizedModelValidatorProvider.cs" />