From 157711c46427d3f0408856ab99b56671d5319e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=9D=E9=9B=B6?= <78294929+JiuLing-zhang@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:46:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E8=AE=BE=E7=BD=AE=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=B0=83=E6=95=B4=E4=B8=BA=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/ResetPassword.razor.cs | 2 +- src/ComputerLock/Pages/Index.razor | 4 ++-- src/ComputerLock/Pages/Index.razor.cs | 4 ++-- src/ComputerLock/Resources/Lang.Designer.cs | 18 +++++++++--------- src/ComputerLock/Resources/Lang.en.resx | 4 ++-- src/ComputerLock/Resources/Lang.resx | 2 +- src/ComputerLock/Resources/Lang.zh.resx | 4 ++-- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/ComputerLock/Components/ResetPassword.razor.cs b/src/ComputerLock/Components/ResetPassword.razor.cs index 8485724..5c8ad3f 100644 --- a/src/ComputerLock/Components/ResetPassword.razor.cs +++ b/src/ComputerLock/Components/ResetPassword.razor.cs @@ -1,7 +1,7 @@ using DialogResult = MudBlazor.DialogResult; namespace ComputerLock.Components; -public partial class SetPassword +public partial class ResetPassword { [CascadingParameter] private MudDialogInstance MudDialog { get; set; } = default!; diff --git a/src/ComputerLock/Pages/Index.razor b/src/ComputerLock/Pages/Index.razor index b552573..341f0e9 100644 --- a/src/ComputerLock/Pages/Index.razor +++ b/src/ComputerLock/Pages/Index.razor @@ -116,8 +116,8 @@ - @(Lang["SetPassword"]) + OnClick="ResetPassword"> + @(Lang["ResetPassword"]) \ No newline at end of file diff --git a/src/ComputerLock/Pages/Index.razor.cs b/src/ComputerLock/Pages/Index.razor.cs index 8f0e617..6308c36 100644 --- a/src/ComputerLock/Pages/Index.razor.cs +++ b/src/ComputerLock/Pages/Index.razor.cs @@ -231,7 +231,7 @@ public void UnregisterHotKey() _shortcutKeyText = Lang["Invalid"]; } - private async Task SetPassword() + private async Task ResetPassword() { var noHeader = new DialogOptions() { @@ -239,7 +239,7 @@ private async Task SetPassword() CloseOnEscapeKey = false, CloseButton = true }; - var dialog = await Dialog.ShowAsync(Lang["SetPassword"], noHeader); + var dialog = await Dialog.ShowAsync(Lang["ResetPassword"], noHeader); var result = await dialog.Result; if (result.Canceled) { diff --git a/src/ComputerLock/Resources/Lang.Designer.cs b/src/ComputerLock/Resources/Lang.Designer.cs index 202868d..dbd4a56 100644 --- a/src/ComputerLock/Resources/Lang.Designer.cs +++ b/src/ComputerLock/Resources/Lang.Designer.cs @@ -537,6 +537,15 @@ public static string RemoveLogsOk { } } + /// + /// 查找类似 的本地化字符串。 + /// + public static string ResetPassword { + get { + return ResourceManager.GetString("ResetPassword", resourceCulture); + } + } + /// /// 查找类似 的本地化字符串。 /// @@ -591,15 +600,6 @@ public static string SaveOk { } } - /// - /// 查找类似 的本地化字符串。 - /// - public static string SetPassword { - get { - return ResourceManager.GetString("SetPassword", resourceCulture); - } - } - /// /// 查找类似 的本地化字符串。 /// diff --git a/src/ComputerLock/Resources/Lang.en.resx b/src/ComputerLock/Resources/Lang.en.resx index bc77037..c27701e 100644 --- a/src/ComputerLock/Resources/Lang.en.resx +++ b/src/ComputerLock/Resources/Lang.en.resx @@ -195,8 +195,8 @@ Default password is 1 - - Set password + + Reset password Current Password diff --git a/src/ComputerLock/Resources/Lang.resx b/src/ComputerLock/Resources/Lang.resx index 2ea5deb..33334d3 100644 --- a/src/ComputerLock/Resources/Lang.resx +++ b/src/ComputerLock/Resources/Lang.resx @@ -175,7 +175,7 @@ - + diff --git a/src/ComputerLock/Resources/Lang.zh.resx b/src/ComputerLock/Resources/Lang.zh.resx index 55246e1..444ba3c 100644 --- a/src/ComputerLock/Resources/Lang.zh.resx +++ b/src/ComputerLock/Resources/Lang.zh.resx @@ -195,8 +195,8 @@ 初始密码为1 - - 设置密码 + + 修改密码 当前密码