diff --git a/WebsitePanel/Sources/Tools/WebsitePanel.Import.CsvBulk/ExchangeImport.cs b/WebsitePanel/Sources/Tools/WebsitePanel.Import.CsvBulk/ExchangeImport.cs index 4671cc7f..35b5a7cb 100644 --- a/WebsitePanel/Sources/Tools/WebsitePanel.Import.CsvBulk/ExchangeImport.cs +++ b/WebsitePanel/Sources/Tools/WebsitePanel.Import.CsvBulk/ExchangeImport.cs @@ -574,7 +574,7 @@ namespace WebsitePanel.Import.CsvBulk //create mailbox //ES.Services.ExchangeServer. string accountName = string.Empty; - int accountId = ES.Services.ExchangeServer.CreateMailbox(orgId, 0, ExchangeAccountType.Mailbox, accountName, displayName, name, domain, password, false, string.Empty, planId, -1, string.Empty); + int accountId = ES.Services.ExchangeServer.CreateMailbox(orgId, 0, ExchangeAccountType.Mailbox, accountName, displayName, name, domain, password, false, string.Empty, planId, -1, string.Empty, false); if (accountId < 0) { string errorMessage = GetErrorMessage(accountId); diff --git a/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/OrganizationImporter.cs b/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/OrganizationImporter.cs index 6ba3437a..e8f7f563 100644 --- a/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/OrganizationImporter.cs +++ b/WebsitePanel/Sources/Tools/WebsitePanel.Import.Enterprise/OrganizationImporter.cs @@ -973,7 +973,7 @@ namespace WebsitePanel.Import.Enterprise mailEnabledPublicFolder, mailboxManagerActions, samAccountName, - CryptoUtils.Encrypt(accountPassword), 0, -1, string.Empty); + CryptoUtils.Encrypt(accountPassword), 0, -1, string.Empty, false); } } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs index 0083dc42..33c7b302 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs @@ -1737,10 +1737,10 @@ namespace WebsitePanel.EnterpriseServer if (maxArchivingStorage != -1) { - if (plan.MailboxSizeMB == -1) + if (plan.ArchiveSizeMB == -1) return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES; - if ((quotaArchivingStorageUsed + plan.MailboxSizeMB) > (maxArchivingStorage)) + if ((quotaArchivingStorageUsed + plan.ArchiveSizeMB) > (maxArchivingStorage)) return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES; } @@ -3068,15 +3068,6 @@ namespace WebsitePanel.EnterpriseServer ExchangeMailboxPlan retentionPolicy = GetExchangeMailboxPlan(itemId, retentionPolicyId); if (retentionPolicy != null) { - // update PlanRetentionPolicy and Tags - List listtags = GetExchangeMailboxPlanRetentionPolicyTags(retentionPolicyId); - foreach(ExchangeMailboxPlanRetentionPolicyTag listtag in listtags) - { - ExchangeRetentionPolicyTag tag = GetExchangeRetentionPolicyTag(itemId, listtag.TagID); - ResultObject resItem = exchange.SetRetentionPolicyTag(tag.WSPUniqueName, (ExchangeRetentionPolicyTagType)tag.TagType, tag.AgeLimitForRetention, (ExchangeRetentionPolicyTagAction)tag.RetentionAction); - result.ErrorCodes.AddRange(resItem.ErrorCodes); - result.IsSuccess = result.IsSuccess && resItem.IsSuccess; - } UpdateExchangeRetentionPolicy(itemId, retentionPolicyId, result); } @@ -3369,18 +3360,6 @@ namespace WebsitePanel.EnterpriseServer private static void UpdateExchangeRetentionPolicy(int itemID, int policyId, ResultObject result) { - ExchangeMailboxPlan policy = GetExchangeMailboxPlan(itemID, policyId); - - List policytaglist = GetExchangeMailboxPlanRetentionPolicyTags(policyId); - - List tagLinks = new List(); - - foreach (ExchangeMailboxPlanRetentionPolicyTag policytag in policytaglist) - { - ExchangeRetentionPolicyTag tag = GetExchangeRetentionPolicyTag(itemID, policytag.TagID); - tagLinks.Add(tag.WSPUniqueName); - } - Organization org = GetOrganization(itemID); if (org == null) return; @@ -3391,11 +3370,29 @@ namespace WebsitePanel.EnterpriseServer { ExchangeServer exchange = GetExchangeServer(exchangeServiceId, org.ServiceId); + ExchangeMailboxPlan policy = GetExchangeMailboxPlan(itemID, policyId); + + List policytaglist = GetExchangeMailboxPlanRetentionPolicyTags(policyId); + + List tagLinks = new List(); + + foreach (ExchangeMailboxPlanRetentionPolicyTag policytag in policytaglist) + { + ExchangeRetentionPolicyTag tag = GetExchangeRetentionPolicyTag(itemID, policytag.TagID); + tagLinks.Add(tag.WSPUniqueName); + + // update PlanRetentionPolicyTags + + ResultObject resItem = exchange.SetRetentionPolicyTag(tag.WSPUniqueName, (ExchangeRetentionPolicyTagType)tag.TagType, tag.AgeLimitForRetention, (ExchangeRetentionPolicyTagAction)tag.RetentionAction); + result.ErrorCodes.AddRange(resItem.ErrorCodes); + result.IsSuccess = result.IsSuccess && resItem.IsSuccess; + } + ResultObject res = exchange.SetRetentionPolicy(policy.WSPUniqueName, tagLinks.ToArray()); result.ErrorCodes.AddRange(res.ErrorCodes); result.IsSuccess = result.IsSuccess && res.IsSuccess; - } + } } public static IntResult AddExchangeMailboxPlanRetentionPolicyTag(int itemID, ExchangeMailboxPlanRetentionPolicyTag planTag) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs index 1082535a..b8189f82 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs @@ -327,6 +327,20 @@ namespace WebsitePanel.Providers.HostedSolution get { return createdGroups; } set { createdGroups = value; } } + + int allocatedArchingStorage; + public int AllocatedArchingStorage + { + get { return allocatedArchingStorage; } + set { allocatedArchingStorage = value; } + } + + int usedArchingStorage; + public int UsedArchingStorage + { + get { return usedArchingStorage; } + set { usedArchingStorage = value; } + } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx index 77c3ab4e..580efc8f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx @@ -5452,4 +5452,85 @@ Archiving Mailboxes per Organization + + Allow Archiving + + + All + + + Calendar + + + Contacts + + + Conversation History + + + Delete and Allow Recovery + + + Deleted Items + + + Drafts + + + Inbox + + + Journal + + + Junk Email + + + Legacy Archive Journals + + + Managed Custom Folder + + + Mark as Past Retention Limit + + + Move to Archive + + + Move to Deleted + + + Move to Folder + + + Non Ipm Root + + + Notes + + + Outbox + + + Permanently Delete + + + Personal + + + Recoverable Items + + + Rss Subscriptions + + + Sent Items + + + Sync Issues + + + Tasks + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeAddMailboxPlan.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeAddMailboxPlan.ascx index c173f224..4a62b784 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeAddMailboxPlan.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeAddMailboxPlan.ascx @@ -288,7 +288,7 @@
- +
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx index 3388837e..045ae8fe 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx @@ -138,7 +138,7 @@ - + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx.cs index 9bc3ca63..474a452e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeCreateMailbox.ascx.cs @@ -45,6 +45,8 @@ namespace WebsitePanel.Portal.ExchangeServer protected void Page_Load(object sender, EventArgs e) { + PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId); + if (!IsPostBack) { password.SetPackagePolicy(PanelSecurity.PackageId, UserSettings.EXCHANGE_POLICY, "MailboxPasswordPolicy"); @@ -89,7 +91,6 @@ namespace WebsitePanel.Portal.ExchangeServer if (plans.Length == 0) btnCreate.Enabled = false; - PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId); if (cntx.Quotas.ContainsKey(Quotas.EXCHANGE2007_ISCONSUMER)) { if (cntx.Quotas[Quotas.EXCHANGE2007_ISCONSUMER].QuotaAllocatedValue != 1) @@ -101,9 +102,16 @@ namespace WebsitePanel.Portal.ExchangeServer } rowRetentionPolicy.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWRETENTIONPOLICY, cntx); - rowArchiving.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWARCHIVING, cntx); } + rowArchiving.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWARCHIVING, cntx); + + int planId = -1; + int.TryParse(mailboxPlanSelector.MailboxPlanId, out planId); + ExchangeMailboxPlan plan = ES.Services.ExchangeServer.GetExchangeMailboxPlan(PanelRequest.ItemID, planId); + if (plan!=null) + rowArchiving.Visible = rowArchiving.Visible && plan.EnableArchiving; + } protected void btnCreate_Click(object sender, EventArgs e) @@ -223,5 +231,9 @@ namespace WebsitePanel.Portal.ExchangeServer } + protected void mailboxPlanSelector_Change(object sender, EventArgs e) + { + } + } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeMailboxGeneralSettings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeMailboxGeneralSettings.ascx.cs index d73cf2aa..5840b482 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeMailboxGeneralSettings.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeMailboxGeneralSettings.ascx.cs @@ -81,7 +81,7 @@ namespace WebsitePanel.Portal.ExchangeServer secLitigationHoldSettings.Visible = (Utils.CheckQouta(Quotas.EXCHANGE2007_ALLOWLITIGATIONHOLD, Cntx)); } - secRetentionPolicy.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWRETENTIONPOLICY, cntx); + secRetentionPolicy.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWRETENTIONPOLICY, Cntx); } @@ -89,7 +89,7 @@ namespace WebsitePanel.Portal.ExchangeServer int.TryParse(mailboxPlanSelector.MailboxPlanId, out planId); ExchangeMailboxPlan plan = ES.Services.ExchangeServer.GetExchangeMailboxPlan(PanelRequest.ItemID, planId); - secArchiving.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWARCHIVING, cntx) && plan.EnableArchiving; + secArchiving.Visible = Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWARCHIVING, Cntx) && plan.EnableArchiving; rowArchiving.Visible = chkEnableArchiving.Checked; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeRetentionPolicyTag.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeRetentionPolicyTag.ascx.cs index cd947f14..8ed5aa28 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeRetentionPolicyTag.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/ExchangeRetentionPolicyTag.ascx.cs @@ -65,13 +65,19 @@ namespace WebsitePanel.Portal.ExchangeServer ddTagType.Items.Clear(); for (int i = 0; i < types.Length; i++) - ddTagType.Items.Add(new ListItem(types[i], i.ToString())); + { + string name = GetSharedLocalizedString("Text."+ types[i]); + ddTagType.Items.Add(new ListItem(name, i.ToString())); + } string[] action = Enum.GetNames(typeof(ExchangeRetentionPolicyTagAction)); ddRetentionAction.Items.Clear(); for (int i = 0; i < action.Length; i++) - ddRetentionAction.Items.Add(new ListItem(action[i], i.ToString())); + { + string name = GetSharedLocalizedString("Text."+action[i]); + ddRetentionAction.Items.Add(new ListItem(name, i.ToString())); + } ClearEditValues(); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx index 59c1b732..4d7fa525 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx @@ -129,6 +129,14 @@ + + + Archiving Storage (Mb): + + + + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs index 85af9ecf..e73b8adc 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.cs @@ -66,6 +66,9 @@ namespace WebsitePanel.Portal.ExchangeServer lnkExchangeLitigationHold.NavigateUrl = EditUrl("ItemID", PanelRequest.ItemID.ToString(), "storage_usage", "SpaceID=" + PanelSecurity.PackageId.ToString()); + lnkExchangeArchiving.NavigateUrl = EditUrl("ItemID", PanelRequest.ItemID.ToString(), "archivingmailboxes", + "SpaceID=" + PanelSecurity.PackageId.ToString()); + mailboxesStats.QuotaUsedValue = exchangeOrgStats.CreatedMailboxes; mailboxesStats.QuotaValue = exchangeOrgStats.AllocatedMailboxes; @@ -120,6 +123,18 @@ namespace WebsitePanel.Portal.ExchangeServer else this.rowExchangeLitigationHold.Style.Add("display", "none"); + if ((!hideItems) && (Utils.CheckQouta(Quotas.EXCHANGE2013_ALLOWARCHIVING, cntx))) + { + exchangeArchivingStatus.QuotaUsedValue = exchangeOrgStats.UsedArchingStorage; + exchangeArchivingStatus.QuotaValue = exchangeOrgStats.AllocatedArchingStorage; + if (exchangeOrgStats.AllocatedArchingStorage != -1) + { + exchangeLitigationHoldStats.QuotaAvailable = exchangeTenantStats.AllocatedArchingStorage - exchangeTenantStats.UsedArchingStorage; + } + } + else + this.rowExchangeArchiving.Style.Add("display", "none"); + } private void BindOrgStats() diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.designer.cs index b374768b..5c686b8e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationHome.ascx.designer.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2014, Outercurve Foundation. -// All rights reserved. -// -// Redistribution and use in source and binary forms, with or without modification, -// are permitted provided that the following conditions are met: -// -// - Redistributions of source code must retain the above copyright notice, this -// list of conditions and the following disclaimer. -// -// - Redistributions in binary form must reproduce the above copyright notice, -// this list of conditions and the following disclaimer in the documentation -// and/or other materials provided with the distribution. -// -// - Neither the name of the Outercurve Foundation nor the names of its -// contributors may be used to endorse or promote products derived from this -// software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR -// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -364,6 +336,33 @@ namespace WebsitePanel.Portal.ExchangeServer { /// protected global::WebsitePanel.Portal.QuotaViewer exchangeLitigationHoldStats; + /// + /// rowExchangeArchiving control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow rowExchangeArchiving; + + /// + /// lnkExchangeArchiving control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HyperLink lnkExchangeArchiving; + + /// + /// exchangeArchivingStatus control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.QuotaViewer exchangeArchivingStatus; + /// /// besStatsPanel control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx index 9bab5526..a9a75838 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeMailboxPlansPolicy.ascx @@ -133,8 +133,7 @@ - + ParentQuotaValue="-1"> @@ -145,8 +144,7 @@ - + ParentQuotaValue="-1"> @@ -157,8 +155,7 @@ - + ParentQuotaValue="-1"> @@ -169,8 +166,7 @@ - + ParentQuotaValue="-1"> @@ -231,8 +227,7 @@ - + ParentQuotaValue="-1"> @@ -266,15 +261,14 @@ - +
- + ParentQuotaValue="-1">
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeRetentionPolicyTag.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeRetentionPolicyTag.ascx.cs index 43a6ac7a..0691fc50 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeRetentionPolicyTag.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SettingsExchangeRetentionPolicyTag.ascx.cs @@ -65,13 +65,19 @@ namespace WebsitePanel.Portal ddTagType.Items.Clear(); for (int i = 0; i < types.Length; i++) - ddTagType.Items.Add(new ListItem(types[i], i.ToString())); + { + string name = GetSharedLocalizedString("Text." +types[i]); + ddTagType.Items.Add(new ListItem(name, i.ToString())); + } string[] action = Enum.GetNames(typeof(ExchangeRetentionPolicyTagAction)); ddRetentionAction.Items.Clear(); for (int i = 0; i < action.Length; i++) - ddRetentionAction.Items.Add(new ListItem(action[i], i.ToString())); + { + string name = GetSharedLocalizedString("Text."+action[i]); + ddRetentionAction.Items.Add(new ListItem(name, i.ToString())); + } txtStatus.Visible = false; }