Testing a Bundle for Internationalized Strings
See Also
You can check resource bundles for missing key and value pairs by using the
Internationalization Test wizard. The wizard looks for all internationalized
string keys (with a customizable meaning) in the source and checks for a corresponding
key and value pair in the specified resource bundle. You can use the wizard
to add any missing pairs.
To test a bundle for internationalized strings:
- Choose Tools > Internationalization > Internationalization Test Wizard.
- Click Add Source(s) and select one or more source files to test in the Select
Sources dialog that appears. Click Next to proceed.
- Specify the resource bundles for the source files. Click Select All to check
one resource bundle for all the listed sources. To select a specific resource
bundle for one or more source files, select the desired sources and click Select
Resource. Click Next to proceed.
The wizard lists all of the internationalized strings with missing key
and value pairs in the selected file. The wizard automatically suggests
key names and values for the string.
- 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 include in the resource
bundle. Change the key name and value for any string by typing a new value
in the appropriate column.
- Click Finish to add the missing key and value pairs to the resource bundle.
- See Also
- Code Formats for Internationalized Strings
- Adding Arguments for Message Formats
- Inserting an Internationalized String Into Source Code
Legal Notices