增加了两处翻译
This commit is contained in:
parent
c0c3298fd1
commit
65a35f5bad
@ -453,7 +453,7 @@ namespace Sunny.UI
|
|||||||
|
|
||||||
if (info.CheckEmpty && edit.Text.IsNullOrEmpty())
|
if (info.CheckEmpty && edit.Text.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
this.ShowWarningTip(edit, info.Text + "不能为空");
|
this.ShowWarningTip(edit, info.Text + Environment.NewLine + UIStyles.CurrentResources.EditorCantEmpty);
|
||||||
edit.Focus();
|
edit.Focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,7 @@ namespace Sunny.UI
|
|||||||
if (CheckInputEmpty)
|
if (CheckInputEmpty)
|
||||||
{
|
{
|
||||||
bool result = edit.Text.IsValid();
|
bool result = edit.Text.IsValid();
|
||||||
if (!result) this.ShowWarningDialog("编辑框内容不能为空。");
|
if (!result) this.ShowWarningDialog(UIStyles.CurrentResources.EditorCantEmpty);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@ namespace Sunny.UI
|
|||||||
public override string Open { get; set; } = "Open";
|
public override string Open { get; set; } = "Open";
|
||||||
public override string Save { get; set; } = "Save";
|
public override string Save { get; set; } = "Save";
|
||||||
public override string All { get; set; } = "All";
|
public override string All { get; set; } = "All";
|
||||||
|
public override string EditorCantEmpty { get; set; } = "The editor content cannot be empty.";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -288,5 +289,7 @@ namespace Sunny.UI
|
|||||||
public virtual string Save { get; set; } = "保存";
|
public virtual string Save { get; set; } = "保存";
|
||||||
|
|
||||||
public virtual string All { get; set; } = "全部";
|
public virtual string All { get; set; } = "全部";
|
||||||
|
|
||||||
|
public virtual string EditorCantEmpty { get; set; } = "编辑框内容不能为空。";
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user