Strings.resx本地化不是在.net程序安装是在、程序、Strings、resx

由网友(我好想拉住流年)分享简介:我有一个.NET应用程序。它有一个Strings.resx文件,连同Strings.es.resx,多以本地化。I have a .Net application. It has a Strings.resx file, along with Strings.es.resx, and many more local...

我有一个.NET应用程序。它有一个Strings.resx文件,连同Strings.es.resx,多以本地化。

I have a .Net application. It has a Strings.resx file, along with Strings.es.resx, and many more localizations.

一切工作正常,在Visual Studio中,如果我使用调试或发布模式。

Everything works fine in Visual Studio, if I am using debug or release mode.

但是,当我建立我的安装包,并安装该软件,就好像翻译缺失。当我改变了荷兰的程序语言为西班牙语译成英语,只有默认的字符串使用。

But, when I build my install package, and install the software, it's as if the translations are missing. When I change the programs language from Dutch to Spanish to English, only the default strings are used.

这是不具有重新启动程序有问题。我保存用户期望的语言。我然后将其设置不例外。

This isn't a problem with having to restart the program. I save the users expected language. I then set it without exceptions.

看来翻译是从我的安装包不见了。为什么呢?

It seems the translations are missing from my install package. Why?

推荐答案

部署项目有项目输出,但是这并没有包含字符串的文件。我不得不手动添加本地化资源的部署项目,通过添加 - >项目输出 - >本地化资源的方式。

The deployment project had the project output, but that did not include the string files. I had to manually add the localized resources to the deployment project, by way of Add->Project Output->Localized Resources.

阅读全文

相关推荐

最新文章