First page Back Continue Last page Text

oracle adf workshop

Notes:


Steps to Internationalize an Application

To internationalize your application, you need to do the following:

Create a base resource bundle that contains all the text strings that are not part of the components themselves. This is a text file with a .properties extension that contains key/value pairs: the key is the name of the text resource and the value is the translation. For example: CANCEL=Cancel This bundle should be in the default language of the application.

Create a localized version of the bundle for each locale supported by the application. You can copy the resource bundle file to another file and append the file name with an underscore and the language code, such as _de for German. For example, if the resource bundle file name is StorefrontUIBundle.properties, you would name the German resource bundle StorefrontUIBundle_de.properties. Then translate the values in the file. For example: CANCEL=Annullieren

Register the locales with the application. You do this on the Application page of the faces-config.xml. (Click the Overview tab at the foot of the faces-config.xml file, and then select Application from the list at the top left. You can specify a default locale and add supported locales in the Locale Config area.)