From 5eea4d039f0cd158ee957ca2f297ffa5d3bc645f Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 11 Mar 2016 15:32:05 +0100 Subject: [PATCH] remore ui replacements --- .../umbraco/dialogs/ChangeDocType.aspx | 4 +-- .../umbraco/dialogs/ChangeDocType.aspx.cs | 27 ++++++++++--------- .../umbraco/dialogs/RegexWs.aspx | 2 +- .../umbraco/dialogs/create.aspx | 6 ++--- src/Umbraco.Web.UI/umbraco/dialogs/cruds.aspx | 2 +- .../dialogs/insertMasterpageContent.aspx | 2 +- .../dialogs/insertMasterpagePlaceholder.aspx | 2 +- .../umbraco/dialogs/notifications.aspx | 2 +- .../umbraco/dialogs/republish.aspx | 4 +-- .../umbraco/dialogs/rollBack.aspx | 2 +- src/Umbraco.Web.UI/umbraco/dialogs/sort.aspx | 12 ++++----- .../umbraco/settings/editTemplate.aspx | 8 +++--- .../umbraco/translation/default.aspx | 4 +-- .../umbraco/users/NodePermissions.ascx | 4 +-- .../umbraco/controls/ProgressBar.ascx | 2 +- .../developer/Packages/installedPackage.aspx | 6 ++--- .../umbraco/dialogs/AssignDomain2.aspx | 20 +++++++------- .../umbraco/dialogs/RegexWs.aspx | 2 +- .../dialogs/insertMasterpageContent.aspx | 4 +-- .../dialogs/insertMasterpagePlaceholder.aspx | 2 +- .../umbraco/dialogs/notifications.aspx | 2 +- .../umbraco/dialogs/republish.aspx | 4 +-- .../umbraco/dialogs/rollBack.aspx | 2 +- .../umbraco/settings/scripts/editScript.aspx | 6 ++--- .../umbraco/translation/default.aspx | 4 +-- .../umbraco/users/NodePermissions.ascx | 4 +-- src/umbraco.controls/ProgressBar.cs | 9 +++---- 27 files changed, 73 insertions(+), 75 deletions(-) diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx index 9da1930263..a5ebd8be30 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx @@ -91,13 +91,13 @@ -

<%=umbraco.ui.Text("changeDocType", "docTypeChanged") %>

+

<%=Services.TextService.Localize("changeDocType/docTypeChanged") %>



- <%=umbraco.ui.Text("defaultdialogs", "closeThisWindow") %> + <%=Services.TextService.Localize("defaultdialogs/closeThisWindow") %>

diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx.cs b/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx.cs index 0db3b6c36e..4bb8b92b13 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx.cs +++ b/src/Umbraco.Web.UI/umbraco/dialogs/ChangeDocType.aspx.cs @@ -5,6 +5,7 @@ using System.Text; using System.Web.UI; using System.Web.UI.WebControls; using Umbraco.Core; +using Umbraco.Core.Services; using Umbraco.Core.Models; using Umbraco.Web.UI.Pages; @@ -47,13 +48,13 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs private void LocalizeTexts() { - ChangeDocTypePane.Text = global::umbraco.ui.Text("changeDocType", "selectNewDocType"); - ContentNamePropertyPanel.Text = global::umbraco.ui.Text("changeDocType", "selectedContent"); - CurrentTypePropertyPanel.Text = global::umbraco.ui.Text("changeDocType", "currentType"); - NewTypePropertyPanel.Text = global::umbraco.ui.Text("changeDocType", "newType"); - NewTemplatePropertyPanel.Text = global::umbraco.ui.Text("changeDocType", "newTemplate"); - ChangeDocTypePropertyMappingPane.Text = global::umbraco.ui.Text("changeDocType", "mapProperties"); - ValidateAndSave.Text = global::umbraco.ui.Text("buttons", "save"); + ChangeDocTypePane.Text = Services.TextService.Localize("changeDocType/selectNewDocType"); + ContentNamePropertyPanel.Text = Services.TextService.Localize("changeDocType/selectedContent"); + CurrentTypePropertyPanel.Text = Services.TextService.Localize("changeDocType/currentType"); + NewTypePropertyPanel.Text = Services.TextService.Localize("changeDocType/newType"); + NewTemplatePropertyPanel.Text = Services.TextService.Localize("changeDocType/newTemplate"); + ChangeDocTypePropertyMappingPane.Text = Services.TextService.Localize("changeDocType/mapProperties"); + ValidateAndSave.Text = Services.TextService.Localize("buttons/save"); } private void DisplayContentDetails() @@ -132,7 +133,7 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs NewTemplateList.DataValueField = "Id"; NewTemplateList.DataTextField = "Name"; NewTemplateList.DataBind(); - NewTemplateList.Items.Add(new ListItem("<" + global::umbraco.ui.Text("changeDocType", "none") + ">", "0")); + NewTemplateList.Items.Add(new ListItem("<" + Services.TextService.Localize("changeDocType/none") + ">", "0")); // Set default template if (contentType.DefaultTemplate != null) @@ -173,7 +174,7 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs ddl.DataValueField = "Alias"; ddl.DataTextField = "Name"; ddl.DataBind(); - ddl.Items.Insert(0, new ListItem("<" + global::umbraco.ui.Text("changeDocType", "none") + ">", string.Empty)); + ddl.Items.Insert(0, new ListItem("<" + Services.TextService.Localize("changeDocType/none") + ">", string.Empty)); // Set default selection to be one with matching alias var alias = ((HiddenField)ri.FindControl("Alias")).Value; @@ -237,7 +238,7 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs foreach (var propertyMapping in propertyMappings) { propertiesMappedMessageBuilder.AppendFormat("
  • {0} {1} {2}
  • ", - propertyMapping.FromName, global::umbraco.ui.Text("changeDocType", "to"), propertyMapping.ToName); + propertyMapping.FromName, Services.TextService.Localize("changeDocType/to"), propertyMapping.ToName); _content.SetValue(propertyMapping.ToAlias, propertyMapping.Value); } propertiesMappedMessageBuilder.Append(""); @@ -259,11 +260,11 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs ClientTools.ReloadLocation(); // Display success message - SuccessMessage.Text = global::umbraco.ui.Text("changeDocType", "successMessage").Replace("[new type]", "" + newContentType.Name + ""); + SuccessMessage.Text = Services.TextService.Localize("changeDocType/successMessage").Replace("[new type]", "" + newContentType.Name + ""); PropertiesMappedMessage.Text = propertiesMappedMessageBuilder.ToString(); if (wasPublished) { - ContentPublishedMessage.Text = global::umbraco.ui.Text("changeDocType", "contentRepublished"); + ContentPublishedMessage.Text = Services.TextService.Localize("changeDocType/contentRepublished"); ContentPublishedMessage.Visible = true; } else @@ -296,7 +297,7 @@ namespace Umbraco.Web.UI.Umbraco.Dialogs { if (mappedPropertyAliases.Contains(mappedPropertyAlias)) { - ValidationError.Text = global::umbraco.ui.Text("changeDocType", "validationErrorPropertyWithMoreThanOneMapping"); + ValidationError.Text = Services.TextService.Localize("changeDocType/validationErrorPropertyWithMoreThanOneMapping"); return false; } diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/RegexWs.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/RegexWs.aspx index c2cbe45978..a984a97baa 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/RegexWs.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/RegexWs.aspx @@ -10,7 +10,7 @@

    - <%= umbraco.ui.Text("defaultdialogs", "regexSearchHelp")%> + <%= Services.TextService.Localize("defaultdialogs/regexSearchHelp")%>

    diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/create.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/create.aspx index 686c781386..a60a23a9a3 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/create.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/create.aspx @@ -24,12 +24,12 @@ umbraco.presentation.webservices.CMSNode.GetNodeName('<%=umbracoUserContextID%>', id, updateName); } else - pageName.html("

    <%=umbraco.ui.Text(App)%> <%= umbraco.ui.Text("moveOrCopy","nodeSelected") %>

    "); + pageName.html("

    <%=umbraco.ui.Text(App)%> <%= Services.TextService.Localize("moveOrCopy/nodeSelected") %>

    "); pageNameHolder.attr("class","success"); } function updateName(result) { - pageName.html("

    " + result + " <%= umbraco.ui.Text("moveOrCopy","nodeSelected") %>

    "); + pageName.html("

    " + result + " <%= Services.TextService.Localize("moveOrCopy/nodeSelected") %>

    "); pageNameHolder.attr("class","success"); } @@ -50,7 +50,7 @@ + Text='<%#Services.TextService.Localize("moveOrCopy/noNodeSelected")%>' />
    " onclick="onNodeSelectionConfirmed();" disabled="true" style="width: 100px" /> diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/cruds.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/cruds.aspx index fd7621f677..72b4f1c9f1 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/cruds.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/cruds.aspx @@ -19,7 +19,7 @@
    \ No newline at end of file diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpageContent.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpageContent.aspx index 802e5e8365..988b0e179e 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpageContent.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpageContent.aspx @@ -17,7 +17,7 @@

    - <%= umbraco.ui.Text("defaultdialogs", "templateContentPlaceHolderHelp")%> + <%= Services.TextService.Localize("defaultdialogs/templateContentPlaceHolderHelp")%>

    diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpagePlaceholder.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpagePlaceholder.aspx index 6bd968493f..bfa223b4b0 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpagePlaceholder.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/insertMasterpagePlaceholder.aspx @@ -21,7 +21,7 @@

    - <%= umbraco.ui.Text("defaultdialogs", "templateContentAreaHelp")%> + <%= Services.TextService.Localize("defaultdialogs/templateContentAreaHelp")%>

    diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/notifications.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/notifications.aspx index cd97ec267f..ecb6b2ed62 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/notifications.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/notifications.aspx @@ -12,7 +12,7 @@
    \ No newline at end of file diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/republish.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/republish.aspx index 57fa636f1b..3261f3edd1 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/republish.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/republish.aspx @@ -15,7 +15,7 @@
    -

    <%= umbraco.ui.Text("defaultdialogs", "siterepublishHelp")%>

    +

    <%= Services.TextService.Localize("defaultdialogs/siterepublishHelp")%>

    @@ -33,7 +33,7 @@
    -

    <%= umbraco.ui.Text("defaultdialogs", "siterepublished")%>

    +

    <%= Services.TextService.Localize("defaultdialogs/siterepublished")%>

    diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/rollBack.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/rollBack.aspx index 94af7300e0..fbea7b2ad6 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/rollBack.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/rollBack.aspx @@ -92,7 +92,7 @@
    diff --git a/src/Umbraco.Web.UI/umbraco/dialogs/sort.aspx b/src/Umbraco.Web.UI/umbraco/dialogs/sort.aspx index 9fe8dd8736..5a7addb1f5 100644 --- a/src/Umbraco.Web.UI/umbraco/dialogs/sort.aspx +++ b/src/Umbraco.Web.UI/umbraco/dialogs/sort.aspx @@ -21,7 +21,7 @@