3.5 Customizing or Adding Resource Bundles

One method of customizing label is by overriding values for existing keys defined in the resource bundle, but new keys cannot be added.

Because a new key cannot be defined in the shipped resource bundle, a new override bundle needs to be created. This can be accomplished in JDeveloper by creating an XLIFF file from the New Gallery. After the file is generated, new keys and their associated text in the XLIFF file can be entered.
To make the newly created resource bundle available for customization, the resource bundle needs to be registered with the customization project. Newly created resource bundle can be present in customization project or as a separate project. To register the resource bundle with customization project, package it into an ADF Library JAR file, and import the JAR file into the customization project.

Figure 3-2 Adding Resource Bundles 1



Step to override a message bundle which already exists in model or ui jar, is shown below:

  1. Open the JDeveloper in Default role, select the application, click on Application (Menu)  Application Properties. Select Resource Bundles, add the resource bundles here from jars present under lib folder and check Overridden check box. This will register the all selected bundles with adf-config.xml file.

    Figure 3-3 Adding Resource Bundles 2



    Figure 3-4 Adding Resource Bundles 3



  2. The Edit or Override Resource Bundles, Go to Customization Role, Select Edit Resource Bundle present under Application Menu. Navigate to the XLIFF Bundle that needs to overridden from the jar under lib folder.

    Figure 3-5 Adding Resource Bundles 4



  3. Change Display Value for the Key as per requirement.

    Figure 3-6 Adding Resource Bundles 5



  4. Once changes are submitted, the override resource bundle folder would be created with overridden values.

    Figure 3-7 Adding Resource Bundles 6