more send to translate cleanup
This commit is contained in:
@@ -349,7 +349,6 @@
|
||||
<Content Include="Umbraco\Developer\Packages\editPackage.aspx" />
|
||||
<Content Include="Umbraco\Dialogs\protectPage.aspx" />
|
||||
<Content Include="Umbraco\Dialogs\rollBack.aspx" />
|
||||
<Content Include="Umbraco\Dialogs\sendToTranslation.aspx" />
|
||||
<Content Include="Umbraco\Config\Create\UI.xml" />
|
||||
<Content Include="Umbraco\Config\Lang\en.xml">
|
||||
<SubType>Designer</SubType>
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
<%@ Page Language="C#" MasterPageFile="../masterpages/umbracoDialog.Master" AutoEventWireup="true" Codebehind="sendToTranslation.aspx.cs" Inherits="umbraco.presentation.dialogs.sendToTranslation" %>
|
||||
<%@ Register TagPrefix="cc1" Namespace="Umbraco.Web._Legacy.Controls" Assembly="Umbraco.Web" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
|
||||
<style type="text/css">
|
||||
.propertyItemheader{width: 160px !Important;}
|
||||
</style>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ContentPlaceHolderID="body" runat="server">
|
||||
|
||||
<cc1:Feedback ID="feedback" runat="server" />
|
||||
|
||||
<cc1:Pane ID="pane_form" runat="server">
|
||||
<cc1:PropertyPanel ID="pp_translator" runat="server">
|
||||
<asp:DropDownList ID="translator" runat="server"></asp:DropDownList>
|
||||
</cc1:PropertyPanel>
|
||||
<cc1:PropertyPanel ID="pp_language" runat="server">
|
||||
<asp:DropDownList ID="language" runat="server"></asp:DropDownList>
|
||||
<asp:Literal ID="defaultLanguage" Visible="false" runat="server"></asp:Literal>
|
||||
</cc1:PropertyPanel>
|
||||
<cc1:PropertyPanel ID="pp_includeSubs" runat="server">
|
||||
<asp:CheckBox ID="includeSubpages" runat="server" />
|
||||
</cc1:PropertyPanel>
|
||||
<cc1:PropertyPanel ID="pp_comment" runat="server">
|
||||
<asp:TextBox TextMode="multiLine" runat="Server" Rows="4" ID="comment"></asp:TextBox>
|
||||
</cc1:PropertyPanel>
|
||||
</cc1:Pane>
|
||||
|
||||
<asp:Panel ID="pl_buttons" runat="server">
|
||||
<p>
|
||||
<asp:Button ID="doTranslation" runat="Server" OnClick="doTranslation_Click" />
|
||||
<em><%= Services.TextService.Localize("or") %></em> <a href="#" onClick="UmbClientMgr.closeModalWindow()"><%=Services.TextService.Localize("cancel")%></a>
|
||||
</p>
|
||||
</asp:Panel>
|
||||
</asp:Content>
|
||||
@@ -245,7 +245,6 @@ namespace Umbraco.Web.Trees
|
||||
AddActionNode<ActionProtect>(item, menu, true, true);
|
||||
|
||||
AddActionNode<ActionNotify>(item, menu, true);
|
||||
AddActionNode<ActionSendToTranslate>(item, menu, convert: true);
|
||||
|
||||
AddActionNode<RefreshNode, ActionRefresh>(item, menu, true);
|
||||
|
||||
|
||||
@@ -555,7 +555,6 @@
|
||||
<Compile Include="_Legacy\Actions\ActionRestore.cs" />
|
||||
<Compile Include="_Legacy\Actions\ActionRights.cs" />
|
||||
<Compile Include="_Legacy\Actions\ActionRollback.cs" />
|
||||
<Compile Include="_Legacy\Actions\ActionSendToTranslate.cs" />
|
||||
<Compile Include="_Legacy\Actions\ActionSort.cs" />
|
||||
<Compile Include="_Legacy\Actions\ActionToPublish.cs" />
|
||||
<Compile Include="_Legacy\Actions\ActionTranslate.cs" />
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
using System;
|
||||
using Umbraco.Web.UI.Pages;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.CodeAnnotations;
|
||||
|
||||
namespace Umbraco.Web._Legacy.Actions
|
||||
{
|
||||
/// <summary>
|
||||
/// This action is invoked when a send to translate request occurs
|
||||
/// </summary>
|
||||
[ActionMetadata(Constants.Conventions.PermissionCategories.ContentCategory)]
|
||||
public class ActionSendToTranslate : IAction
|
||||
{
|
||||
//create singleton
|
||||
#pragma warning disable 612,618
|
||||
private static readonly ActionSendToTranslate m_instance = new ActionSendToTranslate();
|
||||
#pragma warning restore 612,618
|
||||
|
||||
public static ActionSendToTranslate Instance
|
||||
{
|
||||
get { return m_instance; }
|
||||
}
|
||||
|
||||
#region IAction Members
|
||||
|
||||
public char Letter
|
||||
{
|
||||
get
|
||||
{
|
||||
return '5';
|
||||
}
|
||||
}
|
||||
|
||||
public string JsFunctionName
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format("{0}.actionSendToTranslate()", ClientTools.Scripts.GetAppActions);
|
||||
}
|
||||
}
|
||||
|
||||
public string JsSource
|
||||
{
|
||||
get
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public string Alias
|
||||
{
|
||||
get
|
||||
{
|
||||
return "sendToTranslate";
|
||||
}
|
||||
}
|
||||
|
||||
public string Icon
|
||||
{
|
||||
get
|
||||
{
|
||||
return "chat";
|
||||
}
|
||||
}
|
||||
|
||||
public bool ShowInNotifier
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
public bool CanBePermissionAssigned
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user