新增翻译 消息框的功能

This commit is contained in:
ZouJin 2024-05-14 00:55:27 +08:00
parent 7a44a34e8f
commit 1745a8f351
4 changed files with 22 additions and 3 deletions

View File

@ -3,6 +3,7 @@ using LinePutScript.Dictionary;
using LinePutScript.Localization.WPF;
using NAudio.CoreAudioApi;
using Panuon.WPF.UI;
using Panuon.WPF.UI.Configurations;
using Steamworks;
using System;
using System.Collections.Generic;
@ -1430,7 +1431,16 @@ namespace VPet_Simulator.Windows
}
await Dispatcher.InvokeAsync(new Action(() => LoadingText.Content = "尝试加载游戏MOD".Translate()));
await Dispatcher.InvokeAsync(() =>
{
MessageBoxXSettings.Setting.OKButtonContent = "好的".Translate();
MessageBoxXSettings.Setting.CancelButtonContent = "取消".Translate();
MessageBoxXSettings.Setting.YesButtonContent = "是".Translate();
MessageBoxXSettings.Setting.NoButtonContent = "否".Translate();
PendingBoxSettings.Setting.CancelButtonContent = "取消".Translate();
LoadingText.Content = "尝试加载游戏MOD".Translate();
});
//旧版本设置兼容
if (Set.PetGraph == "默认虚拟桌宠")

View File

@ -84,4 +84,7 @@ OPPOSans R#OPPOSans R:|
已将当前选择 {0} 设为默认启动存档#The current selection {0} has been set as the default startup archive:|
默认#Default:|
设置当前多开存档为默认启动项#Set the current multi-save archive as the default startup item:|
检测到游戏库中包含使命召唤,建议不要在运行COD时运行桌宠\n根据社区反馈, COD可能会误报桌宠为作弊软件#It is detected that the game library contains Call of Duty. It is recommended not to run the desktop pet while running COD\nAccording to community feedback, COD may misreport the desktop pet as cheating software:|
检测到游戏库中包含使命召唤,建议不要在运行COD时运行桌宠\n根据社区反馈, COD可能会误报桌宠为作弊软件#It is detected that the game library contains Call of Duty. It is recommended not to run the desktop pet while running COD\nAccording to community feedback, COD may misreport the desktop pet as cheating software:|
好的#OK:|
是#Yes:|
否#No:|

View File

@ -84,4 +84,7 @@ OPPOSans R#OPPOSans R:|
已将当前选择 {0} 设为默认启动存档#已将当前选择 {0} 设为默认启动存档:|
默认#默认:|
设置当前多开存档为默认启动项#设置当前多开存档为默认启动项:|
检测到游戏库中包含使命召唤,建议不要在运行COD时运行桌宠\n根据社区反馈, COD可能会误报桌宠为作弊软件#检测到游戏库中包含使命召唤,建议不要在运行COD时运行桌宠\n根据社区反馈, COD可能会误报桌宠为作弊软件:|
检测到游戏库中包含使命召唤,建议不要在运行COD时运行桌宠\n根据社区反馈, COD可能会误报桌宠为作弊软件#检测到游戏库中包含使命召唤,建议不要在运行COD时运行桌宠\n根据社区反馈, COD可能会误报桌宠为作弊软件:|
好的#好的:|
是#是:|
否#否:|

View File

@ -85,3 +85,6 @@ OPPOSans R#OPPOSans R:|
默认#預設:|
设置当前多开存档为默认启动项#設定目前的多開存檔為預設啟動項:|
检测到游戏库中包含使命召唤,建议不要在运行COD时运行桌宠\n根据社区反馈, COD可能会误报桌宠为作弊软件#偵測到收藏庫中擁有決勝時刻建議不要在運行CoD時執行桌寵\n依據社群回報CoD可能會誤報桌寵為作弊軟體:|
好的#好的:|
是#是:|
否#否:|