Inserting an Internationalized String Into Source Code
The Insert Internationalized String command enables you to add internationalization
strings one at a time as you create the source.
To insert an internationalized string in your source code:
- Put the insertion point at the location in the source file where you want
to insert an internationalized string.
- Choose Tools
Internationalization
Insert Internationalized
String from the contextual menu, or use the keyboard shortcut (Ctrl-Shift-J).
- The Bundle Name field displays the .properties file into which
the internationalized strings will be saved. To choose a different .properties
file, click Browse. Alternatively, you can click New to create a new
properties file in which to save the internationalized strings.
- The Replace Format field gives you a preview of the internationalized string.
Click Format if you want to change the method used to generate the localized
string.
- Click Arguments if you want to add arguments to the method call. You can
only add arguments to the method call if you use the java.text.MessageFormat
or org.openide.util.NbBundle.getMessage formats.
- Type in values for the Key and Value properties and click OK. The internationalized
string is added to the source code at the cursor location.
Legal Notices