From 9442e0f5ca36726b59dae88f4b25850b8e39062c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20=C3=98sterg=C3=A5rd?= Date: Tue, 17 May 2022 07:36:42 +0200 Subject: [PATCH] Translate document type description (#12409) --- src/Umbraco.Web.BackOffice/Controllers/ContentController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs index e1374ea56d..8a4be417aa 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/ContentController.cs @@ -438,8 +438,10 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers display.ContentTypeName = _localizedTextService.UmbracoDictionaryTranslate(CultureDictionary, display.ContentTypeName); // if your user type doesn't have access to the Settings section it would not get this property mapped if (display.DocumentType != null) + { display.DocumentType.Name = _localizedTextService.UmbracoDictionaryTranslate(CultureDictionary, display.DocumentType.Name); - + display.DocumentType.Description = _localizedTextService.UmbracoDictionaryTranslate(CultureDictionary, display.DocumentType.Description); + } //remove the listview app if it exists display.ContentApps = display.ContentApps.Where(x => x.Alias != "umbListView").ToList();