{{currentNode.name}}was moved underneath{{target.name}}
+
+
+
+
+
+
+
+
diff --git a/src/Umbraco.Web.UI/umbraco/config/lang/en.xml b/src/Umbraco.Web.UI/umbraco/config/lang/en.xml
index eb514a62f7..e9bbbca1aa 100644
--- a/src/Umbraco.Web.UI/umbraco/config/lang/en.xml
+++ b/src/Umbraco.Web.UI/umbraco/config/lang/en.xml
@@ -656,6 +656,7 @@
SubmitTypeType to search...
+ underUpUpdateUpgrade
@@ -2201,4 +2202,11 @@ To manage your website, simply open the Umbraco back office and start adding con
characters left
+
+ Trashed content with Id: {0} related to original parent content with Id: {1}
+ Trashed media with Id: {0} related to original parent media item with Id: {1}
+ Cannot automatically restore this item
+ There is no 'restore' relation found for this node. Use the Move menu item to move it manually.
+ The item you want to restore it under ('%0%') is in the recycle bin. Use the Move menu item to move the item manually.
+
diff --git a/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml b/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
index 77dd604bd0..e8e537895a 100644
--- a/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
+++ b/src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
@@ -656,6 +656,7 @@
SubmitTypeType to search...
+ underUpUpdateUpgrade
@@ -2193,4 +2194,11 @@ To manage your website, simply open the Umbraco back office and start adding con
characters left
+
+ Trashed content with Id: {0} related to original parent content with Id: {1}
+ Trashed media with Id: {0} related to original parent media item with Id: {1}
+ Cannot automatically restore this item
+ There is no 'restore' relation found for this node. Use the Move menu item to move it manually.
+ The item you want to restore it under ('%0%') is in the recycle bin. Use the Move menu item to move the item manually.
+
diff --git a/src/Umbraco.Web/Trees/MediaTreeController.cs b/src/Umbraco.Web/Trees/MediaTreeController.cs
index 99117b3b04..932ced9616 100644
--- a/src/Umbraco.Web/Trees/MediaTreeController.cs
+++ b/src/Umbraco.Web/Trees/MediaTreeController.cs
@@ -140,7 +140,13 @@ namespace Umbraco.Web.Trees
//if the media item is in the recycle bin, don't have a default menu, just show the regular menu
if (item.Path.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Contains(RecycleBinId.ToInvariantString()))
{
- menu.DefaultMenuAlias = null;
+ menu.DefaultMenuAlias = null;
+ menu.Items.Insert(2, new MenuItem(ActionRestore.Instance, ui.Text("actions", ActionRestore.Instance.Alias)));
+ }
+ else
+ {
+ //set the default to create
+ menu.DefaultMenuAlias = ActionNew.Instance.Alias;
}
return menu;
diff --git a/src/umbraco.cms/Actions/ActionRestore.cs b/src/umbraco.cms/Actions/ActionRestore.cs
index 9b38918fd4..89fb858d6a 100644
--- a/src/umbraco.cms/Actions/ActionRestore.cs
+++ b/src/umbraco.cms/Actions/ActionRestore.cs
@@ -5,7 +5,7 @@ using umbraco.BasePages;
namespace umbraco.BusinessLogic.Actions
{
///
- /// This action is invoked when the content item is to be restored from the recycle bin
+ /// This action is invoked when the content/media item is to be restored from the recycle bin
///
public class ActionRestore : IAction
{