Introduction
Internationalization is the process of designing an application so that it can be adapted to various languages and regions, without engineering changes. Sometimes, the term Internationalization is abbreviated as i18n, because there are 18 letters between the first "i" and the last "n".
Characteristics of Internationalization
- Textual elements such as a status message and the GUI component labels are not hardcoded in the program. Instead, they are stored outside of the source code and retrieved dynamically.
- Internationalization supports a new language without recompilation.
- Other culturally dependent data, such as dates and currencies, appear in formats that conform to the end user's region and language.
Following step follow to create an Internationalized application.
For example, you have a frame with the two buttons "yes" and "no" and we want to display them in the French language, so the button for "yes" changes to "Oui" and "No" changes to "None", without recompiling the program.
Step-1: First, you create a properties file that stores the information; for creating it we save a simple text file with a .properties extension. For example, xyz.properties. Write all the keys and their values, using a Text Editor. Here, you must give any key's name on the left side and key values on the right side.
Step-2: And save both files named as Msg_en_US.properties and Msg_fr_FR.properties.

Step-3: Defining the Locale Object identifies a particular language and country. The following language defines country.


Step-4 code

Join the conversation! Your thoughts help the community grow.