Java Language Tutorial:

Java Language Localization and Internationalization


Java comes with a powerful and flexible mechanism for localizing your applications, but it's also easy to misuse and wind up with a program that disregards or mangles the user's locale, and therefore how they expect your program to behave.

Your users will expect to see data localized to the formats they're used to, and attempting to support this manually is a fools errand. Here is just a small example of the different ways users expect to see content you might assume is "always" displayed a certain way:

DatesNumbersLocal CurrencyForeign CurrencyDistances
Mexico20/3/161.234,56$1,000.501,000.50 USD
UK20/3/161,234.56£1,000.50100 km
USA3/20/161,234.56$1,000.501,000.50 MXN60 mi

General Resources

Java Resources

Java Language Localization and Internationalization Examples:

Related Java Language Tutorial Topics:

Other Tutorial Topics:

This modified content is an extract of the original Stack Overflow Documentation released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow. This topic was created and modified by the Stack Ovedrflow Contributor.