Adding Arguments for Message Formats

If you are creating a message, you can specify an argument and the code to replace the string to be internationalized in the Message Format Arguments dialog box.

To enter substitution parameters for a message format:

  1. In the Internationalize dialog box, click Format (next to the Replace String text field).
  2. Replace the string format with one of the messsage formats provided in the Replace Code Format combo box and click OK.
  3. In the Internationalize dialog box, click Arguments under the Value text field.
  4. Click Add (next to the Arguments text field).

    A series of parameters, beginning with 0, is added to the text field.

  5. Type a value for the parameter in the Code field and click OK.

    The value is added to the parameter in the Arguments text field. To remove an argument, select it in the Arguments text field and click Remove.

  6. Click OK when you are done.

The arguments you supply are added appended to the end of the message format:

java.util.MessageFormat.format(java.util.ResourceBundle.getBundle("bundlename").getString(new
Object[] {arg0, arg1,...});)

See the documentation for java.text.MessageFormat for more information on using localized strings with parameters.

See also
Replacing the Code Format
Generating Internationalization Strings Automatically
Internationalizing Strings with the Internationalization Wizard
Setting Internationalization Strings With the Form Editor

Legal Notices