O'Reilly logo

Java Cookbook by Ian F. Darwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JILTing Your Code

Nothing to do with jilting your lover, JILT is Sun’s Java Internationalization and Localization Toolkit, Version 2.0. JILTing your code means processing it with JILT, which facilitates I18N and L10N’ing the Java classes. JILT has four GUI-based tools, which can be used independently, started from a GUI front-end called JILKIT. Figure 14-1 shows JILT in action.

JILT in action

Figure 14-1. JILT in action

The tools are listed in Table 14-2.

Table 14-2.  JILT programs

Tool

Function

I18N Verifier

Tests program for international use and suggests improvements.

Message Tool

Finds and allows you to edit hardcoded or inconsistent messages.

Translator

Translates messages in a resource bundle file into a given locale/language.

Resource Tool

Merges multiple resource files into a new resource bundle. Can also find differences between resource files.

It’s worth noting that the time to learn these tools may overshadow their benefits on small projects, but on large projects will likely prove worthwhile.

Version 2 of the Translator ships with a Chinese dictionary, but you can provide your own dictionaries as well.

The Java Internationalization and Localization Toolkit can be downloaded for free from Sun’s Java page, http://java.sun.com/products/.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required