Strings.resx本地化不是在.net程序安装 [英] Strings.resx Localizations not Installing in .Net Program

查看:175
本文介绍了Strings.resx本地化不是在.net程序安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.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.

这篇关于Strings.resx本地化不是在.net程序安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆