wpf I18N C# 应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12862407/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
I18N C# Application
提问by David
I got a C# application, and I want to I18N it. I am using Visual Studio 2010.
我有一个 C# 应用程序,我想 I18N 它。我正在使用 Visual Studio 2010。
I got some resource files, in several projects, they only contain texts.
For example:
Project1
Strings.resx
Project2
Strings.resx
Project3
Strings.resx
我得到了一些资源文件,在几个项目中,它们只包含文本。
例如:
Project1
Strings.resx
Project2
Strings.resx
Project3
Strings.resx
Lets say I want to have French translation, so each projects will have Strings.fr.resx.
I need to ask someone, who is not programmer and doesn't have VS, to do the translation.
How am I go about to do this?
Is there any tools (built-in or 3rd party) I can use?
假设我想要法语翻译,所以每个项目都会有 Strings.fr.resx。我需要请一个不是程序员也没有VS的人来做翻译。
我该怎么做?
我可以使用任何工具(内置或第 3 方)吗?
For example, convert the resource files into some readable format, and convert back to resource files after translated.
例如,将资源文件转换成某种可读的格式,翻译后再转换回资源文件。
回答by Colin Pickard
You're in luck; .NET has extensive localization built in. You can find the online documentation for it here: Globalizing and Localizing .NET Framework Applications
你很幸运;.NET 内置了大量本地化。您可以在此处找到它的在线文档:全球化和本地化 .NET Framework 应用程序
To answer the specific point about converting resource files into readable format, you may want to look at Resgen.exe (Resource File Generator)which comes with visual studio or the windows sdk.
要回答有关将资源文件转换为可读格式的具体问题,您可能需要查看Visual Studio 或 windows sdk 附带的Resgen.exe(资源文件生成器)。

