Extract translatable strings to static class

This commit is contained in:
Kurt
2020-04-21 12:43:16 -07:00
parent eaa805a374
commit b4f1bda2c7
12 changed files with 81 additions and 53 deletions

View File

@@ -75,8 +75,8 @@ public void HexEdit(uint offset, int length)
if (read.Length != write.Length)
{
var prompt = WinFormsUtil.Prompt(MessageBoxButtons.OKCancel,
$"Read size (0x{read.Length:X}) != Write Size (0x{write.Length})",
"Write anyway?");
string.Format(MessageStrings.MsgDataSizeMismatchRAM, read.Length, write.Length),
MessageStrings.MsgAskWriteAnyway);
if (prompt != DialogResult.OK)
return;
@@ -92,10 +92,7 @@ public void PopPrompt()
if (Settings.SysBotPrompted)
return;
const string info = "This SysBot reads and writes RAM directly to your game when called to Read/Write.";
const string reqd = "Using this functionality requires the sys-botbase sysmodule running on the console." +
"Your console must be on the same network as the PC running this program.";
WinFormsUtil.Alert(info, reqd);
WinFormsUtil.Alert(MessageStrings.MsgSysBotInfo, MessageStrings.MsgSysBotRequired);
Settings.SysBotPrompted = true;
Settings.Save();
}