什么是卫星组装? [英] What is a satellite assembly?

查看:281
本文介绍了什么是卫星组装?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是卫星组装,以及何时使用它们?

What is a satellite assembly, and when should they be used?

推荐答案

从MSDN的定义说,这样的事情:包含针对特定的语言使用的卫星集资源.NET Framework程序集,您可以将资源在不同的组件不同的语言,和正确的组件被装入仅当用户选择以查看该语言应用程序存储器。

A definition from MSDN says something like this: "A .NET Framework assembly containing resources specific to a given language. Using satellite assemblies, you can place the resources for different languages in different assemblies, and the correct assembly is loaded into memory only if the user elects to view the application in that language."

这意味着你开发一个默认语言的应用程序,并增加了灵活性与变化中的语言环境作出反应。说,例如,你在开发的EN-US区域应用程序。现在,你的应用程序的多语言支持。当您部署code,比方说,印度,你要显示的标签,在国家语言是英语以外的显示信息。

This means that you develop your application in a default language and add flexibility to react with change in the locale. Say, for example, you developed your application in an en-US locale. Now, your application has multilingual support. When you deploy your code in, say, India, you want to show labels, messages shown in the national language which is other than English.

卫星组件给这种灵活性。创建与翻译的字符串任何简单的文本文件,创建资源,并把它们扔进垃圾桶\ debug文件夹中。而已。下一次,你的code将读取当前线程的CurrentCulture属性,并相应地加载相应的资源。

Satellite assemblies give this flexibility. You create any simple text file with translated strings, create resources, and put them into the bin\debug folder. That's it. The next time, your code will read the CurrentCulture property of the current thread and accordingly load the appropriate resource.

这篇关于什么是卫星组装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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