feat: Ribbon 多语言支持,新增 en-US/zh-CN 本地化 XAML

This commit is contained in:
tian 2026-07-12 13:05:39 +08:00
parent 6666d30413
commit 9012461d59
7 changed files with 54 additions and 0 deletions

View File

@ -557,6 +557,14 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TransportRibbon.xaml</Link>
</None>
<None Include="resources\en-US\TransportRibbon.xaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>en-US\TransportRibbon.xaml</Link>
</None>
<None Include="resources\zh-CN\TransportRibbon.xaml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>zh-CN\TransportRibbon.xaml</Link>
</None>
<None Include="resources\TransportRibbon_16.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TransportRibbon_16.png</Link>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<RibbonControl
xmlns="clr-namespace:Autodesk.Windows;assembly=AdWindows"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Autodesk.Navisworks.Gui.Roamer.AIRLook;assembly=navisworks.gui.roamer">
<RibbonTab x:Uid="RibbonTab_Transport" Id="ID_TransportTab" Title="Logistics Planning" KeyTip="WL">
<RibbonPanel x:Uid="RibbonPanel_TransportMain">
<RibbonPanelSource x:Uid="RibbonPanelSource_TransportMain" Title="Logistics Planning" KeyTip="G">
<local:NWRibbonButton
x:Uid="RibbonButton_OpenLogisticsPanel"
Id="OpenLogisticsPanel"
Orientation="Vertical"
Size="Large"
ShowText="True"
Text="Logistics&#xA;Planning"
ToolTip="Open Logistics Planning Panel"
Image="TransportRibbon_16.png"
LargeImage="TransportRibbon_32.png"
KeyTip="P" />
</RibbonPanelSource>
</RibbonPanel>
</RibbonTab>
</RibbonControl>

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<RibbonControl
xmlns="clr-namespace:Autodesk.Windows;assembly=AdWindows"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Autodesk.Navisworks.Gui.Roamer.AIRLook;assembly=navisworks.gui.roamer">
<RibbonTab x:Uid="RibbonTab_Transport" Id="ID_TransportTab" Title="物流路径规划" KeyTip="WL">
<RibbonPanel x:Uid="RibbonPanel_TransportMain">
<RibbonPanelSource x:Uid="RibbonPanelSource_TransportMain" Title="物流路径规划" KeyTip="G">
<local:NWRibbonButton
x:Uid="RibbonButton_OpenLogisticsPanel"
Id="OpenLogisticsPanel"
Orientation="Vertical"
Size="Large"
ShowText="True"
Text="物流路径&#xA;规划"
ToolTip="打开物流路径规划面板"
Image="TransportRibbon_16.png"
LargeImage="TransportRibbon_32.png"
KeyTip="P" />
</RibbonPanelSource>
</RibbonPanel>
</RibbonTab>
</RibbonControl>

Binary file not shown.

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB