增加了两处翻译

This commit is contained in:
Sunny 2024-12-23 22:49:45 +08:00
parent c0c3298fd1
commit 65a35f5bad
3 changed files with 5 additions and 2 deletions

View File

@ -453,7 +453,7 @@ namespace Sunny.UI
if (info.CheckEmpty && edit.Text.IsNullOrEmpty())
{
this.ShowWarningTip(edit, info.Text + "不能为空");
this.ShowWarningTip(edit, info.Text + Environment.NewLine + UIStyles.CurrentResources.EditorCantEmpty);
edit.Focus();
return false;
}

View File

@ -51,7 +51,7 @@ namespace Sunny.UI
if (CheckInputEmpty)
{
bool result = edit.Text.IsValid();
if (!result) this.ShowWarningDialog("编辑框内容不能为空。");
if (!result) this.ShowWarningDialog(UIStyles.CurrentResources.EditorCantEmpty);
return result;
}

View File

@ -75,6 +75,7 @@ namespace Sunny.UI
public override string Open { get; set; } = "Open";
public override string Save { get; set; } = "Save";
public override string All { get; set; } = "All";
public override string EditorCantEmpty { get; set; } = "The editor content cannot be empty.";
}
/// <summary>
@ -288,5 +289,7 @@ namespace Sunny.UI
public virtual string Save { get; set; } = "保存";
public virtual string All { get; set; } = "全部";
public virtual string EditorCantEmpty { get; set; } = "编辑框内容不能为空。";
}
}