From 9808de0396db53032a25db9288d008c2007e86fd Mon Sep 17 00:00:00 2001 From: ZouJin Date: Sun, 21 Apr 2024 00:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8EMOD=20AutoMTL=20?= =?UTF-8?q?=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VPet-Simulator.Windows/MainWindow.xaml.cs | 6 +++++- VPet-Simulator.Windows/VPet-Simulator.Windows.csproj | 2 +- .../mod/0000_core/lang/en/TextClick_v2.lps | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/VPet-Simulator.Windows/MainWindow.xaml.cs b/VPet-Simulator.Windows/MainWindow.xaml.cs index 33609a5..cd82e25 100644 --- a/VPet-Simulator.Windows/MainWindow.xaml.cs +++ b/VPet-Simulator.Windows/MainWindow.xaml.cs @@ -64,7 +64,11 @@ namespace VPet_Simulator.Windows var destr = Sub.TextDeReplace(str); if (destr == str) return str; - return destr.Translate(); + if (LocalizeCore.CurrentLPS != null && LocalizeCore.CurrentLPS.Assemblage.TryGetValue(destr, out ILine line)) + { + return line.GetString(); + } + return str; }; CultureInfo.CurrentCulture = new CultureInfo(CultureInfo.CurrentCulture.Name); diff --git a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj index f9646b8..7509048 100644 --- a/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj +++ b/VPet-Simulator.Windows/VPet-Simulator.Windows.csproj @@ -219,7 +219,7 @@ - + diff --git a/VPet-Simulator.Windows/mod/0000_core/lang/en/TextClick_v2.lps b/VPet-Simulator.Windows/mod/0000_core/lang/en/TextClick_v2.lps index d4b2193..a157dde 100644 --- a/VPet-Simulator.Windows/mod/0000_core/lang/en/TextClick_v2.lps +++ b/VPet-Simulator.Windows/mod/0000_core/lang/en/TextClick_v2.lps @@ -49,7 +49,7 @@ Hello,I am Li Hua#Hello, I am Li Hua:| 想不出来了啦!#My Brain doesn't work anymore, i need a break!:| 想写主人#I want to write soemthing about master.:| 乱写乱画中#...scribble, scribble, scribble...:| -《我与主人的故事》写好了!诶?不行吗#"My Love Story with My Master" is finished! Or? Is it?:| +《我与主人的故事》写好了!诶?不行吗#"My Story with My Master" is finished! Or? Is it?:| 我有一个好点子!#I have a great idea!:| 《我与主人的现实世界美好生活》#"My Beutiful Life in the Real World with my Master".:| 有了!#Got it!:|