From 94d25ee6c9af882e6260b23ab81b04e69595f9e3 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 18 Jun 2025 13:55:03 +0800 Subject: [PATCH] code_review: PR #1430 - add missing Chinese translations - add missing icons for stash context menu Signed-off-by: leo --- src/Resources/Locales/zh_CN.axaml | 1 + src/Resources/Locales/zh_TW.axaml | 1 + src/ViewModels/StashesPage.cs | 3 +++ 3 files changed, 5 insertions(+) diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml index 6adf1c9f..783cb664 100644 --- a/src/Resources/Locales/zh_CN.axaml +++ b/src/Resources/Locales/zh_CN.axaml @@ -701,6 +701,7 @@ 选中文件的所有变更均会被贮藏! 贮藏本地变更 应用(apply) + 复制描述信息 删除(drop) 另存为补丁... 丢弃贮藏确认 diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml index 47b4de20..d8aff0fd 100644 --- a/src/Resources/Locales/zh_TW.axaml +++ b/src/Resources/Locales/zh_TW.axaml @@ -701,6 +701,7 @@ 已選取的檔案中的變更均會被擱置! 擱置本機變更 套用 (apply) + 複製描述訊息 刪除 (drop) 另存為修補檔 (patch)... 捨棄擱置變更確認 diff --git a/src/ViewModels/StashesPage.cs b/src/ViewModels/StashesPage.cs index 1f11425d..05218bc5 100644 --- a/src/ViewModels/StashesPage.cs +++ b/src/ViewModels/StashesPage.cs @@ -142,6 +142,7 @@ namespace SourceGit.ViewModels var apply = new MenuItem(); apply.Header = App.Text("StashCM.Apply"); + apply.Icon = App.CreateMenuIcon("Icons.Check"); apply.Click += (_, ev) => { if (_repo.CanCreatePopup()) @@ -152,6 +153,7 @@ namespace SourceGit.ViewModels var drop = new MenuItem(); drop.Header = App.Text("StashCM.Drop"); + drop.Icon = App.CreateMenuIcon("Icons.Clear"); drop.Click += (_, ev) => { if (_repo.CanCreatePopup()) @@ -208,6 +210,7 @@ namespace SourceGit.ViewModels menu.Items.Add(drop); menu.Items.Add(new MenuItem { Header = "-" }); menu.Items.Add(patch); + menu.Items.Add(new MenuItem { Header = "-" }); menu.Items.Add(copy); return menu; }