vs2013 本地化

来源:互联网 发布:电脑小说阅读软件 编辑:程序博客网 时间:2024/06/06 00:35


第一步:需要为项目的 .csproj 文件,在第一个元素 <PropertyGroup> 中的任意一个地方,添加元素: <UICulture>en</UICulture>
当然你也可以选择使用 zh-Hans 中文作为默认文化)


选择 VS2013开发人员命令提示 即可。


1、在命令行中输入:msbuild /t:updateuid [你的.csproj文件路径] 
   如:msbuild /t:updateuid E:\Works\2014\C#\MTS.TestSuite.StartPage.Plugin-Edited-12-06\Implementation\MTS.TestSuite.StartPage.Plugin.Implementation.csproj


2、在DOS下使用 LocBaml 工具命令: locbaml /parse [你的资源文件路径]
   如:locbaml /parse en\MTS.TestSuite.StartPage.Plugin.Implementation.resources.dll


3、翻译; 


4、生成命令:
locbaml /generate en\MTS.TestSuite.StartPage.Plugin.Implementation.resources.dll /trans:MTS.TestSuite.StartPage.Plugin.Implementation.resources.zh-Hans.txt /cul:zh-Hans /out:zh-Hans


locbaml /generate en\MTS.TestSuite.StartPage.Plugin.Implementation.resources.dll /trans:zh.txt /cul:zh-Hans /out:zh-Hans
0 0