Internationalization and Localization in Java

Internationalization is also abbreviated as I18N because there are total 18 characters between the first letter 'I' and the last letter 'N'.

Internationalization is a mechanism to create such an application that can be adapted to different languages and regions.

Internationalization is one of the powerful concept of java if you are developing an application and want to display messages, currencies, date, time etc. according to the specific region or language.

Localization is also abbreviated as I10N because there are total 10 characters between the first letter 'L' and last letter 'N'. Localization is the mechanism to create such an application that can be adapted to a specific language and region by adding locale-specific text and component.

Understanding the culturally dependent data before starting internationalization

Before starting the internationalization, Let's first understand what are the informations that differ from one region to another. There is the list of culturally dependent data:

  1. Messages
  2. Dates
  3. Times
  4. Numbers
  5. Currencies
  6. Measurements
  7. Phone Numbers
  8. Postal Addresses
  9. Labels on GUI components etc.

Fields of Locale class

There are fields of Locale class:

  1. public static final Locale ENGLISH
  2. public static final Locale FRENCH
  3. public static final Locale GERMAN
  4. public static final Locale ITALIAN
  5. public static final Locale JAPANESE
  6. public static final LocaleKOREAN
  7. public static final LocaleCHINESE
  8. public static final Locale SIMPLIFIED_CHINESE
  9. public static final Locale TRADITIONAL_CHINESE
  10. public static final Locale FRANCE
  11. public static final Locale GERMANY
  12. public static final Locale ITALY
  13. public static final Locale JAPAN
  14. public static final Locale KOREA
  15. public static final Locale CHINA
  16. public static final Locale PRC
  17. public static final Locale TAIWAN
  18. public static final Locale CANADA
  19. public static final Locale US

EXAMPLE

Flash Soon



Advertisement

Copyright ©2017 Design& develop