From 7216b1c0db57a68f421ece4bac61883b3c9af8ab Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 1 Jan 2012 15:01:17 +0000 Subject: [PATCH] Some localization --- Site5/App_GlobalResources/Pages.Security.resx | 132 ++++++++++++++++++ Site5/Pages/v5/Security/AccessDenied.aspx | 5 +- Site5/Pages/v5/Security/AccessDenied.aspx.cs | 7 +- 3 files changed, 141 insertions(+), 3 deletions(-) create mode 100644 Site5/App_GlobalResources/Pages.Security.resx diff --git a/Site5/App_GlobalResources/Pages.Security.resx b/Site5/App_GlobalResources/Pages.Security.resx new file mode 100644 index 00000000..9ed44a51 --- /dev/null +++ b/Site5/App_GlobalResources/Pages.Security.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Access to this page was denied + + + You tried to access a page you don't have permissions for. See the main pane for some reaons this may have happened. + + + Access Denied + + + <p>The Activizr security framework has denied you access to the page you were trying to go to. This usually means that its functions were above the access levels granted to you for the currently selected organization ({0}). This has not been logged nor reported anywhere.</p><p>There are several reasons why this may have happened:</p> + + \ No newline at end of file diff --git a/Site5/Pages/v5/Security/AccessDenied.aspx b/Site5/Pages/v5/Security/AccessDenied.aspx index 26002ef2..0c638ffa 100644 --- a/Site5/Pages/v5/Security/AccessDenied.aspx +++ b/Site5/Pages/v5/Security/AccessDenied.aspx @@ -4,10 +4,11 @@ -

Access Denied [LOC]

+

-
Todo: Assist in changing organizations. +
Todo: Assist in changing organizations.

+ Todo: List actual security clearances.
diff --git a/Site5/Pages/v5/Security/AccessDenied.aspx.cs b/Site5/Pages/v5/Security/AccessDenied.aspx.cs index b454f346..806d3a9f 100644 --- a/Site5/Pages/v5/Security/AccessDenied.aspx.cs +++ b/Site5/Pages/v5/Security/AccessDenied.aspx.cs @@ -8,7 +8,12 @@ public partial class Security_AccessDenied : PageV5Base { protected void Page_Load(object sender, EventArgs e) { - this.PageTitle = "Access Denied [LOC]"; + this.PageTitle = Resources.Pages.Security.AccessDenied_PageTitle; this.PageIcon = "iconshock-disconnect"; + + this.LabelAccessDeniedHeader.Text = Resources.Pages.Security.AccessDenied_Header; + this.LabelSidebarInfo.Text = Resources.Pages.Global.Sidebar_Information; + this.LabelAccessDeniedInfo.Text = Resources.Pages.Security.AccessDenied_Info; + this.LiteralAccessDeniedRant.Text = String.Format(Resources.Pages.Security.AccessDenied_Rant, _currentOrganization.Name); } } \ No newline at end of file