Java Reference
In-Depth Information
Extracting Strings from Your Code
Problem
You have existing code that contains hardcoded strings.
Solution
Localize as you go along. For existing code, use JILT, Eclipse, or your favorite IDE.
Discussion
Of course it's best if you internationalize your code as you write it. But this often doesn't
happen for one reason or another. Hence the need to retroactively internationalize your code.
Many tools extract String s into resource bundles. This process is also known as externaliza-
tion. Nothing to do with jilting your lover, JILT is Sun's Java Internationalization and Local-
ization Toolkit, Version 2.0. [ 48 ] JILTing your code means processing it with JILT, which fa-
cilitates I18N and L10N'ing the Java classes. JILT has four GUI-based tools, which can be
used independently, started from a GUI frontend called JILKIT. Figure 15-1 shows JILT in
action.
Figure 15-1. JILT in action
The tools are listed in Table 15-2 .
 
Search WWH ::




Custom Search