* UIComboDataGridViewItem: 增加多语翻译

This commit is contained in:
Sunny 2023-03-29 13:56:10 +08:00
parent 4727af34cd
commit 70eb76fa9e
2 changed files with 39 additions and 0 deletions

View File

@ -216,6 +216,16 @@ namespace Sunny.UI
/// 今天
/// </summary>
public static string Today = "今天";
/// <summary>
/// 搜索
/// </summary>
public static string Search = "搜索";
/// <summary>
/// 清除
/// </summary>
public static string Clear = "清除";
}
/// <summary>
@ -271,6 +281,9 @@ namespace Sunny.UI
UILocalize.Today = "Today";
UILocalize.Search = "Search";
UILocalize.Clear = "Clear";
UIStyles.Translate();
}
@ -323,6 +336,9 @@ namespace Sunny.UI
UILocalize.Today = "今天";
UILocalize.Search = "搜索";
UILocalize.Clear = "清除";
UIStyles.Translate();
}
}

View File

@ -1,3 +1,24 @@
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2023 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@QQ.Com
*
* Blog: https://www.cnblogs.com/yhuse
* Gitee: https://gitee.com/yhuse/SunnyUI
* GitHub: https://github.com/yhuse/SunnyUI
*
* SunnyUI.dll can be used for free under the GPL-3.0 license.
* If you use this code, please keep this note.
* 使
******************************************************************************
* : UIComboDataGridViewItem.cs
* :
* : V3.1
* : 2020-01-01
*
* 2023-03-29: V3.3.3
******************************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
@ -62,6 +83,8 @@ namespace Sunny.UI
{
btnOK.Text = UILocalize.OK;
btnCancel.Text = UILocalize.Cancel;
btnClear.Text = UILocalize.Clear;
btnSearch.Text = UILocalize.Search;
}
public bool ShowButtons