Merge pull request #1339 from dannydrogt/temp-u4-8613

U4-8613 Link to DocType from "Properties" tab is not localized
This commit is contained in:
Sebastiaan Janssen
2016-07-07 15:38:00 +02:00
committed by GitHub

View File

@@ -229,7 +229,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