https://github.com/umbraco/Umbraco-CMS/issues/10927 - Fixed issue with translations but still support the fix for https://github.com/umbraco/Umbraco-CMS/issues/10627
This commit is contained in:
@@ -65,7 +65,7 @@ namespace Umbraco.Extensions
|
||||
if (text == null)
|
||||
return null;
|
||||
|
||||
if (text.StartsWith("#") == false || text.IndexOf('_') == -1)
|
||||
if (text.StartsWith("#") == false)
|
||||
return text;
|
||||
|
||||
text = text.Substring(1);
|
||||
@@ -75,6 +75,9 @@ namespace Umbraco.Extensions
|
||||
return value;
|
||||
}
|
||||
|
||||
if (text.IndexOf('_') == -1)
|
||||
return text;
|
||||
|
||||
var areaAndKey = text.Split('_');
|
||||
|
||||
if (areaAndKey.Length < 2)
|
||||
|
||||
Reference in New Issue
Block a user