Internationalizing a Set of Files With the Internationalization Wizard

See Also 

The Internationalization wizard enables you to replace hard-coded strings with internationalized strings in multiple files. If you are localizing the source into more than one language, the Internationalization wizard also lets you specify the localized string for multiple locales.

To automatically internationalize strings in multiple source files:

  1. Choose Tools > Internationalization > Internationalization Wizard from the main window.
  2. Click Add Source(s) to add one or more source files to internationalize. Click Next to proceed.
  3. Click Select All if you want a single resource bundle to contain the key and value pairs for all the listed sources. To select a resource bundle for specific source files, select the desired sources and click Select Resource. In the Select Resource dialog, select the desired .properties file or create a new file. Click Next to proceed.
  4. To modify key and value pairs:

    1. From the Source combo box, select the source file in which you want to create the variable.
    2. Select the Generate Field checkbox and set the variable's modifiers.
    3. Type the name of the identifier in the Identifier text field.
    4. The Init String field gives you a preview of the code that the variable will use to reference the resource bundle. To change this code, click Format and select the desired code format from the Init Code Format Editor.
    5. Click Next to generate the field.
  5. In the Modify Found Strings pane, set the key name and localized values for each of the strings you want to internationalize by entering a new value in the appropriate column. Use the Source combo box to switch between source files. Deselect the checkbox in the first column for any string you do not want to internationalize.
  6. To change the code format used to generate the internationalized string or add arguments to the method call, click the ellipsis button (...) at the end of the string's row.
  7. Click Finish to internationalize the strings for all of the selected source files.
See Also
Internationalizing a Single File
Inserting an Internationalized String Into Source Code

Legal Notices