Configuring Internationalization Settings
See Also
The IDE enables you to edit various settings affecting the behavior of the
I18N module.
To Configure Internationalization Settings:
- Choose Tools > Options from the main menu and click Advanced Options in the Options window.
- In the left pane of the Options window, expand the Editing node and select Internationalization.
- Edit the property you wish to change by choosing its radio button or entering the setting's desired value directly.
- If you wish to edit an Expert setting, you can use the property's ellipsis button (...) to open
its dedicated editor.
- Choose the appropriate expression format from the drop-down list in the dialog that appears.
- Add any variables you require
by placing the cursor in the appropriate location in the expression field and
double-clicking the desired predefined variable in the Arguments list.
The IDE stores and applies the new settings when internationalizing files.
Expert I18N Settings
The IDE provides special property editors to assist you in
forming POSIX-style regular expressions to
determine whether a string is internationalized and to generate internationalization
code. The editors' dialog boxes include predefined variables for common elements that
you can use in your regular expressions, such as punctuation and spaces.
Expert I18N editors for the following properties are available in the IDE:
- 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 omitted). 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.
- See Also
- Internationalizing a Set of Files With the Internationalization Wizard
- Code Formats for Internationalized Strings
- Adding Arguments for Message Formats
Legal Notices