支持翻译原汤化原食 fix #349

经过核对, 不会对 automtl 造成问题
automtl居然提前为这种情况做出了应对, 太强了
This commit is contained in:
ZouJin 2024-04-12 22:20:54 +08:00
parent 344053ff4a
commit a117b1d6ca

View File

@ -56,10 +56,13 @@ namespace VPet_Simulator.Windows
#endif
ExtensionValue.BaseDirectory = new FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).DirectoryName;
LocalizeCore.StoreTranslation = true;
LocalizeCore.TranslateFunc = (str) => Sub.TextDeReplace(str).Translate();
CultureInfo.CurrentCulture = new CultureInfo(CultureInfo.CurrentCulture.Name);
CultureInfo.CurrentCulture.NumberFormat = new CultureInfo("en-US").NumberFormat;
//判断是不是Steam用户,因为本软件会发布到Steam
//在 https://store.steampowered.com/app/1920960/VPet
try