Skip to content

Commit 449da31

Browse files
committed
localization: add native menu item header labels
1 parent 73ee0ae commit 449da31

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/App.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
<NativeMenu.Menu>
2727
<NativeMenu>
28-
<NativeMenuItem Header="{DynamicResource Text.About}" Command="{x:Static s:App.OpenAboutCommand}"/>
29-
<NativeMenuItem Header="{DynamicResource Text.Hotkeys}" Command="{x:Static s:App.OpenHotkeysCommand}"/>
28+
<NativeMenuItem Header="{DynamicResource Text.About.Menu}" Command="{x:Static s:App.OpenAboutCommand}"/>
29+
<NativeMenuItem Header="{DynamicResource Text.Hotkeys.Menu}" Command="{x:Static s:App.OpenHotkeysCommand}"/>
3030
<NativeMenuItem Header="{DynamicResource Text.SelfUpdate}" Command="{x:Static s:App.CheckForUpdateCommand}"/>
3131
<NativeMenuItemSeparator/>
3232
<NativeMenuItem Header="{DynamicResource Text.Preference}" Command="{x:Static s:App.OpenPreferenceCommand}" Gesture="⌘+,"/>

src/Resources/Locales/en_US.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
22
<x:String x:Key="Text.About" xml:space="preserve">About</x:String>
3+
<x:String x:Key="Text.About.Menu" xml:space="preserve">About SourceGit</x:String>
34
<x:String x:Key="Text.About.BuildWith" xml:space="preserve">• Build with </x:String>
45
<x:String x:Key="Text.About.Copyright" xml:space="preserve">© 2024 sourcegit-scm</x:String>
56
<x:String x:Key="Text.About.Editor" xml:space="preserve">• TextEditor from </x:String>
@@ -210,6 +211,7 @@
210211
<x:String x:Key="Text.Histories.SearchClear" xml:space="preserve">CLEAR</x:String>
211212
<x:String x:Key="Text.Histories.Selected" xml:space="preserve">SELECTED {0} COMMITS</x:String>
212213
<x:String x:Key="Text.Hotkeys" xml:space="preserve">HotKeys</x:String>
214+
<x:String x:Key="Text.Hotkeys.Menu" xml:space="preserve">About HotKeys</x:String>
213215
<x:String x:Key="Text.Hotkeys.Global" xml:space="preserve">GLOBAL</x:String>
214216
<x:String x:Key="Text.Hotkeys.Global.CancelPopup" xml:space="preserve">Cancel current popup</x:String>
215217
<x:String x:Key="Text.Hotkeys.Global.CloseTab" xml:space="preserve">Close current page</x:String>

src/Resources/Locales/zh_CN.axaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
22
<x:String x:Key="Text.About" xml:space="preserve">关于软件</x:String>
3+
<x:String x:Key="Text.About.Menu" xml:space="preserve">关于本软件</x:String>
34
<x:String x:Key="Text.About.BuildWith" xml:space="preserve">• 项目依赖于 </x:String>
45
<x:String x:Key="Text.About.Copyright" xml:space="preserve">© 2024 sourcegit-scm</x:String>
56
<x:String x:Key="Text.About.Editor" xml:space="preserve">• 文本编辑器使用 </x:String>
@@ -210,6 +211,7 @@
210211
<x:String x:Key="Text.Histories.SearchClear" xml:space="preserve">清空</x:String>
211212
<x:String x:Key="Text.Histories.Selected" xml:space="preserve">已选中 {0} 项提交</x:String>
212213
<x:String x:Key="Text.Hotkeys" xml:space="preserve">快捷键</x:String>
214+
<x:String x:Key="Text.Hotkeys.Menu" xml:space="preserve">显示快捷键</x:String>
213215
<x:String x:Key="Text.Hotkeys.Global" xml:space="preserve">全局快捷键</x:String>
214216
<x:String x:Key="Text.Hotkeys.Global.CancelPopup" xml:space="preserve">取消弹出面板</x:String>
215217
<x:String x:Key="Text.Hotkeys.Global.CloseTab" xml:space="preserve">关闭当前页面</x:String>

0 commit comments

Comments
 (0)