Developer's Guide

Globalization

This topic explains the implementation of Globalization in the COMOSUI infrastructure.

The COMSOSUI infrastructure is composed of the following of components that may contain strings that are locale sensitive.

The web components provided by the COSMOS UI infrastructure are developed using the Dojo toolkit. Therefore, it is expected that the you follow the Dojo globalization model to externalize locale sensitive strings.

Similarly, when developing data feeds, it is expected strings are externalized using the programming model the data feed is developed under. For example, a data feed would use Java resource bundles to externalize strings.

As mentioned in the Macro Language section, configuration files can externalize their strings based on Java resource bundles. This is possible because the configuration files are processed by a Java based component. This Java-based component loads property files based on the WIDGET_BUNDLE_NAME context parameter defined in the web.xml file of the web application. The context parameter defines a list of bundles that are loaded before processing the configuration files. The following shows the context parameter definition in a web.xml file. Note that two bundles are specified.

	<context-param>
		<param-name>WIDGET_BUNDLE_NAME</param-name>
		<param-value>org.eclipse.cosmos.examples.e2e.dr.views.messages,org.eclipse.cosmos.examples.e2e.dr.views.config</param-value>		
	</context-param>


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]