Inserting Internationalized Strings Into Source Code

The Insert Internationalized String command enables you to add internationalization strings one at a time as you create the source, unlike the wizard or the Internationalize command, which requires that source code already exist.

To insert an internationalized string in the source code:

  1. Put the insertion point at the location in the source file where you want to insert an internationalized string.
  2. Choose Tools Internationalization Insert Internationalized String from the contextual menu (or use the keyboard shortcut, Alt-I).
  3. If the resource bundle file shown in the Bundle Name text field is not the file you want to save the internationalized strings in, click Browse... and select the properties file you do want.

    Alternatively, you can click New... to create a new properties file in which to save the internationalized strings.

  4. Click Format to choose the string format you want.
  5. Click Arguments if the format you chose is getMessage and supply the desired arguments.
  6. Type in vlaues for the Key and Value properties and click OK.

An internationalized string is added to the source code at the cursor location. You can then continue coding.

See also
Adding Arguments for Message Formats
Generating Internationalization Strings Automatically
Setting Internationalization Strings With the Form Editor
Setting Properties Files

Legal Notices