多语言资源文件 [英] Resources Files for multilingual

查看:64
本文介绍了多语言资源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发一个多语言包.该软件包包含4种用于不同语言的资源文件.当我通过选择F5在Visual Studio IDE中运行该应用程序时,该应用程序将正确显示消息.但是,当我创建安装程序包时,会看到以下消息:

找不到适合于指定区域性或中性区域性的任何资源.确保在编译时已将"dhdhshdhd.Messages.resources"正确嵌入或链接到程序集"dhdhshdhd"中,或者确保所有必需的卫星组件均已加载完整签名.


有人能告诉我我需要做什么吗?我已经搜索过Google,但大多数网站都在谈论Biz Talk和等等吗?

非常感谢
Behzad

Hello All,

I am developing a multilingual package. This package contains 4 resources files for different languages. When I run the application within Visual studio IDE by selecting F5 the application correctly display the messages. However, when I create a installation package i see the message below:

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "dhdhshdhd.Messages.resources" was correctly embedded or linked into assembly "dhdhshdhd" at compile time, or that all the satellite assembilies required are loaded fully signed.


could any body tell me what is it I need to do please? I have already searched Google but most sites talk about Biz talk and blah blah?

Many thanks
Behzad

推荐答案

由于这可以在Visual Studio中使用,但不适用于安装包,因此我认为您的安装包没有正确设置.最可能的问题是您没有将资源文件作为安装文件的一部分包含在内.运行安装程序时,浏览到包含可执行文件的文件夹.检查资源文件是否在那里.如果不是,请尝试将其手动复制到该文件夹​​,然后再次运行该应用程序.如果可行,解决方案是将它们简单地包含在安装项目中,作为要复制的文件.

另一个选择是将资源文件上的选项更改为要嵌入的资源.重新编译,然后重新生成您的安装文件.那应该使它们成为您应用程序的一部分.对于语言文件而言,它并不总是理想的选择,但它可能会解决您的问题.
Since this works from Visual Studio but not in the installation package, my assumption would be that your installation package is not set up properly. The most likely issue is that you have not included the resource files as part of your setup file. When you run the setup, browse to the folder that holds your executable. Check to see if the resource files are there. If not, try manually copying them to that folder and then run the application again. If it works, the solution would be to simply include them in the setup project as files to be copied.

Another option would be to change the option on the resource files to be embedded resources. Recompile and then rebuild your setup file. That should bring them over as part of your application. It isn''t always the ideal for a language file, but it might solve your issue.


我发现要选择安装程序中的本地化资源.这种选择基本上是本地化的资源,其中包含每种文化资源的附属程序集.
I found that Localized resources from setup is to be selected. This selection basically Localized resources which contains the satellite assemblies for each culture''s resources.


这篇关于多语言资源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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