remore ui replacements

This commit is contained in:
Shannon
2016-03-15 16:39:17 +01:00
parent bf36b54ac8
commit fb5e998e1f
21 changed files with 45 additions and 328 deletions

View File

@@ -1,5 +1,7 @@
using AutoMapper;
using System.Collections.Generic;
using AutoMapper;
using Umbraco.Core;
using Umbraco.Core.Services;
using Umbraco.Core.Models.Mapping;
using Umbraco.Web.Models.ContentEditing;
using umbraco;
@@ -13,7 +15,7 @@ namespace Umbraco.Web.Models.Mapping
config.CreateMap<Core.Models.Section, Section>()
.ForMember(
dto => dto.Name,
expression => expression.MapFrom(section => ui.Text("sections", section.Alias)))
expression => expression.MapFrom(section => applicationContext.Services.TextService.Localize("sections/" + section.Alias, (IDictionary<string, string>)null)))
.ReverseMap(); //backwards too!
}
}