String Externalization

The Java tools help you to develop applications that can be run on international platforms. An important facet of designing a program for use in different countries is the localization, or externalization, of text that is displayed by the program. By externalizing strings, the text can be translated for different countries and languages without rebuilding the Java program.

The JDT provides the following support for internationalization and string externalization:

Comments can be used to denote strings that should not be externalized and should not result in compile-time warnings or errors. These comments are of form //$NON-NLS-n$ where n is the 1-based index of the string in a line of code.

Additional information about internationalized applications can be found in the following documents:

Finding strings to externalize
Finding unused and incorrectly used keys in property files Source menu
Externalize strings wizard
Java compiler preferences