Namespace and localization work
This commit is contained in:
@@ -173,6 +173,21 @@ namespace Swarmops.Frontend
|
||||
{
|
||||
return CommonV5.JavascriptEscape (input);
|
||||
}
|
||||
|
||||
|
||||
// Common localizations
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
public string Localized_SwitchLabelOn_Upper
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Global.Global_On.ToUpperInvariant()); }
|
||||
}
|
||||
|
||||
public string Localized_SwitchLabelOff_Upper
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Global.Global_Off.ToUpperInvariant()); }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.OrgSettings" Codebehind="OrgSettings.aspx.cs" %>
|
||||
<%@ Import Namespace="Resources" %>
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.Admin.OrgSettings" Codebehind="OrgSettings.aspx.cs" %>
|
||||
<%@ Import Namespace="Swarmops.Frontend" %>
|
||||
<%@ Register tagPrefix="Swarmops5" tagName="FileUpload" src="~/Controls/v5/Base/FileUpload.ascx" %>
|
||||
<%@ Register tagPrefix="Swarmops5" tagName="DropDown" src="~/Controls/v5/Base/DropDown.ascx" %>
|
||||
<%@ Register tagPrefix="Swarmops5" tagName="AjaxTextBox" src="~/Controls/v5/Base/AjaxTextBox.ascx" %>
|
||||
@@ -11,8 +11,8 @@
|
||||
$('#divTabs').tabs();
|
||||
|
||||
$('.EditCheck').switchbutton({
|
||||
checkedLabel: '<%= Global.Global_On.ToUpperInvariant() %>',
|
||||
uncheckedLabel: '<%= Global.Global_Off.ToUpperInvariant() %>',
|
||||
checkedLabel: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOn_Upper %>'),
|
||||
uncheckedLabel: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOff_Upper %>'),
|
||||
}).change(function() {
|
||||
|
||||
if (suppressSwitchResponse) {
|
||||
|
||||
@@ -12,7 +12,7 @@ using Swarmops.Logic.Structure;
|
||||
using Swarmops.Logic.Support;
|
||||
using Swarmops.Logic.Swarm;
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Admin
|
||||
namespace Swarmops.Frontend.Pages.Admin
|
||||
{
|
||||
public partial class OrgSettings : PageV5Base
|
||||
{
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Admin {
|
||||
namespace Swarmops.Frontend.Pages.Admin {
|
||||
|
||||
|
||||
public partial class OrgSettings {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.SystemSettingsPage" Codebehind="SystemSettings.aspx.cs" %>
|
||||
<%@ Import Namespace="Resources" %>
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.Admin.SystemSettingsPage" Codebehind="SystemSettings.aspx.cs" %>
|
||||
<%@ Register tagPrefix="Swarmops5" tagName="AjaxTextBox" src="~/Controls/v5/Base/AjaxTextBox.ascx" %>
|
||||
<%@ Register tagPrefix="Swarmops5" tagName="TreePositions" src="~/Controls/v5/Swarm/TreePositions.ascx" %>
|
||||
<%@ Register tagPrefix="Swarmops5" tagName="DropDown" src="~/Controls/v5/Base/DropDown.ascx" %>
|
||||
@@ -13,8 +12,8 @@
|
||||
setTimeout(function() {
|
||||
|
||||
$('.EditCheck').switchbutton({
|
||||
checkedLabel: '<%= Global.Global_On.ToUpperInvariant() %>',
|
||||
uncheckedLabel: '<%= Global.Global_Off.ToUpperInvariant() %>',
|
||||
checkedLabel: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOn_Upper %>'),
|
||||
uncheckedLabel: SwarmopsJS.unescape('<%= this.Localized_SwitchLabelOff_Upper %>'),
|
||||
}).change(function() {
|
||||
|
||||
if (suppressSwitchResponse) {
|
||||
@@ -80,7 +79,7 @@
|
||||
|
||||
// Also, nag an admin who tries to create an unsecure website
|
||||
if (newText.length >= 7 && newText.substring(0,7) == 'http://') {
|
||||
alertify.log("<%=Resources.Pages.Admin.SystemSettings_Warning_Insecure %>");
|
||||
alertify.log(SwarmopsJS.unescape('<%= this.Localized_Warning_Insecure %>'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ using Swarmops.Logic.Communications;
|
||||
using Swarmops.Logic.Structure;
|
||||
using Swarmops.Logic.Swarm;
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Admin
|
||||
namespace Swarmops.Frontend.Pages.Admin
|
||||
{
|
||||
public partial class SystemSettingsPage : PageV5Base // different classname to not collide with Logic.Structure.SystemSettings
|
||||
{
|
||||
@@ -348,6 +348,13 @@ namespace Swarmops.Frontend.Pages.v5.Admin
|
||||
{
|
||||
public bool RequireSsl;
|
||||
}
|
||||
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
public string Localized_Warning_Insecure
|
||||
{
|
||||
get { return JavascriptEscape (Resources.Pages.Admin.SystemSettings_Warning_Insecure); }
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Admin {
|
||||
namespace Swarmops.Frontend.Pages.Admin {
|
||||
|
||||
|
||||
public partial class SystemSettingsPage {
|
||||
|
||||
Reference in New Issue
Block a user