protected void cmdDisableLocalization_Click(object sender, EventArgs e) { try { var portalController = new PortalController(); foreach (Locale locale in LocaleController.Instance.GetLocales(PortalSettings.PortalId).Values) { if (!IsDefaultLanguage(locale.Code)) { LocaleController.Instance.PublishLanguage(PortalId, locale.Code, false); TabController.DeleteTranslatedTabs(PortalId, locale.Code, false); portalController.RemovePortalLocalization(PortalId, locale.Code, false); } } TabController.EnsureNeutralLanguage(PortalId, PortalDefault, false); PortalController.UpdatePortalSetting(PortalId, "ContentLocalizationEnabled", "False"); DataCache.ClearPortalCache(PortalId, true); Response.Redirect(Globals.NavigateURL(), true); } catch (Exception ex) { Exceptions.ProcessModuleLoadException(this, ex); } }