[Localization] Move native menu strings to localization resources.

This commit is contained in:
2025-07-08 18:22:16 +01:00
parent d041e7b1b3
commit 78e39e1a62
4 changed files with 684 additions and 1031 deletions

View File

@@ -1,21 +1,21 @@
<Application xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:RomRepoMgr"
xmlns:resources="clr-namespace:RomRepoMgr.Resources"
x:Class="RomRepoMgr.App">
<Application.DataTemplates>
<local:ViewLocator />
</Application.DataTemplates>
<Application.Styles>
<FluentTheme />
<StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml"/>
<FluentTheme /> <StyleInclude Source="avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml" />
</Application.Styles>
<NativeMenu.Menu>
<NativeMenu>
<NativeMenuItem Header="_About"
<NativeMenuItem Header="{x:Static resources:Localization.HelpMenuAboutText}"
Click="OnAboutClicked" />
<NativeMenuItem Header="_Preferences"
<NativeMenuItem Header="{x:Static resources:Localization.NativeMenuPreferencesText}"
Click="OnPreferencesClicked" />
<NativeMenuItem Header="_Quit"
<NativeMenuItem Header="{x:Static resources:Localization.NativeMenuQuitText}"
Click="OnQuitClicked" />
</NativeMenu>
</NativeMenu.Menu>

File diff suppressed because it is too large Load Diff

View File

@@ -372,4 +372,10 @@ Tardará mucho tiempo...</value>
<data name="UpdateStatsTitle" xml:space="preserve">
<value>Actualizando estadísticas de sets de ROMs</value>
</data>
<data name="NativeMenuPreferencesText" xml:space="preserve">
<value>_Preferencias</value>
</data>
<data name="NativeMenuQuitText" xml:space="preserve">
<value>_Salir</value>
</data>
</root>

View File

@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8" ?>
<root>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" id="root"
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
id="root"
xmlns="">
<xsd:element name="root" msdata:IsDataSet="true"></xsd:element>
</xsd:schema>
@@ -379,4 +380,10 @@ This will take a long time...</value>
<data name="RetrievingRomSetsFromDatabase" xml:space="preserve">
<value>Retrieving ROM sets from database...</value>
</data>
<data name="NativeMenuPreferencesText" xml:space="preserve">
<value>_Preferences</value>
</data>
<data name="NativeMenuQuitText" xml:space="preserve">
<value>_Quit</value>
</data>
</root>