diff --git a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs index b0b98bd09c6..bc2c9c6e09a 100644 --- a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs +++ b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Controllers/DashboardController.cs @@ -124,7 +124,7 @@ public async Task Manage() var authorized = await _authorizationService.AuthorizeAsync(User, CommonPermissions.EditContent, contentItem); if (authorized) { - dashboardCreatable.Add(new SelectListItem(new LocalizedString(ctd.DisplayName, ctd.DisplayName).Value, ctd.Name)); + dashboardCreatable.Add(new SelectListItem(ctd.DisplayName, ctd.Name)); } } diff --git a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml index 29add904e68..c87088d5fe1 100644 --- a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Views/Dashboard/Manage.cshtml @@ -32,7 +32,7 @@ diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs b/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs index 682ebe2e427..f158ed3fdab 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Controllers/AdminController.cs @@ -138,7 +138,7 @@ public class AdminController : Controller if (await _authorizationService.AuthorizeAsync(context.User, CommonPermissions.EditContent, contentItem)) { - creatableList.Add(new SelectListItem(new LocalizedString(contentTypeDefinition.DisplayName, contentTypeDefinition.DisplayName).Value, contentTypeDefinition.Name)); + creatableList.Add(new SelectListItem(contentTypeDefinition.DisplayName, contentTypeDefinition.Name)); } } @@ -157,7 +157,7 @@ public class AdminController : Controller if (await _authorizationService.AuthorizeAsync(context.User, CommonPermissions.EditContent, contentItem)) { - creatableList.Add(new SelectListItem(new LocalizedString(contentTypeDefinition.DisplayName, contentTypeDefinition.DisplayName).Value, contentTypeDefinition.Name)); + creatableList.Add(new SelectListItem(contentTypeDefinition.DisplayName, contentTypeDefinition.Name)); } } } diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml index bc4fcaead68..60d33d9818a 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Create.cshtml @@ -10,7 +10,7 @@ var typeDisplayName = contentTypeDefinition?.DisplayName ?? contentItem.ContentType.CamelFriendly(); } -

@RenderTitleSegments(T["New {0}", Html.Raw(typeDisplayName)])

+

@RenderTitleSegments(T["New {0}", typeDisplayName])

@Html.ValidationSummary() diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml index 3f5d9b3505b..2d996fee555 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Admin/Edit.cshtml @@ -10,7 +10,7 @@ var typeDisplayName = contentTypeDefinition?.DisplayName ?? contentItem.ContentType.CamelFriendly(); } -

@RenderTitleSegments(T["Edit {0}", Html.Raw(typeDisplayName)])

+

@RenderTitleSegments(T["Edit {0}", typeDisplayName])

@Html.ValidationSummary() diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml index 362a76f3309..129d56e8f77 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminListCreate.cshtml @@ -16,7 +16,7 @@ diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml index 4e815322721..38bb289ad8f 100644 --- a/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Views/Download/Display.cshtml @@ -13,7 +13,7 @@ -

@RenderTitleSegments(T["View As JSON {0}", Html.Raw(typeDisplayName)])

+

@RenderTitleSegments(T["View As JSON {0}", typeDisplayName])

diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml index 25359825092..0012ac4acd3 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Admin/Hello.cshtml @@ -29,7 +29,7 @@ Being an Admin Page my default path based route is automatically prefixed with the current 'AdminOptions.AdminUrlPrefix'.

- @T[Model.Message] + @Model.Message

Date using the DateTimeShape: @await DisplayAsync(await New.DateTime(Utc: null, Format: T["MMMM dd, yyyy"].Value)) diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml index 470c894cb99..3ae09239b32 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/Hello.cshtml @@ -22,7 +22,7 @@

Hello from @ViewContext.RouteData.Values["page"]

- @T[Model.Message] + @Model.Message

Date using the DateTimeShape: @await DisplayAsync(await New.DateTime(Utc: null, Format: T["MMMM dd, yyyy"].Value)) diff --git a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml index 15af3315e96..cb7b762fdfe 100644 --- a/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Demo/Pages/OutsideAdmin.cshtml @@ -31,7 +31,7 @@ Being an Admin Page my default path based route is automatically prefixed with the current 'AdminOptions.AdminUrlPrefix'.

- @T[Model.Message] + @Model.Message

Date using the DateTimeShape: @await DisplayAsync(await New.DateTime(Utc: null, Format: T["MMMM dd, yyyy"].Value)) diff --git a/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml index 322a72fb887..338d8a1c181 100644 --- a/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Flows/Views/FlowMetadata.Edit.cshtml @@ -23,7 +23,7 @@