图5显示了资源文件结构。
添加其他的资源文件,例如CSS文件。
这只需创建并维护附加的资源文件即可。
It's simply a matter of creating and maintaining additional resource files.
该技术涉及复制和维护已本地化的资源文件。
This technique involves copying and maintaining localized resource files.
GTK +资源文件还提供定制外观的方法。
GTK + resource files also provide a means to customize the look and feel.
为此,您需要为要支持的每种语言创建单独的资源文件。
To do this you need to create a separate resource file for each spoken language that you need to support.
您不会希望图像的二进制文件存储在每一个资源文件中!
You wouldn't want the image binaries to reside in every resource file!
VisualStudio 2005中的资源文件
为了从资源文件检索字符串和图片,您需要执行下列步骤。
To retrieve the string and image from the resource file, you need to do the following.
我解释的大部分概念也将适用于在类库dll中使用资源文件。
Most of the concepts I explain will apply to using resource files in a class library DLL as well.
图3展示了在一个资源文件中XML数据的一个缩减样本的示例。
Figure 3 shows a skimmed-down example of the XML data found inside a resource file.
要用不同的语言来显示本地字符串,就需要准备不同地区的资源文件。
To display the native strings in different languages, you need to prepare the resource files for different locales.
正如您看到的,使用强类型资源类访问资源文件中的字符串比较简单。
As you can see, accessing strings from a resource file using a strongly typed resource class is pretty easy.
为了添加资源文件,您可以点击Add(参见图13),然后点击OK。
To add resource files, click add (see Figure 13), and then click OK.
二进制的资源文件必须遵守严格的格式。 (参考JSR-238规范)。
The binary resource file has a strict format to follow (refer to the JSR-238 specification).
该类会在一个资源文件之中进行声明,而其名必须匹配iscope属性的值。
This class is declared in one of the resource files, and its name must match the value of the iScope attribute.
还必须确保应用程序中的代码能够确定正确的路径,以及在运行时加载资源文件。
You must also make sure that code inside the application can determine the correct path and load the resource files at run time.
打开测试对象图,然后将作为GUI显示值的属性值,更改为资源文件的密钥名。
Open the test object map, and then change the property values that are GUI display values to key names of the resource files.
当一个资源文件包含在其他资源文件中时,该资源文件的路径必须遵循以下格式。
When a resource file is included in other resource files, the file path to the included file should be in the format.
资源文件包括要本地化的字符串,如果有图片的话,也要将其包含在资源文件里面。
The resource files will contain the strings to localize. If you have images, include them in the resource as well.
尽管图中的XML片段不是完整的资源文件,但可以使您大致了解其内部内容。
While the XML fragment in the figure isn't a complete resource file, it gives you a general idea of what's inside one.
当定义文件包含一个资源文件时,资源文件的文件路径必须相对于定义文件的位置。
When a resource file is included in the definition file, the file path to the included file should be relative to the location of the definition file.
这些代码首先从资源文件中读出要使用的字体的名称和大小(第64行到第70行)。
They first read in the resource file the name and size of the font to be used (lines 64 through 70).
现在,我将重点说明如何在基于Windows窗体的应用程序中使用资源文件。
Now I am going to focus on using resource files in a Windows Forms-based application.
现在我将演示如何使用ResourceManager来管理不同地区的资源文件。
Now I'll show how you use ResourceManager to manage your resource files for different locales.
例如,将英文资源文件复制到日本资源文件中,然后在每一个值的前面添加一些日本字符。
For example, copy the English resource file to the Japanese one, then add some Japanese characters in front of each value.
它首先尝试在面板资源文件中查找关键字,然后是页面资源文件,最后才是应用资源文件。
It first tries to find the key in the panel resource file, then the page resource file and finally the application resource file.
VisualStudio 2005通过提供一个可视编辑器,使您能轻松使用资源文件。
Visual Studio 2005 makes it easy to work with resource files by supplying a visual editor.
VisualStudio 2005通过提供一个可视编辑器,使您能轻松使用资源文件。
Visual Studio 2005 makes it easy to work with resource files by supplying a visual editor.
应用推荐