From 4fcfb2ab4e53202995334ae6fc63406e1aae0f78 Mon Sep 17 00:00:00 2001 From: Leigh Date: Wed, 16 Jun 2021 09:46:33 +0200 Subject: [PATCH] Introduce SharedResource Localisation Updated the ControlPanel to use Shared resources for; Add, Edit, Delete, Cancel Corrected the SharedResources.cs namespace. --- Oqtane.Client/SharedResources.cs | 2 +- .../Themes/Controls/Theme/ControlPanel.razor | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Oqtane.Client/SharedResources.cs b/Oqtane.Client/SharedResources.cs index da203b14..1ea66d42 100644 --- a/Oqtane.Client/SharedResources.cs +++ b/Oqtane.Client/SharedResources.cs @@ -1,4 +1,4 @@ -namespace Oqtane.Client +namespace Oqtane { /// /// Dummy class used to collect shared resource strings for this application diff --git a/Oqtane.Client/Themes/Controls/Theme/ControlPanel.razor b/Oqtane.Client/Themes/Controls/Theme/ControlPanel.razor index 14e985e1..652a14ff 100644 --- a/Oqtane.Client/Themes/Controls/Theme/ControlPanel.razor +++ b/Oqtane.Client/Themes/Controls/Theme/ControlPanel.razor @@ -10,6 +10,7 @@ @inject ILogService logger @inject ISettingService SettingService @inject IStringLocalizer Localizer +@inject IStringLocalizer SharedLocalizer @if (_moduleDefinitions != null && UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.Permissions)) { @@ -36,18 +37,18 @@
- +
- +
- +
- +

@@ -81,8 +82,8 @@

Are You Sure You Want To Delete This Page?