Isolate translatable text in resource bundles.
在资源包中分离出可翻译文本。
Enable resource bundles for localized portlet titles.
支持对本地化的portlet标题使用资源绑定。
Notice that they use resource bundles to grab the rendered text.
请注意它们使用资源束来获取呈现的文本。
Different resource bundles can be loaded according to the locale of the JVM.
可以根据JVM的语言环境装入不同的资源束。
Add the resource bundles for National Language Support by doing the following.
执行以下操作,添加区域语言支持的资源包。
Using Ajax with resource bundles is another option that can make your life easier.
联合使用Ajax和资源包是另一种可以简化工作的方式。
The resource bundles representing the various locales are imported to the database.
表示各种区域设置(locale)的资源绑定被导入数据库。
You can add new strings to the theme by adding new resource bundles to this directory.
您可以通过添加新的资源包到这个目录来增加新的字符串到主题。
Externalizing translatable text in source code into message files, database tables or resource bundles.
将源代码中的可翻译文本外部化为消息文件,数据表或者资源束文件。
This article focuses on the use of Ajax and resource bundles for localized client-side validation messaging.
本文所侧重的是联合使用Ajax和资源包来实现本地化后的客户端验证消息处理。
You can easily build a localized version of the page using resource bundles (locale-specific property files) on the server side.
使用资源包(特定于本地语言环境的属性文件)在服务器端构建此页面的本地化版本很容易。
Because resource bundles are loaded from the classpath, the code isn't dependent on being able to read the JVM's command-line parameters.
因为资源束从类路径装入,所以代码并不依赖于能够读取JVM命令行参数的能力。
Web servers can read the preferred locale of a user when that user requests a Web page and, using these resource bundles, can respond appropriately.
当用户请求Web页面时,Web服务器能够读取该用户的首选语言环境,并能够使用这些资源包适当地进行响应。
Suffice it to say for now that resource bundles consist of a collection of files that contain translations for different regions or, more precisely, locales.
至于现在,只要说资源包是由一个文件集合组成的,而这些文件包含不同地区或者更确切地说是不同语言环境的翻译就足够了。
While moving text messages into resource bundles is at least half the work, don't forget about dealing with locale-centric Numbers and currency displays, too.
虽然把文本消息转移到资源包中至少完成了工作的一半,但是也不要忘了处理与地区密切相关的数值和货币显示。
To overcome this problem, I used an Eclipse plugin called Eclipse ResourceBundle Editor, which allows you to convert and create resource bundles for different languages.
为了克服这个问题,我使用了一个称为EclipseResourceBundleEditor的Eclipse插件,它允许您为不同语言转换并创建资源包。
The solution exploits J2SE support for locale in a resource bundle to pull in the locale-specific text string when required (see Resources for more information on J2SE resource bundles).
这个解决方案利用了J2SE在资源绑定中对地区的支持,只在需要的时候才采用特定于地区的文本字符串(请参阅参考资料,以了解更多关于 J2SE 资源绑定的信息)。
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.
图7和图8演示了正在工作的fmt库与消息相关的标记,显示了由清单 7中代码所产生的输出,以及 清单4和 清单5中的本地化资源束。
Listing 3: Resource bundles for different English locales.
清单3:针对不同英语语言环境的资源包。
Listing 3: Resource bundles for different English locales.
清单3:针对不同英语语言环境的资源包。
应用推荐