Fix translation scrape for TechRecordEditor

This commit is contained in:
Lusamine 2023-10-15 10:35:01 -05:00
parent 7efa575eb0
commit 8d409be8ba
2 changed files with 4 additions and 3 deletions

View file

@ -841,6 +841,7 @@ SAV_Misc4.L_CastleRank01=回复 / 道具 / 信息
SAV_Misc4.L_Coin=代币:
SAV_Misc4.L_CurrentApp=当前App
SAV_Misc4.L_CurrentMap=当前地图
SAV_Misc4.L_PokeathlonPoints=宝可梦马拉松积分:
SAV_Misc4.L_Stat0=当前
SAV_Misc4.L_Stat1=交换
SAV_Misc4.L_Stat2=记录
@ -849,7 +850,6 @@ SAV_Misc4.L_Steps=步数:
SAV_Misc4.L_SumHall=170
SAV_Misc4.L_UGFlags=已获得旗标:
SAV_Misc4.L_Watts=瓦特:
SAV_Misc4.L_PokeathlonPoints=宝可梦马拉松积分:
SAV_Misc4.RB_Stats3_01=等级50
SAV_Misc4.RB_Stats3_02=打开
SAV_Misc4.TAB_BF=对战开拓区

View file

@ -21,11 +21,12 @@ public partial class TechRecordEditor : Form
public TechRecordEditor(ITechRecord techRecord, PKM pk)
{
InitializeComponent();
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
Record = techRecord;
Entity = pk;
Legality = new LegalityAnalysis(pk);
InitializeComponent();
WinFormsUtil.TranslateInterface(this, Main.CurrentLanguage);
Span<ushort> currentMoves = stackalloc ushort[4];
pk.GetMoves(currentMoves);