From 851d83ca51bb61c075e3501d645b9f833b4e0315 Mon Sep 17 00:00:00 2001 From: LeapwardKoex Date: Wed, 24 Apr 2024 21:40:10 +1200 Subject: [PATCH] Add initial multi language support --- App.config | 3 + MainWindow.xaml | 42 ++++--- MainWindow.xaml.cs | 23 ++-- MainWindowViewModel.cs | 140 ++++++++++++++++++++++- Properties/Settings.Designer.cs | 12 ++ Properties/Settings.settings | 3 + Resources/Strings.Designer.cs | 189 ++++++++++++++++++++++++++++++++ Resources/Strings.resx | 162 +++++++++++++++++++++++++++ Resources/Strings.zh-CN.resx | 162 +++++++++++++++++++++++++++ WpfMaiTouchEmulator.csproj | 12 ++ 10 files changed, 719 insertions(+), 29 deletions(-) create mode 100644 Resources/Strings.Designer.cs create mode 100644 Resources/Strings.resx create mode 100644 Resources/Strings.zh-CN.resx diff --git a/App.config b/App.config index 8d643b8..931ba7e 100644 --- a/App.config +++ b/App.config @@ -22,6 +22,9 @@ True + + + \ No newline at end of file diff --git a/MainWindow.xaml b/MainWindow.xaml index 08a4591..d00452c 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -3,38 +3,44 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:local="clr-namespace:WpfMaiTouchEmulator" mc:Ignorable="d" Closing="MainWindow_Closing" - Title="MainWindow" Height="282" Width="800"> - -