Skip to content

Commit 94d25ee

Browse files
committed
code_review: PR #1430
- add missing Chinese translations - add missing icons for stash context menu Signed-off-by: leo <[email protected]>
1 parent 3711399 commit 94d25ee

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

src/Resources/Locales/zh_CN.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@
701701
<x:String x:Key="Text.Stash.TipForSelectedFiles" xml:space="preserve">选中文件的所有变更均会被贮藏!</x:String>
702702
<x:String x:Key="Text.Stash.Title" xml:space="preserve">贮藏本地变更</x:String>
703703
<x:String x:Key="Text.StashCM.Apply" xml:space="preserve">应用(apply)</x:String>
704+
<x:String x:Key="Text.StashCM.CopyMessage" xml:space="preserve">复制描述信息</x:String>
704705
<x:String x:Key="Text.StashCM.Drop" xml:space="preserve">删除(drop)</x:String>
705706
<x:String x:Key="Text.StashCM.SaveAsPatch" xml:space="preserve">另存为补丁...</x:String>
706707
<x:String x:Key="Text.StashDropConfirm" xml:space="preserve">丢弃贮藏确认</x:String>

src/Resources/Locales/zh_TW.axaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@
701701
<x:String x:Key="Text.Stash.TipForSelectedFiles" xml:space="preserve">已選取的檔案中的變更均會被擱置!</x:String>
702702
<x:String x:Key="Text.Stash.Title" xml:space="preserve">擱置本機變更</x:String>
703703
<x:String x:Key="Text.StashCM.Apply" xml:space="preserve">套用 (apply)</x:String>
704+
<x:String x:Key="Text.StashCM.CopyMessage" xml:space="preserve">複製描述訊息</x:String>
704705
<x:String x:Key="Text.StashCM.Drop" xml:space="preserve">刪除 (drop)</x:String>
705706
<x:String x:Key="Text.StashCM.SaveAsPatch" xml:space="preserve">另存為修補檔 (patch)...</x:String>
706707
<x:String x:Key="Text.StashDropConfirm" xml:space="preserve">捨棄擱置變更確認</x:String>

src/ViewModels/StashesPage.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public ContextMenu MakeContextMenu(Models.Stash stash)
142142

143143
var apply = new MenuItem();
144144
apply.Header = App.Text("StashCM.Apply");
145+
apply.Icon = App.CreateMenuIcon("Icons.Check");
145146
apply.Click += (_, ev) =>
146147
{
147148
if (_repo.CanCreatePopup())
@@ -152,6 +153,7 @@ public ContextMenu MakeContextMenu(Models.Stash stash)
152153

153154
var drop = new MenuItem();
154155
drop.Header = App.Text("StashCM.Drop");
156+
drop.Icon = App.CreateMenuIcon("Icons.Clear");
155157
drop.Click += (_, ev) =>
156158
{
157159
if (_repo.CanCreatePopup())
@@ -208,6 +210,7 @@ public ContextMenu MakeContextMenu(Models.Stash stash)
208210
menu.Items.Add(drop);
209211
menu.Items.Add(new MenuItem { Header = "-" });
210212
menu.Items.Add(patch);
213+
menu.Items.Add(new MenuItem { Header = "-" });
211214
menu.Items.Add(copy);
212215
return menu;
213216
}

0 commit comments

Comments
 (0)