From efe3308325e223fa2636996c0cee4393c1182933 Mon Sep 17 00:00:00 2001 From: CJKmkp <2564608840@qq.com> Date: Mon, 23 Feb 2026 15:45:49 +0800 Subject: [PATCH] add:i18n --- Ink Canvas/AssemblyInfo.cs | 10 +- Ink Canvas/MainWindow.xaml | 546 +++++++++++------------ Ink Canvas/Properties/Strings.en-US.resx | 251 +++++++++++ Ink Canvas/Properties/Strings.resx | 251 +++++++++++ 4 files changed, 772 insertions(+), 286 deletions(-) diff --git a/Ink Canvas/AssemblyInfo.cs b/Ink Canvas/AssemblyInfo.cs index f2b3c11c..bc302a01 100644 --- a/Ink Canvas/AssemblyInfo.cs +++ b/Ink Canvas/AssemblyInfo.cs @@ -19,14 +19,8 @@ using System.Windows; // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] -//In order to begin building localizable applications, set -//CultureYouAreCodingWith in your .csproj file -//inside a . For example, if you are using US english -//in your source files, set the to en-US. Then uncomment -//the NeutralResourceLanguage attribute below. Update the "en-US" in -//the line below to match the UICulture setting in the project file. - -//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] +// i18n: 默认/回退语言为简体中文,与 Strings.resx 默认文案一致。 +[assembly: System.Resources.NeutralResourcesLanguage("zh-CN", System.Resources.UltimateResourceFallbackLocation.MainAssembly)] [assembly: ThemeInfo( diff --git a/Ink Canvas/MainWindow.xaml b/Ink Canvas/MainWindow.xaml index 247fdc67..8bfcafac 100644 --- a/Ink Canvas/MainWindow.xaml +++ b/Ink Canvas/MainWindow.xaml @@ -615,60 +615,60 @@ IsOn="False" FontFamily="Microsoft YaHei UI" FontWeight="Bold" Toggled="ToggleSwitchUIAccessTopMost_Toggled" /> - + - + - + - - - - + -