mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-07-31 21:32:56 +08:00
Fixing file name typo
This commit is contained in:
parent
7f463d07cc
commit
3a73e77afe
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user