Skip to content

Commit

Permalink
Add English prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Coxxs committed Aug 19, 2022
1 parent c54c7f3 commit 20bbf94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LogoDiy/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private void Form1_Load(object sender, EventArgs e)
LogoDiyViewModel.Instance.CreateViewData();
if (!LogoDiyViewModel.Instance.UIIsEnable)
{
MessageBox.Show("Not supported BIOS!");
MessageBox.Show("Unsupported BIOS!\nThis application only supports Lenovo computers with newer BIOS versions.");
Application.Exit();
return;
}
Expand Down
20 changes: 10 additions & 10 deletions LogoDiy/LogoDiyViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ private void GetShowLodingIco()
Console.WriteLine("gobalsettings: " + text2);
string text3 = text2.Replace("bootuxdisabled", "").Trim();
IsShowLodingIco = text3.Contains("No");
LogoDiy.LogHelper.Info($"{text2}; 加载系统图标 = {IsShowLodingIco}");
LogoDiy.LogHelper.Info($"{text2}; 載入系統圖示 = {IsShowLodingIco}");
flag = false;
}
}
Expand Down Expand Up @@ -541,7 +541,7 @@ public void ToRecovery()
LogoDiy.LogHelper.Info($"set logoinfo error: ret = {num}");
return;
}
ShowSuccessText = "*默认设置恢复成功";
ShowSuccessText = "Done! Restored to default settings.\n預設設定恢復成功";
ShowSuccessTip = true;
FunEnable = false;
}
Expand Down Expand Up @@ -617,7 +617,7 @@ public void SaveLogoClick()
{
LogoDiy.LogHelper.Info("Set CRC success");
ChangeEFIDisk(mount: false);
ShowSuccessText = "*设置成功,请重启电脑查看效果";
ShowSuccessText = "Success! You can restart to view the new boot logo now.\n設定成功,請重新啟動電腦檢視效果";
ShowSuccessTip = true;
}
else
Expand Down Expand Up @@ -833,8 +833,8 @@ public void SelectedImageClick()
ShowSuccessTip = false;
OpenFileDialog openFileDialog = new OpenFileDialog();
openFileDialog.Multiselect = false;
openFileDialog.Title = "请选择图片";
openFileDialog.Filter = $"图片文件({filter1})|{filter2}";
openFileDialog.Title = "Please select an image / 請選擇圖片";
openFileDialog.Filter = $"Image({filter1})|{filter2}";
var res = openFileDialog.ShowDialog();
if (res == DialogResult.OK)
{
Expand All @@ -845,27 +845,27 @@ public void SelectedImageClick()
if (!ImageCheck(fileName))
{
ShowWarning = true;
ShowWarnInfo = "*当前选择的文件不是图片,请重试!";
ShowWarnInfo = "The selected file is not an image!\n當前選擇的檔案不是圖片,請重試!";
return;
}
if (fileInfo.Length > DiskFreeSpace)
{
int num = (int)(DiskFreeSpace / 1024 / 1024);
ShowWarnInfo = $"*图片不得超过{num}MB,请重新上传!";
ShowWarnInfo = $"Image must not exceed {num}MB!\n圖片不得超過{num}MB,請重新選擇!";
ShowWarning = true;
return;
}
if (IsSizeExceed(fileName))
{
ShowWarnInfo = "*图片超出最大分辨率,请重新上传!";
ShowWarnInfo = "The image exceeds the maximum resolution!\n圖片超出最大解析度,請重新選擇!";
ShowWarning = true;
return;
}
GetBitmapImage(fileName);
SetImageSize(fileName);
FunEnable = true;
ShowWarning = false;
LogoDiy.LogHelper.Info($"界面图片大小>>height = {ImageHeight}; width = {ImageWidth};");
LogoDiy.LogHelper.Info($"介面圖片大小>>height = {ImageHeight}; width = {ImageWidth};");
}
}

Expand Down Expand Up @@ -912,4 +912,4 @@ private void ChangeSupportingFormat(uint format)
SupportingFormat = filter2;
}
}
}
}

0 comments on commit 20bbf94

Please sign in to comment.