开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 2776|回复: 0

DevExpress14.2.5汉化方法

[复制链接]

0

精华

0

贡献

48

赞扬

帖子
31
软币
393
在线时间
30 小时
注册时间
2013-9-6
发表于 2015-6-12 15:12:02 | 显示全部楼层 |阅读模式

把解压出来的资源文件放在一个文件夹,起名如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());
}
并且把文件夹包含到项目中,发布以后客户端也可以汉化了。

回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-5-15 19:34

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表