localized tree names
This commit is contained in:
@@ -234,7 +234,7 @@ function treeService($q, treeResource, iconHelper, notificationsService, $rootSc
|
||||
.then(function(data) {
|
||||
//this will be called once the tree app data has loaded
|
||||
var result = {
|
||||
name: section,
|
||||
name: data.name,
|
||||
alias: section,
|
||||
root: data
|
||||
};
|
||||
|
||||
@@ -13,6 +13,8 @@ using Umbraco.Web.WebApi;
|
||||
using Umbraco.Web.WebApi.Filters;
|
||||
using Constants = Umbraco.Core.Constants;
|
||||
|
||||
using umbraco;
|
||||
|
||||
namespace Umbraco.Web.Trees
|
||||
{
|
||||
|
||||
@@ -47,11 +49,15 @@ namespace Umbraco.Web.Trees
|
||||
var appTrees = ApplicationContext.Current.Services.ApplicationTreeService.GetApplicationTrees(application, true).ToArray();
|
||||
if (appTrees.Count() == 1)
|
||||
{
|
||||
return GetRootForSingleAppTree(
|
||||
var tree = GetRootForSingleAppTree(
|
||||
appTrees.Single(),
|
||||
Constants.System.Root.ToString(CultureInfo.InvariantCulture),
|
||||
queryStrings,
|
||||
application);
|
||||
|
||||
//PP: should this be further down in the logic?
|
||||
tree.Title = ui.Text("sections", application);
|
||||
return tree;
|
||||
}
|
||||
|
||||
var collection = new TreeNodeCollection();
|
||||
@@ -62,7 +68,9 @@ namespace Umbraco.Web.Trees
|
||||
collection.Add(rootNode);
|
||||
}
|
||||
|
||||
return SectionRootNode.CreateMultiTreeSectionRoot(rootId, collection);
|
||||
var multiTree = SectionRootNode.CreateMultiTreeSectionRoot(rootId, collection);
|
||||
multiTree.Title = ui.Text("sections", application);
|
||||
return multiTree;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user