如果指定的资源束和键存在,将使用它们。
If the specified resource bundle and key exist, they will be used.
请注意它们使用资源束来获取呈现的文本。
Notice that they use resource bundles to grab the rendered text.
资源束虽然有用,但作用有限。
可以根据JVM的语言环境装入不同的资源束。
Different resource bundles can be loaded according to the locale of the JVM.
要访问资源束中的文本字符串,使用标记库的text方法。
To get access to a text string in a resource bundle, we use the text method of the tag library.
用JSTL显示这样的本地化内容,第一步就是指定资源束。
The first step in displaying such localized content with JSTL is to specify the resource bundle.
basename属性是必需的,它标识了设为缺省值的资源束。
The basename attribute is required, and identifies the resource bundle to be set as the default.
可选的scope属性指明缺省资源束设置所应用的JSP 作用域。
The optional scope attribute indicates the JSP scope that the setting of the default resource bundle applies to.
将源代码中的可翻译文本外部化为消息文件,数据表或者资源束文件。
Externalizing translatable text in source code into message files, database tables or resource bundles.
因为资源束从类路径装入,所以代码并不依赖于能够读取JVM命令行参数的能力。
Because resource bundles are loaded from the classpath, the code isn't dependent on being able to read the JVM's command-line parameters.
本质上,MessageStore是一个资源束,它带有用来报告解析错误的消息。
MessageStore is essentially a resource bundle with the messages used to report parsing errors.
您可以使用bundle属性来指定一个显式的资源束,用来查找由ke y属性标识的消息。
You can use the bundle attribute to specify an explicit resource bundle for looking up the message identified by the key attribute.
如果指定了可选的var属性,那么将把由basename属性所标识的资源束赋给该属性值所命名的变量。
If the optional var attribute is specified, then the resource bundle identified by the basename attribute will be assigned to the variable named by this attribute's value.
尽管这个示例中没显示,但修改stylebean类,从而使init方法可以打开恰当的CSS,而不必引用属性资源束,这也是可能的。
Although not shown in this example, it is also possible to modify the StyleBean class so that the init method could open the appropriate CSS, instead of referencing the properties resource bundle.
图7和图8演示了正在工作的fmt库与消息相关的标记,显示了由清单 7中代码所产生的输出,以及 清单4和 清单5中的本地化资源束。
Figure 7 and Figure 8 show the fmt library's message-related tags in action, showing the output resulting from the code in Listing 7 and the localized resource bundles in Listing 4 and Listing 5.
服务和资源分别被打包成束,这些束作为应用程序的传递单元的文件。
Services and resources are packaged into bundles, which are files that serve as the delivery unit for applications.
在追求汽车使用性和小型化的今天,粗大的线束不但占用了汽车上宝贵的空间资源,而且越来越难被安装在隐蔽位置。
In nowadays, we pursue the miniaturization of automobile, but the wide and big wire take many valued space on automobile, and become harder to install at privy space.
在追求汽车使用性和小型化的今天,粗大的线束不但占用了汽车上宝贵的空间资源,而且越来越难被安装在隐蔽位置。
In nowadays, we pursue the miniaturization of automobile, but the wide and big wire take many valued space on automobile, and become harder to install at privy space.
应用推荐