Configuring Internationalization Settings
- Choose Tools
Options
from the main window.
- Expand the Editing node and select Internationalization.
Internationalization settings contain two tabs: Properties and Expert. The
Properties tab contains the following settings:
- Advanced Wizard. When this property is set to True, the Modify
additional values pane of the Internationalization wizard is enabled. This
pane lets you generate a variable that reference 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 this property is set to True,
you can override the values of any existing keys in the resource bundle.
The properties in the Expert tab 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.
The Expert tab contains the following settings:
- Bundle Code Format. The default code format used to initialize
resource bundles.
- I18n Code Format. The default code format used to make internationalized
strings. For more information on individual code formats, see Code
Formats for Internationalized Strings.
- I18n Key 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.
- I18zed String Format. The regular expression used by the Internationalization
wizard and the Internationalize command to identify all strings that should
not be internationalized. The Internationalize wizard and command convert
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.
Legal Notices