mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Renaming ILocalizablePart to ILocalizableAspect
--HG-- branch : 1.x
This commit is contained in:
@@ -4,7 +4,7 @@ using Orchard.ContentManagement.Utilities;
|
|||||||
using Orchard.Localization.Records;
|
using Orchard.Localization.Records;
|
||||||
|
|
||||||
namespace Orchard.Localization.Models {
|
namespace Orchard.Localization.Models {
|
||||||
public sealed class LocalizationPart : ContentPart<LocalizationPartRecord>, ILocalizablePart {
|
public sealed class LocalizationPart : ContentPart<LocalizationPartRecord>, ILocalizableAspect {
|
||||||
private readonly LazyField<CultureRecord> _culture = new LazyField<CultureRecord>();
|
private readonly LazyField<CultureRecord> _culture = new LazyField<CultureRecord>();
|
||||||
private readonly LazyField<IContent> _masterContentItem = new LazyField<IContent>();
|
private readonly LazyField<IContent> _masterContentItem = new LazyField<IContent>();
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ namespace Orchard.Localization.Models {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string ILocalizablePart.Culture {
|
string ILocalizableAspect.Culture {
|
||||||
get { return Culture == null ? null : Culture.Culture; }
|
get { return Culture == null ? null : Culture.Culture; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -72,7 +72,7 @@ namespace Orchard.Widgets.Filters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ignore widget for different cultures
|
// ignore widget for different cultures
|
||||||
var localizablePart = widgetPart.As<ILocalizablePart>();
|
var localizablePart = widgetPart.As<ILocalizableAspect>();
|
||||||
if (localizablePart == null || localizablePart.Culture != workContext.CurrentCulture) {
|
if (localizablePart == null || localizablePart.Culture != workContext.CurrentCulture) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
namespace Orchard.ContentManagement.Aspects {
|
namespace Orchard.ContentManagement.Aspects {
|
||||||
public interface ILocalizablePart : IContent {
|
public interface ILocalizableAspect : IContent {
|
||||||
string Culture { get ; }
|
string Culture { get ; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -164,7 +164,7 @@
|
|||||||
<Compile Include="Caching\DefaultParallelCacheContext.cs" />
|
<Compile Include="Caching\DefaultParallelCacheContext.cs" />
|
||||||
<Compile Include="Caching\ICacheContextAccessor.cs" />
|
<Compile Include="Caching\ICacheContextAccessor.cs" />
|
||||||
<Compile Include="Caching\IParallelCacheContext.cs" />
|
<Compile Include="Caching\IParallelCacheContext.cs" />
|
||||||
<Compile Include="ContentManagement\Aspects\ILocalizablePart.cs" />
|
<Compile Include="ContentManagement\Aspects\ILocalizableAspect.cs" />
|
||||||
<Compile Include="ContentManagement\ContentIdentity.cs" />
|
<Compile Include="ContentManagement\ContentIdentity.cs" />
|
||||||
<Compile Include="ContentManagement\ContentItemBehavior.cs" />
|
<Compile Include="ContentManagement\ContentItemBehavior.cs" />
|
||||||
<Compile Include="ContentManagement\ContentPartBehavior.cs" />
|
<Compile Include="ContentManagement\ContentPartBehavior.cs" />
|
||||||
|
Reference in New Issue
Block a user