From 5d21e07341b677ad4f45cb5b74b3a1b356b08b19 Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Thu, 8 Jul 2021 20:06:08 +0100 Subject: [PATCH 1/3] Fix for #10627 - UmbracoDictionaryTranslate checks. --- .../Services/LocalizedTextServiceExtensions.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs b/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs index dc20774142..2506d1b44d 100644 --- a/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs +++ b/src/Umbraco.Core/Services/LocalizedTextServiceExtensions.cs @@ -1,4 +1,4 @@ -// Copyright (c) Umbraco. +// Copyright (c) Umbraco. // See LICENSE for more details. using System; @@ -76,7 +76,7 @@ namespace Umbraco.Extensions if (text == null) return null; - if (text.StartsWith("#") == false) + if (text.StartsWith("#") == false || text.IndexOf('_') == -1) return text; text = text.Substring(1); @@ -88,6 +88,9 @@ namespace Umbraco.Extensions var areaAndKey = text.Split('_'); + if (areaAndKey.Length < 2) + return text; + value = manager.Localize(areaAndKey[0], areaAndKey[1]); return value.StartsWith("[") ? text : value; } From 9d3daa1959d0306188c89f7eb574069d94356b1d Mon Sep 17 00:00:00 2001 From: Erik-Jan Westendorp Date: Fri, 9 Jul 2021 13:34:54 +0200 Subject: [PATCH 2/3] Update error.html Change path of the log folder since the App_Data folder doesn't exist anymore. --- src/Umbraco.Web.UI.Client/src/installer/steps/error.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/installer/steps/error.html b/src/Umbraco.Web.UI.Client/src/installer/steps/error.html index 4fb5823afa..aab5b18e9f 100644 --- a/src/Umbraco.Web.UI.Client/src/installer/steps/error.html +++ b/src/Umbraco.Web.UI.Client/src/installer/steps/error.html @@ -3,7 +3,7 @@

{{installer.current.model.message}}

-

See the log for full details (logs can typically be found in the App_Data\Logs folder).

+

See the log for full details (logs can typically be found in the umbraco\Logs folder).

From b3fa5f5f351487324aca46ca2022a41e3fab7c5f Mon Sep 17 00:00:00 2001 From: Mole Date: Mon, 12 Jul 2021 12:53:04 +0200 Subject: [PATCH 3/3] Update src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs --- src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs b/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs index 446290f83f..4c745c8503 100644 --- a/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs +++ b/src/Umbraco.Infrastructure/Examine/MediaValueSetBuilder.cs @@ -46,8 +46,6 @@ namespace Umbraco.Cms.Infrastructure.Examine { foreach (IMedia m in media) { - var umbracoFilePath = string.Empty; - var umbracoFile = string.Empty; var urlValue = m.GetUrlSegment(_shortStringHelper, _urlSegmentProviders);