Localize BIOS screen.

This commit is contained in:
Michael 2017-06-18 20:53:03 -04:00
parent 0c94c93073
commit 45c587b3a6
2 changed files with 28 additions and 2 deletions

View file

@ -16,8 +16,23 @@ namespace ShiftOS.WinForms.MainMenu
public Loading()
{
InitializeComponent();
label.Text = Localization.Parse(label.Text);
label1.Text = "AMIBIOS(C)"+ DateTime.Now.Year +" Australian Microtrends, Plc.\nShiftsoft 480-L ACPI BIOS Revision 1002\nCPU : VTC 210-N " + Environment.ProcessorCount + " CPU 1.33GHz\n Speed : 1.337Ghz\n\nPress DEL to run Setup\nPress <F8> for BBS POPUP\nDDR3 Frequency 1337MHz, Dual Channel, Linear Mode\nChecking NVRAM\n\n1337MB OK";
//Now let's do it Michael-style.
label1.Text = Localization.Parse(@"{MISC_BIOSCOPYRIGHT}
{MISC_BIOSVERSION}
{MISC_BIOSCPU}
{MISC_CLOCKSPEED}
{MISC_RUNSETUP}
{MISC_BBSPOPUP}
{MISC_RAMFREQ}
{MISC_CHECKINGNVRAM}
{MISC_RAM}", new Dictionary<string, string>
{
["%year"] = DateTime.Now.Year.ToString(),
["%cores"] = Environment.ProcessorCount.ToString()
});
}
private void Loading_FormShown(object sender, EventArgs e)

View file

@ -241,4 +241,15 @@
"{FORMATEDITOR_ARGUMENT_LOWER}": "argument",
"{FORMATEDITOR_VALUE_LOWER}": "value",
"{FORMATEDITOR_ENTERSYNTAX}": "Enter syntax here",
//BIOS screen text
"{MISC_BIOSCOPYRIGHT}": "AMIBIOS (C) %year Australian Microtrends, Plc",
"{MISC_BIOSVERSION}": "Shiftsoft 480-L ACPI BIOS Revision 1002",
"{MISC_BIOSCPU}": "CPU : VTC 210-N %cores CPU 1.33GHz",
"{MISC_CLOCKSPEED}": " Speed : 1.337Ghz",
"{MISC_RUNSETUP}": "Press DEL to run Setup",
"{MISC_BBSPOPUP}": "Press <F8> for BBS POPUP",
"{MISC_RAMFREQ}": "DDR3 Frequency 1337MHz, Dual Channel, Linear Mode",
"{MISC_CHECKINGNVRAM}": "Checking NVRAM",
"{MISC_RAM}": "1337 MB OK",
}