From 5b417f624138ac3adc5085d3d211f45b522b4a31 Mon Sep 17 00:00:00 2001 From: Danny Drogt Date: Mon, 20 Jun 2016 15:32:27 +0200 Subject: [PATCH] U4-8613 Link to DocType from "Properties" tab is not localized - Added call to TextService --- src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs b/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs index efc9b7ced6..dba7f5bf18 100644 --- a/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs +++ b/src/Umbraco.Web/Models/Mapping/ContentModelMapper.cs @@ -221,7 +221,7 @@ namespace Umbraco.Web.Models.Mapping && UmbracoContext.Current.Security.CurrentUser.AllowedSections.Any(x => x.Equals(Constants.Applications.Settings))) { var currentDocumentType = contentTypeService.GetContentType(display.ContentTypeAlias); - var currentDocumentTypeName = currentDocumentType == null ? string.Empty : currentDocumentType.Name; + var currentDocumentTypeName = currentDocumentType == null ? string.Empty : localizedText.UmbracoDictionaryTranslate(currentDocumentType.Name); var currentDocumentTypeId = currentDocumentType == null ? string.Empty : currentDocumentType.Id.ToString(CultureInfo.InvariantCulture); //TODO: Hard coding this is not good