1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
4
* Use is subject to license terms.
9
<title>Options Window: Internationalization</title>
10
<link rel="StyleSheet" href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/ide.css" type="text/css">
13
<h2>Options Window: Internationalization</h2>
14
<p> <small><a href="#seealso">See Also</a> </small>
15
<p>The IDE enables you to edit various settings that affect the behavior of the I18N module.
16
You can modify Internationalization settings in the Options window.</p>
17
<p>You can access the Internationalization settings in Advanced Options by choosing Tools > Options from the main menu and clicking Advanced Options in the Options window.
18
In the left pane, expand the Editing node and select Internationalization.</p>
23
<li><b>Advanced Wizard.</b> When selected, the Modify
24
Additional Values pane of the Internationalization wizard is enabled. This
25
pane lets you generate a variable that references the resource bundle. You
26
can then use the variable to access the resource bundle rather than the bundle's
28
<li><b>Overwrite Resource Value.</b> When selected,
29
you can override the values of any existing keys in the resource bundle.</li>
32
<h3>Expert I18N Settings</h3>
33
<p>The IDE provides special property editors to assist you in
34
forming POSIX-style regular expressions to
35
determine whether a string is internationalized and to generate internationalization
36
code. The editors' dialog boxes include predefined variables for common elements that
37
you can use in your regular expressions, such as punctuation and spaces.</p>
38
<p>Expert I18N editors for the following properties are available in the IDE:</p>
40
<li><b>I18n Test Wizard Format.</b> The regular expression used by the
41
Internationalization Test wizard to identify all internationalized strings.
42
By default, this setting returns all strings that are parameters of <tt>getString</tt>
43
(notice that <tt>getBundle</tt> is ommited). For each returned string, the
44
Internationalization Test wizard looks for a matching key and value in the
45
source file's resource bundle.</li>
46
<li><b>Bundle Init Format.</b> The default code format used to initialize
47
resource bundles.</li>
48
<li><b>I18n Search Format.</b> The regular expression used by the Internationalization
49
wizard and the Internationalize command to identify all strings that should
50
not be internationalized. The Internationalize command converts all strings
51
that do not match this format into internationalized strings.
52
<p> By default, this setting returns all strings that are in <tt>getString</tt>
53
and <tt>getBundle</tt> method calls. If you append <tt>//NOI18N</tt> to
54
the regular expression, the IDE will also skip any row that contains a <tt>//NOI18N</tt>
57
<li><b>I18n String Format.</b> The default code format used to make internationalized
58
strings. For more information on individual code formats, see <a href="replacingformat.html">Code
59
Formats for Internationalized Strings</a>.</li>
63
<dt><a name="seealso">See Also</a></dt>
64
<dd> <a href="i18nwizard.html">Internationalizing a Set of Files With the Internationalization Wizard</a></dd>
65
<dd> <a href="replacingformat.html">Code Formats for Internationalized Strings</a></dd>
66
<dd> <a href="addparams.html">Adding Arguments for Message Formats</a></dd>
67
<dd> <a href="nbdocs://org.netbeans.modules.usersguide/org/netbeans/modules/usersguide/configure/configure_options.html">Using the Options Window</a></dd>
70
<hr><small><a href="../credits.html">Legal Notices</a></small>
72
<table border="0" cellpadding="50">
73
<tr><td> </td></tr>