diff --git a/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs b/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs
index 234e787fa..2de1b3c75 100644
--- a/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs
+++ b/src/Orchard.Tests/Commands/CommandHandlerDescriptorBuilderTests.cs
@@ -45,11 +45,13 @@ namespace Orchard.Tests.Commands {
var builder = new CommandHandlerDescriptorBuilder();
var descriptor = builder.Build(typeof(PublicMethodsOnly));
Assert.That(descriptor, Is.Not.Null);
- Assert.That(descriptor.Commands.Count(), Is.EqualTo(3));
+ Assert.That(descriptor.Commands.Count(), Is.EqualTo(1));
Assert.That(descriptor.Commands.Single(d => d.Name == "Method"), Is.Not.Null);
}
+#pragma warning disable 660,661
public class PublicMethodsOnly {
+#pragma warning restore 660,661
public bool Bar { get; set; } // no accessors
public bool Field = true; // no field
@@ -70,14 +72,6 @@ namespace Orchard.Tests.Commands {
return false;
}
- public override int GetHashCode() {
- throw new NotImplementedException();
- }
-
- public override bool Equals(Object obj) {
- throw new NotImplementedException();
- }
-
public void Method() {
}
}
diff --git a/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs b/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs
index 060054c92..51216e8c1 100644
--- a/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs
+++ b/src/Orchard.Web/Core/Localization/Drivers/LocalizationPartDriver.cs
@@ -42,8 +42,9 @@ namespace Orchard.Core.Localization.Drivers {
ContentLocalizations = new ContentLocalizationsViewModel(part) { Localizations = localizations }
};
- // TODO: andrerod convert to new shape API. Location code kept for reference.
- return ContentPartTemplate(model, "Parts/Localization.Translation", TemplatePrefix); //.Location(part.GetLocation("Editor"));
+ return ContentShape("Parts_Localization_ContentTranslations_Edit", () => {
+ return shapeHelper.EditorTemplate(TemplateName: "Parts/Localization.ContentTranslations.Edit", Model: model, Prefix: TemplatePrefix);
+ });
}
protected override DriverResult Editor(LocalizationPart part, IUpdateModel updater, dynamic shapeHelper) {
diff --git a/src/Orchard.Web/Core/Localization/Placement.info b/src/Orchard.Web/Core/Localization/Placement.info
index 94d16bb1b..882598dd0 100644
--- a/src/Orchard.Web/Core/Localization/Placement.info
+++ b/src/Orchard.Web/Core/Localization/Placement.info
@@ -1,6 +1,7 @@