#10459 - Show cultures in dropdown with english names to make it consistent.

This commit is contained in:
Bjarke Berg
2021-06-28 18:43:46 +02:00
parent 73f8ed7e12
commit 451f98173f

View File

@@ -53,8 +53,8 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers
return CultureInfo.GetCultures(CultureTypes.AllCultures)
.Where(x => !x.Name.IsNullOrWhiteSpace())
.Select(x => new CultureInfo(x.Name)) // important!
.OrderBy(x => x.DisplayName)
.ToDictionary(x => x.Name, x => x.DisplayName);
.OrderBy(x => x.EnglishName)
.ToDictionary(x => x.Name, x => x.EnglishName);
}
/// <summary>