Internationalization & Localization Code Samples
With the Java programming language, it is possible to internationalize and localize your programs. Internationalization is the process of designing an application so it can be adapted to various languages and regions without engineering changes. Localization is the process of adapting software for a specific region or language by adding locale-specific components and translating text.
Formatting
- ChoiceFormatDemo.java shows how to handle plural forms in internationalized programs. For more information, see The Java Tutorial Continued: Internationalization.
- DateFormatDemo.java formats dates and times with predefined styles in a locale-specific way. For more information, see The Java Tutorial Continued: Internationalization.
- DateFormatSymbolsDemo.java shows how to change the short names for the days of the week from lowercase to uppercase. For more information, see The Java Tutorial Continued: Internationalization.
- DecimalFormat.java formats decimal numbers into locale-specific strings. For more information, see The Java Tutorial Continued: Internationalization.
- MessageFormatDemo.java demonstrates how to internationalize a compound message. For more information, see The Java Tutorial Continued: Internationalization.
- NumberFormat.java shows how to format numbers, currencies, and percentages. For more information, see The Java Tutorial Continued: Internationalization.
- SimpleDateFormatDemo.java shows how to create your own customized formats for dates and times. For more information, see The Java Tutorial Continued: Internationalization.
Localization
- Available.java identifies the types of Locale definitions a locale-sensitive class recognizes by returning the language and country codes in a string format. For more information, see The Java Tutorial Continued: Internationalization.
- ListDemo.java shows how to use a list of language and country codes to support a number of locales. For more information, see The Java Tutorial Continued: Internationalization.
- Locales on a JSP page from Developing Multilingual Web Applications Using JavaServer Pages Technology.
- PropertiesDemo.java demonstrates how to create and use properties files to localize a program for various language and country codes. For more information, see The Java Tutorial Continued: Internationalization.
- StatsBundle_en_CA.java is the Canadian English version of the statistics bundle for the ListDemo.java program. For more information, see The Java Tutorial Continued: Internationalization.
- StatsBundle_fr_FR.java is the French as spoken in France version of the statistics bundle for the ListDemo.java program. For more information, see The Java Tutorial Continued: Internationalization.
- StatsBundle_ja_JP.java is the Japanese version of the statistics bundle for the ListDemo.java program. For more information, see The Java Tutorial Continued: Internationalization.
Comments (1)
Oct 28
Lola456 says:
Very helful info thank you so much for sharing Tax ReliefTax ReliefVery helful info thank you so much for sharing Tax ReliefTax Relief