remore ui replacements
This commit is contained in:
@@ -34,5 +34,5 @@
|
||||
|
||||
<cc1:Pane runat="server" CssClass="btn-toolbar umb-btn-toolbar">
|
||||
<a href="#" class="btn btn-link" onclick="UmbClientMgr.closeModalWindow()"><%=Services.TextService.Localize("cancel")%></a>
|
||||
<asp:Button ID="SubmitButton" CssClass="btn btn-primary" runat="server" OnClick="SubmitButton_Click" Text='<%#ui.Text("create") %>'></asp:Button>
|
||||
<asp:Button ID="SubmitButton" CssClass="btn btn-primary" runat="server" OnClick="SubmitButton_Click" Text='<%#Services.TextService.Localize("create") %>'></asp:Button>
|
||||
</cc1:Pane>
|
||||
|
||||
@@ -30,6 +30,6 @@
|
||||
<!-- added to support missing postback on enter in IE -->
|
||||
<asp:TextBox runat="server" Style="visibility: hidden; display: none;" ID="Textbox1" />
|
||||
<div style="padding-top: 15px;">
|
||||
<asp:Button ID="sbmt" runat="server" Style="margin-top: 14px" Width="90" OnClick="sbmt_Click" Text='<%# ui.Text("create") %>'></asp:Button>
|
||||
<em><%= ui.Text("or") %></em> <a href="#" style="color: blue" onclick="UmbClientMgr.closeModalWindow()"><%=ui.Text("cancel")%></a>
|
||||
<asp:Button ID="sbmt" runat="server" Style="margin-top: 14px" Width="90" OnClick="sbmt_Click" Text='<%# Services.TextService.Localize("create") %>'></asp:Button>
|
||||
<em><%= Services.TextService.Localize("or") %></em> <a href="#" style="color: blue" onclick="UmbClientMgr.closeModalWindow()"><%=Services.TextService.Localize("cancel")%></a>
|
||||
</div>
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
<asp:Button ID="ValidateAndSave" runat="server" OnClick="ValidateAndSave_Click" />
|
||||
<em> <%= Services.TextService.Localize("or") %> </em>
|
||||
</asp:PlaceHolder>
|
||||
<a href="#" style="color: blue" onclick="UmbClientMgr.closeModalWindow()"><%=umbraco.ui.Text("general", "cancel", Security.CurrentUser)%></a>
|
||||
<a href="#" style="color: blue" onclick="UmbClientMgr.closeModalWindow()"><%=Services.TextService.Localize("general/cancel")%></a>
|
||||
</p>
|
||||
</asp:PlaceHolder>
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace Umbraco.Web.UI.Umbraco.Settings.Views
|
||||
//configure screen for editing a template
|
||||
if (_template != null)
|
||||
{
|
||||
MasterTemplate.Items.Add(new ListItem(ui.Text("none"), "0"));
|
||||
MasterTemplate.Items.Add(new ListItem(Services.TextService.Localize("none"), "0"));
|
||||
var selectedTemplate = string.Empty;
|
||||
|
||||
foreach (var t in Template.GetAllAsList())
|
||||
@@ -166,15 +166,15 @@ namespace Umbraco.Web.UI.Umbraco.Settings.Views
|
||||
}
|
||||
|
||||
Panel1.hasMenu = true;
|
||||
var editor = Panel1.NewTabPage(ui.Text("template"));
|
||||
var editor = Panel1.NewTabPage(Services.TextService.Localize("template"));
|
||||
editor.Controls.Add(Pane8);
|
||||
|
||||
var props = Panel1.NewTabPage(ui.Text("properties"));
|
||||
var props = Panel1.NewTabPage(Services.TextService.Localize("properties"));
|
||||
props.Controls.Add(Pane7);
|
||||
|
||||
|
||||
SaveButton = Panel1.Menu.NewButton();
|
||||
SaveButton.Text = ui.Text("save");
|
||||
SaveButton.Text = Services.TextService.Localize("save");
|
||||
SaveButton.ButtonType = MenuButtonType.Primary;
|
||||
SaveButton.ID = "save";
|
||||
SaveButton.CssClass = "client-side";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using umbraco.businesslogic;
|
||||
@@ -23,7 +24,7 @@ namespace umbraco
|
||||
// if we're using 3rd party membership providers we should use the Role terminology
|
||||
if (!Member.IsUsingUmbracoRoles())
|
||||
{
|
||||
rootNode.Text = ui.Text("memberRoles");
|
||||
rootNode.Text = Services.TextService.Localize("memberRoles");
|
||||
}
|
||||
rootNode.NodeType = "initmemberGroup";
|
||||
rootNode.NodeID = "init";
|
||||
|
||||
@@ -1,15 +1,7 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using umbraco.cms.businesslogic.web;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Services;
|
||||
using Umbraco.Web;
|
||||
using Umbraco.Web.UI.Pages;
|
||||
|
||||
@@ -28,16 +20,16 @@ namespace umbraco.presentation.actions
|
||||
if (Security.ValidateUserNodeTreePermissions(UmbracoUser, d.Path, "D") == false)
|
||||
throw new ArgumentException("The current user doesn't have permissions to delete this document. Please contact the system administrator.");
|
||||
|
||||
pane_delete.Text = ui.Text("delete") + " '" + d.Text + "'";
|
||||
Panel2.Text = ui.Text("delete");
|
||||
warning.Text = ui.Text("confirmdelete") + " '" + d.Text + "'";
|
||||
deleteButton.Text = ui.Text("delete");
|
||||
pane_delete.Text = Services.TextService.Localize("delete") + " '" + d.Text + "'";
|
||||
Panel2.Text = Services.TextService.Localize("delete");
|
||||
warning.Text = Services.TextService.Localize("confirmdelete") + " '" + d.Text + "'";
|
||||
deleteButton.Text = Services.TextService.Localize("delete");
|
||||
}
|
||||
|
||||
protected void deleteButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
deleteMessage.Text = ui.Text("deleted");
|
||||
deleted.Text = "'" + d.Text + "' " + ui.Text("deleted");
|
||||
deleteMessage.Text = Services.TextService.Localize("deleted");
|
||||
deleted.Text = "'" + d.Text + "' " + Services.TextService.Localize("deleted");
|
||||
deleteMessage.Visible = true;
|
||||
confirm.Visible = false;
|
||||
|
||||
|
||||
@@ -31,23 +31,23 @@
|
||||
// if (!base.ValidateUserNodeTreePermissions(d.Path, "U"))
|
||||
// throw new ArgumentException("The current user doesn't have permissions to publish this document. Please contact the system administrator.");
|
||||
|
||||
// pane_publish.Text = ui.Text("publish") + " '" + d.Text + "'";
|
||||
// Panel2.Text = ui.Text("publish");
|
||||
// warning.Text = ui.Text("publish") + " '" + d.Text + "'. " + ui.Text("areyousure");
|
||||
// deleteButton.Text = ui.Text("publish");
|
||||
// pane_publish.Text = Services.TextService.Localize("publish") + " '" + d.Text + "'";
|
||||
// Panel2.Text = Services.TextService.Localize("publish");
|
||||
// warning.Text = Services.TextService.Localize("publish") + " '" + d.Text + "'. " + Services.TextService.Localize("areyousure");
|
||||
// deleteButton.Text = Services.TextService.Localize("publish");
|
||||
// }
|
||||
|
||||
// protected void deleteButton_Click(object sender, EventArgs e)
|
||||
// {
|
||||
// deleteMessage.Visible = true;
|
||||
// deleteMessage.Text = ui.Text("editContentPublishedHeader");
|
||||
// deleteMessage.Text = Services.TextService.Localize("editContentPublishedHeader");
|
||||
|
||||
// confirm.Visible = false;
|
||||
|
||||
// var result = d.SaveAndPublishWithResult(UmbracoUser);
|
||||
// if (result.Success)
|
||||
// {
|
||||
// deleted.Text = ui.Text("editContentPublishedHeader") + " ('" + d.Text + "') " + ui.Text("editContentPublishedText") + "</p><p><a href=\"" + library.NiceUrl(d.Id) + "\"> " + ui.Text("view") + " " + d.Text + "</a>";
|
||||
// deleted.Text = Services.TextService.Localize("editContentPublishedHeader") + " ('" + d.Text + "') " + Services.TextService.Localize("editContentPublishedText") + "</p><p><a href=\"" + library.NiceUrl(d.Id) + "\"> " + Services.TextService.Localize("view") + " " + d.Text + "</a>";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
@@ -278,7 +278,7 @@
|
||||
// // Name validation
|
||||
// NameTxtValidator.ControlToValidate = NameTxt.ID;
|
||||
// _nameTxtCustomValidator.ControlToValidate = NameTxt.ID;
|
||||
// string[] errorVars = { ui.Text("name") };
|
||||
// string[] errorVars = { Services.TextService.Localize("name") };
|
||||
// NameTxtValidator.ErrorMessage = " " + ui.Text("errorHandling", "errorMandatoryWithoutTab", errorVars) + "<br/>";
|
||||
// NameTxtValidator.EnableClientScript = false;
|
||||
// NameTxtValidator.Display = ValidatorDisplay.Dynamic;
|
||||
|
||||
@@ -430,7 +430,7 @@
|
||||
// else
|
||||
// {
|
||||
|
||||
// ctctrl.prnt.ClientTools.ShowSpeechBubble(BasePages.BasePage.speechBubbleIcon.error, ui.Text("error"), Services.TextService.Localize("errors/contentTypeAliasAndNameNotNull"));
|
||||
// ctctrl.prnt.ClientTools.ShowSpeechBubble(BasePages.BasePage.speechBubbleIcon.error, Services.TextService.Localize("error"), Services.TextService.Localize("errors/contentTypeAliasAndNameNotNull"));
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Globalization;
|
||||
using System.Web;
|
||||
@@ -17,12 +18,12 @@ namespace umbraco.cms.presentation.create.controls
|
||||
{
|
||||
// get all existing languages
|
||||
|
||||
pp1.Text = ui.Text("choose") + " " + ui.Text("language");
|
||||
sbmt.Text = ui.Text("create");
|
||||
pp1.Text = Services.TextService.Localize("choose") + " " + Services.TextService.Localize("language");
|
||||
sbmt.Text = Services.TextService.Localize("create");
|
||||
|
||||
var sortedCultures = new SortedList();
|
||||
Cultures.Items.Clear();
|
||||
Cultures.Items.Add(new ListItem(ui.Text("choose") + "...", ""));
|
||||
Cultures.Items.Add(new ListItem(Services.TextService.Localize("choose") + "...", ""));
|
||||
foreach (var cultureInfo in CultureInfo.GetCultures(CultureTypes.AllCultures))
|
||||
sortedCultures.Add(cultureInfo.DisplayName + "|||" + Guid.NewGuid(), cultureInfo.Name);
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
@@ -15,7 +16,7 @@ namespace umbraco.presentation.umbraco.create
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
sbmt.Text = ui.Text("create");
|
||||
sbmt.Text = Services.TextService.Localize("create");
|
||||
|
||||
// Enable new item in folders to place items in that folder.
|
||||
if (Request["nodeType"] == "scriptsFolder")
|
||||
@@ -57,8 +58,8 @@ namespace umbraco.presentation.umbraco.create
|
||||
|
||||
string[] fileTypes = UmbracoConfig.For.UmbracoSettings().Content.ScriptFileTypes.ToArray();
|
||||
|
||||
scriptType.Items.Add(new ListItem(ui.Text("folder"), ""));
|
||||
scriptType.Items.FindByText(ui.Text("folder")).Selected = true;
|
||||
scriptType.Items.Add(new ListItem(Services.TextService.Localize("folder"), ""));
|
||||
scriptType.Items.FindByText(Services.TextService.Localize("folder")).Selected = true;
|
||||
|
||||
foreach (string str in fileTypes)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Web;
|
||||
using Umbraco.Core.Services;
|
||||
using System.Web;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Web.UI;
|
||||
using Umbraco.Web;
|
||||
@@ -18,8 +19,8 @@ namespace umbraco.cms.presentation.create.controls
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
sbmt.Text = ui.Text("create");
|
||||
rename.Attributes["placeholder"] = ui.Text("name");
|
||||
sbmt.Text = Services.TextService.Localize("create");
|
||||
rename.Attributes["placeholder"] = Services.TextService.Localize("name");
|
||||
|
||||
// Put user code to initialize the page here
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Web;
|
||||
using Umbraco.Core.Services;
|
||||
using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.IO;
|
||||
using Umbraco.Core;
|
||||
@@ -20,7 +21,7 @@ namespace umbraco.presentation.create
|
||||
|
||||
protected void Page_Load(object sender, System.EventArgs e)
|
||||
{
|
||||
sbmt.Text = ui.Text("create");
|
||||
sbmt.Text = Services.TextService.Localize("create");
|
||||
foreach (string fileName in Directory.GetFiles(IOHelper.MapPath(SystemDirectories.Umbraco + GetXsltTemplatePath()), "*.xslt"))
|
||||
{
|
||||
FileInfo fi = new FileInfo(fileName);
|
||||
|
||||
@@ -281,7 +281,7 @@ namespace umbraco.cms.presentation.developer
|
||||
|
||||
var save = TabView1.Menu.NewButton();
|
||||
save.ButtonType = MenuButtonType.Primary;
|
||||
save.Text = ui.Text("save");
|
||||
save.Text = Services.TextService.Localize("save");
|
||||
save.ID = "save";
|
||||
save.Click += Save_Click;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web.UI;
|
||||
@@ -401,13 +402,13 @@ namespace umbraco.presentation.developer.packages
|
||||
packageActions.Controls.Add(Pane4);
|
||||
|
||||
var pubs = TabView1.Menu.NewButton();
|
||||
pubs.Text = ui.Text("publish");
|
||||
pubs.Text = Services.TextService.Localize("publish");
|
||||
pubs.CommandName = "publish";
|
||||
pubs.Command += new CommandEventHandler(saveOrPublish);
|
||||
pubs.ID = "saveAndPublish";
|
||||
|
||||
var saves = TabView1.Menu.NewButton();
|
||||
saves.Text = ui.Text("save");
|
||||
saves.Text = Services.TextService.Localize("save");
|
||||
saves.CommandName = "save";
|
||||
saves.Command += new CommandEventHandler(saveOrPublish);
|
||||
saves.ButtonType = uicontrols.MenuButtonType.Primary;
|
||||
|
||||
@@ -284,7 +284,7 @@ namespace umbraco.presentation.developer.packages
|
||||
bt_viewInstalledPackage.OnClientClick = "document.location = '" + packageViewUrl + "'; return false;";
|
||||
|
||||
if (!string.IsNullOrEmpty(url))
|
||||
lit_authorUrl.Text = " <em>" + ui.Text("or") + "</em> <a href='" + url + "' target=\"_blank\">" + ui.Text("viewPackageWebsite") + "</a>";
|
||||
lit_authorUrl.Text = " <em>" + Services.TextService.Localize("or") + "</em> <a href='" + url + "' target=\"_blank\">" + Services.TextService.Localize("viewPackageWebsite") + "</a>";
|
||||
|
||||
|
||||
pane_success.Visible = true;
|
||||
|
||||
+1
-1
@@ -196,7 +196,7 @@
|
||||
// saveMenuImageButton.ToolTip = "save relation type";
|
||||
// saveMenuImageButton.Click +=saveMenuImageButton_Click;
|
||||
// saveMenuImageButton.CausesValidation = true;
|
||||
// saveMenuImageButton.Text = ui.Text("save");
|
||||
// saveMenuImageButton.Text = Services.TextService.Localize("save");
|
||||
// saveMenuImageButton.ValidationGroup = "RelationType";
|
||||
|
||||
// var relationsTabPage = this.tabControl.NewTabPage("Relations");
|
||||
|
||||
@@ -1,16 +1,12 @@
|
||||
using System;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Xml;
|
||||
using System.Xml.Xsl;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.IO;
|
||||
using umbraco.uicontrols;
|
||||
using System.Net;
|
||||
using umbraco.cms.presentation.Trees;
|
||||
using Umbraco.Web.UI.Pages;
|
||||
|
||||
@@ -48,7 +44,7 @@ namespace umbraco.cms.presentation.developer
|
||||
|
||||
SaveButton = UmbracoPanel1.Menu.NewButton();
|
||||
SaveButton.ToolTip = "Save Xslt File";
|
||||
SaveButton.Text = ui.Text("save");
|
||||
SaveButton.Text = Services.TextService.Localize("save");
|
||||
SaveButton.ButtonType = MenuButtonType.Primary;
|
||||
SaveButton.ID = "save";
|
||||
SaveButton.CssClass = "client-side";
|
||||
|
||||
@@ -97,10 +97,10 @@ namespace umbraco.dialogs
|
||||
{
|
||||
var name = d.Name.StartsWith("*") ? "*" : d.Name;
|
||||
allDomains.Text += "<tr><td>" + name + "</td><td>(" + d.Language.CultureAlias + ")</td><td><a href=\"?id=" + _currentId + "&editDomain=" +
|
||||
d.Id.ToString(CultureInfo.InvariantCulture) + "\">" + ui.Text("edit") + "</a></td><td><a href=\"?id=" + _currentId +
|
||||
d.Id.ToString(CultureInfo.InvariantCulture) + "\">" + Services.TextService.Localize("edit") + "</a></td><td><a href=\"?id=" + _currentId +
|
||||
"&delDomain=" + d.Id.ToString(CultureInfo.InvariantCulture) + "\" onClick=\"return confirm('" +
|
||||
Services.TextService.Localize("defaultdialogs/confirmdelete") +
|
||||
"');\" style=\"color: red\">" + ui.Text("delete") + "</a></td></tr>";
|
||||
"');\" style=\"color: red\">" + Services.TextService.Localize("delete") + "</a></td></tr>";
|
||||
}
|
||||
|
||||
allDomains.Text += "</table>";
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.SessionState;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.HtmlControls;
|
||||
using System.Collections.Generic;
|
||||
@@ -34,7 +28,7 @@ namespace umbraco.dialogs
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Button1.Text = ui.Text("update");
|
||||
Button1.Text = Services.TextService.Localize("update");
|
||||
pane_form.Text = "Set permissions for the page " + _node.Text;
|
||||
}
|
||||
|
||||
@@ -161,9 +155,9 @@ namespace umbraco.dialogs
|
||||
}
|
||||
|
||||
// Update feedback message
|
||||
//FeedBackMessage.Text = "<div class=\"feedbackCreate\">" + ui.Text("rights") + " " + ui.Text("ok") + "</div>";
|
||||
//FeedBackMessage.Text = "<div class=\"feedbackCreate\">" + Services.TextService.Localize("rights") + " " + Services.TextService.Localize("ok") + "</div>";
|
||||
feedback1.type = uicontrols.Feedback.feedbacktype.success;
|
||||
feedback1.Text = ui.Text("rights") + " " + ui.Text("ok");
|
||||
feedback1.Text = Services.TextService.Localize("rights") + " " + Services.TextService.Localize("ok");
|
||||
PlaceHolder1.Visible = false;
|
||||
panel_buttons.Visible = false;
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Web.UI.WebControls;
|
||||
@@ -39,8 +40,8 @@ namespace umbraco.presentation.umbraco.dialogs
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
submit.Text = ui.Text("import");
|
||||
import.Text = ui.Text("import");
|
||||
submit.Text = Services.TextService.Localize("import");
|
||||
import.Text = Services.TextService.Localize("import");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ using System.Security;
|
||||
using Umbraco.Core.IO;
|
||||
using umbraco.DataLayer;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Services;
|
||||
using Umbraco.Web;
|
||||
|
||||
namespace umbraco.dialogs
|
||||
@@ -29,8 +30,8 @@ namespace umbraco.dialogs
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
pane_edit.Text = ui.Text("general", "edit",Security.CurrentUser) + " " + ui.Text("general", "macro",Security.CurrentUser);
|
||||
pane_insert.Text = ui.Text("general", "insert",Security.CurrentUser) + " " + ui.Text("general", "macro",Security.CurrentUser);
|
||||
pane_edit.Text = Services.TextService.Localize("general/edit") + " " + Services.TextService.Localize("general/macro");
|
||||
pane_insert.Text = Services.TextService.Localize("general/insert") + " " + Services.TextService.Localize("general/macro");
|
||||
|
||||
if (Request["macroID"] != null || Request["macroAlias"] != null)
|
||||
{
|
||||
|
||||
+3
-8
@@ -1,11 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Text.RegularExpressions;
|
||||
using umbraco.BusinessLogic;
|
||||
using umbraco.cms.businesslogic;
|
||||
using Umbraco.Core;
|
||||
|
||||
namespace umbraco.presentation.umbraco.dialogs
|
||||
@@ -20,7 +15,7 @@ namespace umbraco.presentation.umbraco.dialogs
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
//labels
|
||||
pp_placeholder.Text = ui.Text("placeHolderID");
|
||||
pp_placeholder.Text = Services.TextService.Localize("placeHolderID");
|
||||
|
||||
//Add a default Item
|
||||
var li = new ListItem("Choose ID...");
|
||||
|
||||
+3
-6
@@ -1,8 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using Umbraco.Core;
|
||||
|
||||
namespace umbraco.presentation.umbraco.dialogs {
|
||||
@@ -14,7 +11,7 @@ namespace umbraco.presentation.umbraco.dialogs {
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e) {
|
||||
//labels
|
||||
pp_placeholder.Text = ui.Text("placeHolderID");
|
||||
pp_placeholder.Text = Services.TextService.Localize("placeHolderID");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace umbraco.dialogs
|
||||
|
||||
//Load master types...
|
||||
masterType.Attributes.Add("style", "width: 350px;");
|
||||
masterType.Items.Add(new ListItem(ui.Text("none") + "...", "0"));
|
||||
masterType.Items.Add(new ListItem(Services.TextService.Localize("none") + "...", "0"));
|
||||
|
||||
foreach (var docT in Services.ContentTypeService.GetAllContentTypes().OrderBy(x => x.Name))
|
||||
{
|
||||
@@ -293,7 +293,7 @@ namespace umbraco.dialogs
|
||||
Services.MediaService.Move(media, copyToId, UmbracoUser.Id);
|
||||
}
|
||||
|
||||
feedback.Text = ui.Text("moveOrCopy", "moveDone", nodes, UmbracoUser) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>";
|
||||
feedback.Text = ui.Text("moveOrCopy", "moveDone", nodes, UmbracoUser) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + Services.TextService.Localize("closeThisWindow") + "</a>";
|
||||
feedback.type = uicontrols.Feedback.feedbacktype.success;
|
||||
|
||||
// refresh tree
|
||||
@@ -306,7 +306,7 @@ namespace umbraco.dialogs
|
||||
var newContent = (IContent)currContent;
|
||||
Services.ContentService.Copy(newContent, Request.GetItemAs<int>("copyTo"), RelateDocuments.Checked, UmbracoUser.Id);
|
||||
|
||||
feedback.Text = ui.Text("moveOrCopy", "copyDone", nodes, UmbracoUser) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>";
|
||||
feedback.Text = ui.Text("moveOrCopy", "copyDone", nodes, UmbracoUser) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + Services.TextService.Localize("closeThisWindow") + "</a>";
|
||||
feedback.type = uicontrols.Feedback.feedbacktype.success;
|
||||
|
||||
// refresh tree
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Web.UI;
|
||||
@@ -28,7 +29,7 @@ namespace umbraco.dialogs
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
Button1.Text = ui.Text("update");
|
||||
Button1.Text = Services.TextService.Localize("update");
|
||||
pane_form.Text = ui.Text("notifications", "editNotifications", node.Text, Security.CurrentUser);
|
||||
}
|
||||
|
||||
@@ -97,7 +98,7 @@ namespace umbraco.dialogs
|
||||
UmbracoContext.UmbracoUser.initNotifications();
|
||||
|
||||
var feedback = new umbraco.uicontrols.Feedback();
|
||||
feedback.Text = ui.Text("notifications") + " " + ui.Text("ok") + "</p><p><a href='#' class='btn btn-primary' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>";
|
||||
feedback.Text = Services.TextService.Localize("notifications") + " " + Services.TextService.Localize("ok") + "</p><p><a href='#' class='btn btn-primary' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + Services.TextService.Localize("closeThisWindow") + "</a>";
|
||||
feedback.type = umbraco.uicontrols.Feedback.feedbacktype.success;
|
||||
|
||||
pane_form.Controls.Clear();
|
||||
|
||||
@@ -215,10 +215,10 @@ namespace umbraco.presentation.umbraco.dialogs
|
||||
ph_errorpage.Controls.Add(errorPagePicker);
|
||||
ph_loginpage.Controls.Add(loginPagePicker);
|
||||
|
||||
pp_login.Text = ui.Text("login");
|
||||
pp_pass.Text = ui.Text("password");
|
||||
pp_loginPage.Text = ui.Text("paLoginPage");
|
||||
pp_errorPage.Text = ui.Text("paErrorPage");
|
||||
pp_login.Text = Services.TextService.Localize("login");
|
||||
pp_pass.Text = Services.TextService.Localize("password");
|
||||
pp_loginPage.Text = Services.TextService.Localize("paLoginPage");
|
||||
pp_errorPage.Text = Services.TextService.Localize("paErrorPage");
|
||||
|
||||
pane_chooseMode.Text = Services.TextService.Localize("publicAccess/paHowWould");
|
||||
pane_pages.Text = Services.TextService.Localize("publicAccess/paSelectPages");
|
||||
@@ -231,7 +231,7 @@ namespace umbraco.presentation.umbraco.dialogs
|
||||
&& GetProtectionType(documentId) != ProtectionType.NotProtected)
|
||||
{
|
||||
bt_buttonRemoveProtection.Visible = true;
|
||||
bt_buttonRemoveProtection.Attributes.Add("onClick", "return confirm('" + ui.Text("areyousure") + "')");
|
||||
bt_buttonRemoveProtection.Attributes.Add("onClick", "return confirm('" + Services.TextService.Localize("areyousure") + "')");
|
||||
|
||||
// Get login and error pages
|
||||
int errorPage = GetErrorPage(documentObject.Path);
|
||||
@@ -306,8 +306,8 @@ namespace umbraco.presentation.umbraco.dialogs
|
||||
groupsSelector.Controls.Add(_memberGroups);
|
||||
|
||||
|
||||
bt_protect.Text = ui.Text("update");
|
||||
bt_buttonRemoveProtection.Text = ui.Text("paRemoveProtection");
|
||||
bt_protect.Text = Services.TextService.Localize("update");
|
||||
bt_buttonRemoveProtection.Text = Services.TextService.Localize("paRemoveProtection");
|
||||
|
||||
// Put user code to initialize the page here
|
||||
}
|
||||
@@ -412,7 +412,7 @@ namespace umbraco.presentation.umbraco.dialogs
|
||||
}
|
||||
}
|
||||
|
||||
feedback.Text = ui.Text("publicAccess", "paIsProtected", new cms.businesslogic.CMSNode(pageId).Text) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>";
|
||||
feedback.Text = ui.Text("publicAccess", "paIsProtected", new cms.businesslogic.CMSNode(pageId).Text) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + Services.TextService.Localize("closeThisWindow") + "</a>";
|
||||
|
||||
p_buttons.Visible = false;
|
||||
pane_advanced.Visible = false;
|
||||
@@ -435,7 +435,7 @@ namespace umbraco.presentation.umbraco.dialogs
|
||||
|
||||
RemoveProtection(pageId);
|
||||
|
||||
feedback.Text = ui.Text("publicAccess", "paIsRemoved", new cms.businesslogic.CMSNode(pageId).Text) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>";
|
||||
feedback.Text = ui.Text("publicAccess", "paIsRemoved", new cms.businesslogic.CMSNode(pageId).Text) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + Services.TextService.Localize("closeThisWindow") + "</a>";
|
||||
|
||||
var content = Services.ContentService.GetById(pageId);
|
||||
//reloads the current node in the tree
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
// protected void Page_Load(object sender, System.EventArgs e)
|
||||
// {
|
||||
// bt_go.Text = ui.Text("republish");
|
||||
// bt_go.Text = Services.TextService.Localize("republish");
|
||||
// }
|
||||
|
||||
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
// feedBackMsg.type = global::umbraco.uicontrols.Feedback.feedbacktype.success;
|
||||
// string[] vars = {rollback.Text, rollback.VersionDate.ToLongDateString()};
|
||||
|
||||
// feedBackMsg.Text = ui.Text("rollback", "documentRolledBack", vars, new global::umbraco.BusinessLogic.User(0)) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + ui.Text("closeThisWindow") + "</a>";
|
||||
// feedBackMsg.Text = ui.Text("rollback", "documentRolledBack", vars, new global::umbraco.BusinessLogic.User(0)) + "</p><p><a href='#' onclick='" + ClientTools.Scripts.CloseModalWindow() + "'>" + Services.TextService.Localize("closeThisWindow") + "</a>";
|
||||
// diffPanel.Visible = false;
|
||||
// pl_buttons.Visible = false;
|
||||
// }
|
||||
|
||||
@@ -29,10 +29,10 @@ namespace umbraco.presentation.dialogs
|
||||
{
|
||||
_currentPage = new CMSNode(Int32.Parse(Request.GetItemAsString("id")));
|
||||
|
||||
pp_translator.Text = ui.Text("translation","translator", Security.CurrentUser);
|
||||
pp_language.Text = ui.Text("translation", "translateTo", Security.CurrentUser);
|
||||
pp_includeSubs.Text = ui.Text("translation","includeSubpages", Security.CurrentUser);
|
||||
pp_comment.Text = ui.Text("comment", Security.CurrentUser);
|
||||
pp_translator.Text = Services.TextService.Localize("translation/translator");
|
||||
pp_language.Text = Services.TextService.Localize("translation/translateTo");
|
||||
pp_includeSubs.Text = Services.TextService.Localize("translation/includeSubpages");
|
||||
pp_comment.Text = Services.TextService.Localize("comment");
|
||||
pane_form.Text = ui.Text("translation", "sendToTranslate", _currentPage.Text, Security.CurrentUser);
|
||||
|
||||
|
||||
@@ -45,15 +45,15 @@ namespace umbraco.presentation.dialogs
|
||||
if (domains != null)
|
||||
{
|
||||
selectedLanguage = domains[0].Language.id;
|
||||
defaultLanguage.Text = ui.Text("defaultLanguageIs", Security.CurrentUser) + " " + domains[0].Language.FriendlyName;
|
||||
defaultLanguage.Text = Services.TextService.Localize("defaultLanguageIs") + " " + domains[0].Language.FriendlyName;
|
||||
}
|
||||
else
|
||||
{
|
||||
defaultLanguage.Text = ui.Text("defaultLanguageIsNotAssigned", Security.CurrentUser);
|
||||
defaultLanguage.Text = Services.TextService.Localize("defaultLanguageIsNotAssigned");
|
||||
}
|
||||
|
||||
// languages
|
||||
language.Items.Add(new ListItem(ui.Text("general", "choose", Security.CurrentUser), ""));
|
||||
language.Items.Add(new ListItem(Services.TextService.Localize("general/choose"), ""));
|
||||
foreach (var l in Language.getAll)
|
||||
{
|
||||
var li = new ListItem();
|
||||
@@ -80,7 +80,7 @@ namespace umbraco.presentation.dialogs
|
||||
}
|
||||
|
||||
// send button
|
||||
doTranslation.Text = ui.Text("general", "ok", Security.CurrentUser);
|
||||
doTranslation.Text = Services.TextService.Localize("general/ok");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,5 @@
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Web;
|
||||
using System.Web.SessionState;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.HtmlControls;
|
||||
|
||||
using System.Web.Security;
|
||||
using umbraco.cms.businesslogic.member;
|
||||
using umbraco.cms.presentation.Trees;
|
||||
using umbraco.uicontrols;
|
||||
@@ -69,7 +59,7 @@ namespace umbraco.presentation.members
|
||||
_memberGroup.Text = NameTxt.Text;
|
||||
memberGroupName.Value = NameTxt.Text;
|
||||
_memberGroup.Save();
|
||||
this.ClientTools.ShowSpeechBubble(SpeechBubbleIcon.Save, ui.Text("speechBubbles", "editMemberGroupSaved", Security.CurrentUser),"");
|
||||
this.ClientTools.ShowSpeechBubble(SpeechBubbleIcon.Save, Services.TextService.Localize("speechBubbles/editMemberGroupSaved"),"");
|
||||
|
||||
ClientTools
|
||||
.RefreshTree(TreeDefinitionCollection.Instance.FindTree<loadMemberGroups>().Tree.Alias);
|
||||
@@ -86,11 +76,11 @@ namespace umbraco.presentation.members
|
||||
base.OnInit(e);
|
||||
Panel1.hasMenu = true;
|
||||
save = Panel1.Menu.NewButton();
|
||||
save.Text = ui.Text("save");
|
||||
save.Text = Services.TextService.Localize("save");
|
||||
save.Click += new EventHandler(save_click);
|
||||
save.ButtonType = MenuButtonType.Primary;
|
||||
|
||||
Panel1.Text = ui.Text("membergroup");
|
||||
Panel1.Text = Services.TextService.Localize("membergroup");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -8,10 +8,12 @@ using Examine.SearchCriteria;
|
||||
using umbraco.cms.businesslogic.member;
|
||||
using System.Web.Security;
|
||||
using Umbraco.Core.Security;
|
||||
using Umbraco.Core.Services;
|
||||
using Umbraco.Web.UI.Controls;
|
||||
|
||||
namespace umbraco.presentation.umbraco.members
|
||||
{
|
||||
public partial class MemberSearch : UserControl
|
||||
public partial class MemberSearch : UmbracoUserControl
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
@@ -19,7 +21,7 @@ namespace umbraco.presentation.umbraco.members
|
||||
|
||||
if (provider.IsUmbracoMembershipProvider())
|
||||
|
||||
ButtonSearch.Text = ui.Text("search");
|
||||
ButtonSearch.Text = Services.TextService.Localize("search");
|
||||
}
|
||||
|
||||
protected void ButtonSearch_Click(object sender, EventArgs e)
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Security;
|
||||
@@ -19,7 +17,7 @@ namespace umbraco.presentation.members
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
panel1.Text = ui.Text("member");
|
||||
panel1.Text = Services.TextService.Localize("member");
|
||||
BindRp();
|
||||
}
|
||||
|
||||
@@ -66,8 +64,8 @@ namespace umbraco.presentation.members
|
||||
_email.Text = mem.Email;
|
||||
|
||||
_button.CommandArgument = mem.Id.ToString();
|
||||
_button.OnClientClick = "return confirm(\"" + ui.Text("confirmdelete") + "'" + mem.Text + "' ?\")";
|
||||
_button.Text = ui.Text("delete");
|
||||
_button.OnClientClick = "return confirm(\"" + Services.TextService.Localize("confirmdelete") + "'" + mem.Text + "' ?\")";
|
||||
_button.Text = Services.TextService.Localize("delete");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -26,14 +26,14 @@ namespace umbraco.settings
|
||||
|
||||
// Put user code to initialize the page here
|
||||
Panel1.hasMenu = true;
|
||||
Panel1.Text = ui.Text("editdictionary") + ": " + currentItem.key;
|
||||
Panel1.Text = Services.TextService.Localize("editdictionary") + ": " + currentItem.key;
|
||||
|
||||
uicontrols.Pane p = new uicontrols.Pane();
|
||||
|
||||
var save = Panel1.Menu.NewButton();
|
||||
save.Text = ui.Text("save");
|
||||
save.Text = Services.TextService.Localize("save");
|
||||
save.Click += save_Click;
|
||||
save.ToolTip = ui.Text("save");
|
||||
save.ToolTip = Services.TextService.Localize("save");
|
||||
save.ID = "save";
|
||||
save.ButtonType = uicontrols.MenuButtonType.Primary;
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace umbraco.settings
|
||||
|
||||
|
||||
// Put user code to initialize the page here
|
||||
Panel1.Text = ui.Text("editlanguage");
|
||||
pp_language.Text = ui.Text("language", "displayName", Security.CurrentUser);
|
||||
Panel1.Text = Services.TextService.Localize("editlanguage");
|
||||
pp_language.Text = Services.TextService.Localize("language/displayName");
|
||||
if (!IsPostBack)
|
||||
{
|
||||
updateCultureList();
|
||||
@@ -47,7 +47,7 @@ namespace umbraco.settings
|
||||
{
|
||||
SortedList sortedCultures = new SortedList();
|
||||
Cultures.Items.Clear();
|
||||
Cultures.Items.Add(new ListItem(ui.Text("choose") + "...", ""));
|
||||
Cultures.Items.Add(new ListItem(Services.TextService.Localize("choose") + "...", ""));
|
||||
foreach (CultureInfo ci in CultureInfo.GetCultures(CultureTypes.AllCultures))
|
||||
sortedCultures.Add(ci.DisplayName + "|||" + Guid.NewGuid().ToString(), ci.Name);
|
||||
|
||||
@@ -77,8 +77,8 @@ namespace umbraco.settings
|
||||
Panel1.hasMenu = true;
|
||||
var save = Panel1.Menu.NewButton();
|
||||
save.Click += save_click;
|
||||
save.ToolTip = ui.Text("save");
|
||||
save.Text = ui.Text("save");
|
||||
save.ToolTip = Services.TextService.Localize("save");
|
||||
save.Text = Services.TextService.Localize("save");
|
||||
save.ID = "save";
|
||||
save.ButtonType = uicontrols.MenuButtonType.Primary;
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace umbraco.cms.presentation.settings
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
MasterTemplate.Items.Add(new ListItem(ui.Text("none"), "0"));
|
||||
MasterTemplate.Items.Add(new ListItem(Services.TextService.Localize("none"), "0"));
|
||||
foreach (Template t in Template.GetAllAsList())
|
||||
{
|
||||
if (t.Id != _template.Id)
|
||||
@@ -88,19 +88,19 @@ namespace umbraco.cms.presentation.settings
|
||||
base.OnInit(e);
|
||||
Panel1.hasMenu = true;
|
||||
|
||||
var editor = Panel1.NewTabPage(ui.Text("template"));
|
||||
var editor = Panel1.NewTabPage(Services.TextService.Localize("template"));
|
||||
editor.Controls.Add(Pane8);
|
||||
|
||||
var props = Panel1.NewTabPage(ui.Text("properties"));
|
||||
var props = Panel1.NewTabPage(Services.TextService.Localize("properties"));
|
||||
props.Controls.Add(Pane7);
|
||||
|
||||
SaveButton = Panel1.Menu.NewButton();
|
||||
SaveButton.Text = ui.Text("save");
|
||||
SaveButton.Text = Services.TextService.Localize("save");
|
||||
SaveButton.ButtonType = MenuButtonType.Primary;
|
||||
SaveButton.ID = "save";
|
||||
SaveButton.CssClass = "client-side";
|
||||
|
||||
Panel1.Text = ui.Text("edittemplate");
|
||||
Panel1.Text = Services.TextService.Localize("edittemplate");
|
||||
pp_name.Text = ui.Text("name", UmbracoUser);
|
||||
pp_alias.Text = ui.Text("alias", UmbracoUser);
|
||||
pp_masterTemplate.Text = ui.Text("mastertemplate", UmbracoUser);
|
||||
|
||||
@@ -58,9 +58,9 @@ namespace umbraco.cms.presentation.settings.scripts
|
||||
// name derives from filename, clean for xss
|
||||
NameTxt.Text = filename.CleanForXss('\\', '/');
|
||||
|
||||
Panel1.Text = ui.Text("editscript", Security.CurrentUser);
|
||||
pp_name.Text = ui.Text("name", Security.CurrentUser);
|
||||
pp_path.Text = ui.Text("path", Security.CurrentUser);
|
||||
Panel1.Text = Services.TextService.Localize("editscript");
|
||||
pp_name.Text = Services.TextService.Localize("name");
|
||||
pp_path.Text = Services.TextService.Localize("path");
|
||||
|
||||
if (IsPostBack == false)
|
||||
{
|
||||
@@ -86,12 +86,12 @@ namespace umbraco.cms.presentation.settings.scripts
|
||||
var editor = Panel1.NewTabPage(Services.TextService.Localize("settings/script"));
|
||||
editor.Controls.Add(Pane7);
|
||||
|
||||
var props = Panel1.NewTabPage(ui.Text("properties"));
|
||||
var props = Panel1.NewTabPage(Services.TextService.Localize("properties"));
|
||||
props.Controls.Add(Pane8);
|
||||
|
||||
|
||||
SaveButton = Panel1.Menu.NewButton();
|
||||
SaveButton.Text = ui.Text("save");
|
||||
SaveButton.Text = Services.TextService.Localize("save");
|
||||
SaveButton.ButtonType = MenuButtonType.Primary;
|
||||
SaveButton.ID = "save";
|
||||
SaveButton.CssClass = "client-side";
|
||||
|
||||
+3
-3
@@ -35,14 +35,14 @@ namespace umbraco.cms.presentation.settings.stylesheet
|
||||
|
||||
filename = Request.QueryString["id"].Replace('\\', '/').TrimStart('/');
|
||||
|
||||
var editor = Panel1.NewTabPage(ui.Text("stylesheet"));
|
||||
var editor = Panel1.NewTabPage(Services.TextService.Localize("stylesheet"));
|
||||
editor.Controls.Add(Pane7);
|
||||
|
||||
var props = Panel1.NewTabPage(ui.Text("properties"));
|
||||
var props = Panel1.NewTabPage(Services.TextService.Localize("properties"));
|
||||
props.Controls.Add(Pane8);
|
||||
|
||||
SaveButton = Panel1.Menu.NewButton();
|
||||
SaveButton.Text = ui.Text("save");
|
||||
SaveButton.Text = Services.TextService.Localize("save");
|
||||
SaveButton.ButtonType = MenuButtonType.Primary;
|
||||
SaveButton.ID = "save";
|
||||
SaveButton.CssClass = "client-side";
|
||||
|
||||
+2
-2
@@ -54,8 +54,8 @@ namespace umbraco.cms.presentation.settings.stylesheet
|
||||
|
||||
var bt = Panel1.Menu.NewButton();
|
||||
bt.Click += SaveClick;
|
||||
bt.Text = ui.Text("save");
|
||||
bt.ToolTip = ui.Text("save");
|
||||
bt.Text = Services.TextService.Localize("save");
|
||||
bt.ToolTip = Services.TextService.Localize("save");
|
||||
bt.ButtonType = uicontrols.MenuButtonType.Primary;
|
||||
bt.ID = "save";
|
||||
}
|
||||
|
||||
@@ -30,9 +30,9 @@ namespace umbraco.presentation.translation
|
||||
tasks.Columns.Add("ReferingUser");
|
||||
tasks.Columns.Add("Language");
|
||||
|
||||
taskList.Columns[0].HeaderText = ui.Text("nodeName");
|
||||
taskList.Columns[0].HeaderText = Services.TextService.Localize("nodeName");
|
||||
taskList.Columns[1].HeaderText = Services.TextService.Localize("translation/taskAssignedBy");
|
||||
taskList.Columns[2].HeaderText = ui.Text("date");
|
||||
taskList.Columns[2].HeaderText = Services.TextService.Localize("date");
|
||||
|
||||
((System.Web.UI.WebControls.HyperLinkField)taskList.Columns[3]).Text = Services.TextService.Localize("translation/details");
|
||||
((System.Web.UI.WebControls.HyperLinkField)taskList.Columns[4]).Text = Services.TextService.Localize("translation/downloadTaskAsXml");
|
||||
@@ -51,7 +51,7 @@ namespace umbraco.presentation.translation
|
||||
Panel2.Text = Services.TextService.Localize("translation/assignedTasks");
|
||||
}
|
||||
|
||||
uploadFile.Text = ui.Text("upload");
|
||||
uploadFile.Text = Services.TextService.Localize("upload");
|
||||
pane_uploadFile.Text = Services.TextService.Localize("translation/uploadTranslationXml");
|
||||
|
||||
foreach (Task t in ts)
|
||||
@@ -111,7 +111,7 @@ namespace umbraco.presentation.translation
|
||||
foreach (Task translation in ImportTranslatationFile(translationFileXml.FullName))
|
||||
{
|
||||
|
||||
sb.Append("<li>" + translation.Node.Text + " <a target=\"_blank\" href=\"preview.aspx?id=" + translation.Id + "\">" + ui.Text("preview") + "</a></li>");
|
||||
sb.Append("<li>" + translation.Node.Text + " <a target=\"_blank\" href=\"preview.aspx?id=" + translation.Id + "\">" + Services.TextService.Localize("preview") + "</a></li>");
|
||||
}
|
||||
}
|
||||
catch (Exception ee)
|
||||
@@ -137,14 +137,14 @@ namespace umbraco.presentation.translation
|
||||
if (l.Count == 1)
|
||||
{
|
||||
feedback.type = global::umbraco.uicontrols.Feedback.feedbacktype.success;
|
||||
feedback.Text = "<h3>" + Services.TextService.Localize("translation/translationDone") + "</h3><p>" + Services.TextService.Localize("translation/translationDoneHelp") + "</p><p><a target=\"_blank\" href=\"preview.aspx?id=" + l[0].Id + "\">" + ui.Text("preview") + "</a></p>";
|
||||
feedback.Text = "<h3>" + Services.TextService.Localize("translation/translationDone") + "</h3><p>" + Services.TextService.Localize("translation/translationDoneHelp") + "</p><p><a target=\"_blank\" href=\"preview.aspx?id=" + l[0].Id + "\">" + Services.TextService.Localize("preview") + "</a></p>";
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
foreach (Task t in l)
|
||||
{
|
||||
sb.Append("<li>" + t.Node.Text + " <a target=\"_blank\" href=\"preview.aspx?id=" + t.Id + "\">" + ui.Text("preview") + "</a></li>");
|
||||
sb.Append("<li>" + t.Node.Text + " <a target=\"_blank\" href=\"preview.aspx?id=" + t.Id + "\">" + Services.TextService.Localize("preview") + "</a></li>");
|
||||
}
|
||||
|
||||
feedback.type = global::umbraco.uicontrols.Feedback.feedbacktype.success;
|
||||
|
||||
@@ -51,10 +51,10 @@ namespace umbraco.presentation.umbraco.translation {
|
||||
lt = new Literal();
|
||||
lt.Text = library.ReplaceLineBreaks(t.Comment);
|
||||
pp_comment.Controls.Add(lt);
|
||||
pp_comment.Text = ui.Text("comment");
|
||||
pp_comment.Text = Services.TextService.Localize("comment");
|
||||
|
||||
lt = new Literal();
|
||||
lt.Text = "<a target=\"_blank\" href=\"xml.aspx?id=" + t.Id + "\">" + ui.Text("download") + "</a>";
|
||||
lt.Text = "<a target=\"_blank\" href=\"xml.aspx?id=" + t.Id + "\">" + Services.TextService.Localize("download") + "</a>";
|
||||
pp_xml.Controls.Add(lt);
|
||||
pp_xml.Text = Services.TextService.Localize("translation/downloadTaskAsXml");
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace umbraco.presentation.umbraco.translation {
|
||||
pane_fields.Text = Services.TextService.Localize("translation/fields");
|
||||
pane_tasks.Text = Services.TextService.Localize("translation/translationOptions");
|
||||
lt = new Literal();
|
||||
lt.Text = "<a href=\"default.aspx?id=" + t.Id + "\">" + ui.Text("upload") + "</a>";
|
||||
lt.Text = "<a href=\"default.aspx?id=" + t.Id + "\">" + Services.TextService.Localize("upload") + "</a>";
|
||||
pp_upload.Controls.Add(lt);
|
||||
pp_upload.Text = Services.TextService.Localize("translation/uploadTranslationXml");
|
||||
|
||||
@@ -72,25 +72,25 @@ namespace umbraco.presentation.umbraco.translation {
|
||||
pp_closeTask.Visible = false;
|
||||
else {
|
||||
pp_closeTask.Text = Services.TextService.Localize("translation/closeTask");
|
||||
bt_close.Text = ui.Text("close");
|
||||
bt_close.Text = Services.TextService.Localize("close");
|
||||
}
|
||||
|
||||
|
||||
//Bind page fields
|
||||
DataTable pageTable = new DataTable();
|
||||
pageTable.Columns.Add(ui.Text("name"));
|
||||
pageTable.Columns.Add(ui.Text("value"));
|
||||
pageTable.Columns.Add(Services.TextService.Localize("name"));
|
||||
pageTable.Columns.Add(Services.TextService.Localize("value"));
|
||||
|
||||
DataRow pageRow = pageTable.NewRow();
|
||||
pageRow[ui.Text("name")] = ui.Text("nodeName");
|
||||
pageRow[ui.Text("value")] = page.Text;
|
||||
pageRow[Services.TextService.Localize("name")] = Services.TextService.Localize("nodeName");
|
||||
pageRow[Services.TextService.Localize("value")] = page.Text;
|
||||
pageTable.Rows.Add(pageRow);
|
||||
|
||||
//TODO: Make this work again with correct APIs and angularized - so none of this code will exist anymore
|
||||
//foreach (PropertyType pt in page.ContentType.PropertyTypes) {
|
||||
// pageRow = pageTable.NewRow();
|
||||
// pageRow[ui.Text("name")] = pt.Name;
|
||||
// pageRow[ui.Text("value")] = page.getProperty(pt.Alias).Value;
|
||||
// pageRow[Services.TextService.Localize("name")] = pt.Name;
|
||||
// pageRow[Services.TextService.Localize("value")] = page.getProperty(pt.Alias).Value;
|
||||
// pageTable.Rows.Add(pageRow);
|
||||
//}
|
||||
|
||||
|
||||
@@ -199,8 +199,8 @@ namespace umbraco.cms.presentation.user
|
||||
var save = userInfo.Menu.NewButton();
|
||||
save.Click += SaveUser_Click;
|
||||
save.ID = "save";
|
||||
save.ToolTip = ui.Text("save");
|
||||
save.Text = ui.Text("save");
|
||||
save.ToolTip = Services.TextService.Localize("save");
|
||||
save.Text = Services.TextService.Localize("save");
|
||||
save.ButtonType = MenuButtonType.Primary;
|
||||
|
||||
sectionValidator.ServerValidate += new ServerValidateEventHandler(sectionValidator_ServerValidate);
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using Umbraco.Core.Services;
|
||||
using System;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Collections.Generic;
|
||||
@@ -19,18 +20,18 @@ namespace umbraco.cms.presentation.user
|
||||
}
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
pnlUmbraco.Text = umbraco.ui.Text("usertype", Security.CurrentUser);
|
||||
pnlUmbraco.Text = Services.TextService.Localize("usertype");
|
||||
|
||||
var save = pnlUmbraco.Menu.NewButton();
|
||||
save.Click += save_Click;
|
||||
save.ID = "save";
|
||||
save.ToolTip = ui.Text("save");
|
||||
save.Text = ui.Text("save");
|
||||
save.ToolTip = Services.TextService.Localize("save");
|
||||
save.Text = Services.TextService.Localize("save");
|
||||
|
||||
pp_alias.Text = umbraco.ui.Text("usertype", Security.CurrentUser) + " " + umbraco.ui.Text("alias", Security.CurrentUser);
|
||||
pp_name.Text = umbraco.ui.Text("usertype", Security.CurrentUser) + " " + umbraco.ui.Text("name", Security.CurrentUser);
|
||||
pp_alias.Text = Services.TextService.Localize("usertype") + " " + Services.TextService.Localize("alias");
|
||||
pp_name.Text = Services.TextService.Localize("usertype") + " " + Services.TextService.Localize("name");
|
||||
|
||||
pp_rights.Text = umbraco.ui.Text("default", Security.CurrentUser) + " " + umbraco.ui.Text("rights", Security.CurrentUser);
|
||||
pp_rights.Text = Services.TextService.Localize("default") + " " + Services.TextService.Localize("rights");
|
||||
|
||||
//ensure we have a query string
|
||||
if (string.IsNullOrEmpty(Request.QueryString["id"]))
|
||||
@@ -64,7 +65,7 @@ namespace umbraco.cms.presentation.user
|
||||
userType.DefaultPermissions = actions;
|
||||
userType.Save();
|
||||
|
||||
ClientTools.ShowSpeechBubble(SpeechBubbleIcon.Save, ui.Text("speechBubbles", "editUserTypeSaved", Security.CurrentUser), "");
|
||||
ClientTools.ShowSpeechBubble(SpeechBubbleIcon.Save, Services.TextService.Localize("speechBubbles/editUserTypeSaved"), "");
|
||||
}
|
||||
|
||||
protected List<IAction> CurrentUserTypeActions
|
||||
|
||||
@@ -41,8 +41,8 @@ namespace umbraco.cms.presentation.user
|
||||
save.ID = "btnSave";
|
||||
save.ButtonType = uicontrols.MenuButtonType.Primary;
|
||||
save.OnClientClick = "SavePermissions(); return false;";
|
||||
save.Text = ui.Text("save");
|
||||
save.ToolTip = ui.Text("save");
|
||||
save.Text = Services.TextService.Localize("save");
|
||||
save.ToolTip = Services.TextService.Localize("save");
|
||||
|
||||
|
||||
nodePermissions.UserID = Convert.ToInt32(Request.QueryString["id"]);
|
||||
|
||||
@@ -126,7 +126,7 @@ namespace umbraco.presentation.webservices
|
||||
{
|
||||
//errorMessage = Services.TextService.Localize("developer/xsltErrorNoNodesPublished");
|
||||
File.Delete(tempFileName);
|
||||
//base.speechBubble(speechBubbleIcon.info, ui.Text("errors", "xsltErrorHeader", Security.CurrentUser), "Unable to validate xslt as no published content nodes exist.");
|
||||
//base.speechBubble(speechBubbleIcon.info, Services.TextService.Localize("errors/xsltErrorHeader"), "Unable to validate xslt as no published content nodes exist.");
|
||||
}
|
||||
}
|
||||
catch (Exception errorXslt)
|
||||
|
||||
Reference in New Issue
Block a user