Configuring Internationalization Settings
See Also
- Choose Tools
Options
from the main window.
- Expand the Editing node and select Internationalization.
Properties
- Advanced Wizard. When True, the Modify
Additional Values pane of the Internationalization wizard is enabled. This
pane lets you generate a variable that references the resource bundle. You
can then use the variable to access the resource bundle rather than the bundle's
full name.
- Overwrite Resource Value. When True,
you can override the values of any existing keys in the resource bundle.
Expert
The Expert properties open special property editors for
forming POSIX-style regular expressions. The IDE uses these regular expressions to
determine whether a string is internationalized and to generate internationalization
code. The dialog boxes provide predefined variables for common elements that
you can use in your regular expressions, such as punctuation and spaces.
- I18n Test Wizard Format. The regular expression used by the
Internationalization Test wizard to identify all internationalized strings.
By default, this setting returns all strings that are parameters of getString
(notice that getBundle is ommited). For each returned string, the
Internationalization Test wizard looks for a matching key and value in the
source file's resource bundle.
- Bundle Init Format. The default code format used to initialize
resource bundles.
- I18n Search Format. The regular expression used by the Internationalization
wizard and the Internationalize command to identify all strings that should
not be internationalized. The Internationalize command converts all strings
that do not match this format into internationalized strings.
By default, this setting returns all strings that are in getString
and getBundle method calls. If you append //NOI18N to
the regular expression, the IDE will also skip any row that contains a //NOI18N
comment.
- I18n String Format. The default code format used to make internationalized
strings. For more information on individual code formats, see Code
Formats for Internationalized Strings.
Legal Notices