开发者论坛

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

新手求助,到底该怎么才能全部汉化呢??

[复制链接]

0

精华

0

贡献

0

赞扬

帖子
9
软币
90
在线时间
1 小时
注册时间
2014-6-26
发表于 2014-6-27 11:20:00 | 显示全部楼层 |阅读模式
初来乍到,研究了一天了,还是不懂该怎么样才能彻底的汉化,跑官网看了一下价格,给跪了。。。。求大师指点!!!感激不尽!!!
回复

使用道具 举报

0

精华

677

贡献

767

赞扬

帖子
273
软币
11235
在线时间
1122 小时
注册时间
2013-6-9
发表于 2014-6-28 22:47:45 | 显示全部楼层
本帖最后由 nickcole 于 2014-7-4 20:27 编辑

把把解压出来的资源文件文件,如zh-Hans等放到您应用程序的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-Hans");

    // The following line provides localization for data formats.
    System.Threading.Thread.CurrentThread.CurrentCulture =
        new System.Globalization.CultureInfo("zh-Hans");

    // Note that the above code should be added BEFORE calling the Run() method.
    Application.Run(new Form1());
}


2014.07.04更正,原来粘贴错了。其中的zh_Hans应该为“zh-Hans”,帖子内容已经修改过了。
回复

使用道具 举报

0

精华

677

贡献

767

赞扬

帖子
273
软币
11235
在线时间
1122 小时
注册时间
2013-6-9
发表于 2014-7-4 20:02:27 | 显示全部楼层
如果您汉化不成功,请参考:http://www.dxper.net/thread-2858-1-1.html
回复

使用道具 举报

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

GMT+8, 2024-4-19 22:15

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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