DevExpress14.2.5汉化方法
把解压出来的资源文件放在一个文件夹,起名如zh-CN等放到您应用程序的bin目录下。
然后再您应用程序代码的Main中加入以下代码即可
static void Main() {
// The following line provides localization for the application's user interface.
System.Threading.Thread.CurrentThread.CurrentUICulture =
new System.Globalization.CultureInfo("zh-CN");
// The following line provides localization for data formats.
System.Threading.Thread.CurrentThread.CurrentCulture =
new System.Globalization.CultureInfo("zh-CN");
// Note that the above code should be added BEFORE calling the Run() method.
Application.Run(new Form1());
}
并且把文件夹包含到项目中,发布以后客户端也可以汉化了。
页:
[1]