mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 17:51:18 +08:00
Fixing file name typo
This commit is contained in:
parent
7f463d07cc
commit
3a73e77afe
@ -1,23 +1,23 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using Orchard.Localization;
|
using Orchard.Localization;
|
||||||
|
|
||||||
namespace Orchard.Mvc.DataAnnotations {
|
namespace Orchard.Mvc.DataAnnotations {
|
||||||
public class LocalizedRegularExpressionAttribute : RegularExpressionAttribute {
|
public class LocalizedRegularExpressionAttribute : RegularExpressionAttribute {
|
||||||
public LocalizedRegularExpressionAttribute(RegularExpressionAttribute attribute, Localizer t)
|
public LocalizedRegularExpressionAttribute(RegularExpressionAttribute attribute, Localizer t)
|
||||||
: base(attribute.Pattern) {
|
: base(attribute.Pattern) {
|
||||||
if ( !String.IsNullOrEmpty(attribute.ErrorMessage) )
|
if ( !String.IsNullOrEmpty(attribute.ErrorMessage) )
|
||||||
ErrorMessage = attribute.ErrorMessage;
|
ErrorMessage = attribute.ErrorMessage;
|
||||||
|
|
||||||
T = t;
|
T = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Localizer T { get; set; }
|
public Localizer T { get; set; }
|
||||||
|
|
||||||
public override string FormatErrorMessage(string name) {
|
public override string FormatErrorMessage(string name) {
|
||||||
return String.IsNullOrEmpty(ErrorMessage)
|
return String.IsNullOrEmpty(ErrorMessage)
|
||||||
? T("The field {0} must match the regular expression '{1}'.", name, Pattern).Text
|
? T("The field {0} must match the regular expression '{1}'.", name, Pattern).Text
|
||||||
: T(ErrorMessage, name, Pattern).Text;
|
: T(ErrorMessage, name, Pattern).Text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -265,7 +265,7 @@
|
|||||||
<Compile Include="Logging\OrchardLog4netFactory.cs" />
|
<Compile Include="Logging\OrchardLog4netFactory.cs" />
|
||||||
<Compile Include="Logging\OrchardLog4netLogger.cs" />
|
<Compile Include="Logging\OrchardLog4netLogger.cs" />
|
||||||
<Compile Include="Messaging\Services\DefaultMessageManager.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\LocalizedStringMaxLengthAttribute.cs" />
|
||||||
<Compile Include="Mvc\DataAnnotations\LocalizedRangeAttribute.cs" />
|
<Compile Include="Mvc\DataAnnotations\LocalizedRangeAttribute.cs" />
|
||||||
<Compile Include="Mvc\DataAnnotations\LocalizedModelValidatorProvider.cs" />
|
<Compile Include="Mvc\DataAnnotations\LocalizedModelValidatorProvider.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user