Adding language translation

IBM Director supports many languages and is used in many different countries, so you will want to start preparation to support other lanugages now.

The basic idea

  1. Create a resource bundle. The resource bundle contains pairs of displayable strings and the keys that you use to find them. More information about resource bundles can be found in the Java documentation.
  2. Tell IBM Director the name of the resource bundle.
  3. When defining extension data that a user will see, you specify a resource bundle key rather than the actual message string.


Steps to update your extension

  1. Create the resource bundle.
    1. Right-click the com.BobCo package and select New->Class.
    2. Enter a classname for the bundle
      Make the new class extend java.util.ListResourceBundle

    3. Add two strings to the resource bundle:
      1. The name of the extension
      2. The vendor name

      The final bundle will look something like this:

    4. Add the resource bundle to your extension file.
      1. Edit your extension file.
      2. Add the property twg.extension.nlsclassname and set it equal to the classname for the resource bundle. Remember to include the package name with the class name.

      Note: The values for twg.extension.name and twg.extension.vendor will now be used as keys rather than the actual string. The IBM Director Console will use the keys to look for the displayable strings inside the resource bundle.

      The final Extension File should look something like this:

    5. Redeploy the extension>
    6. Whenever you modify the extension, you need to redeploy the extension on the Director Server.

    7. Check the Product Information window.
      1. Start the IBM Director Console.
      2. Log in to the IBM Director Server and use the Help->Product Information menu.
      3. Verify that the new strings for your vendor name and extension name are displayed. It will look something like this: