localizable resources in java se 11

Solutions on MaxInterview for localizable resources in java se 11 by the best coders in the world

showing results for - "localizable resources in java se 11"
Antonio
20 Jan 2018
1public abstract class ResourceBundle
2extends Object
3Resource bundles contain locale-specific objects. When your program needs a locale-specific resource, a String for example, your program can load it from the resource bundle that is appropriate for the current user's locale. In this way, you can write program code that is largely independent of the user's locale isolating most, if not all, of the locale-specific information in resource bundles.
4This allows you to write programs that can:
5
6be easily localized, or translated, into different languages
7handle multiple locales at once
8be easily modified later to support even more locales
9Resource bundles belong to families whose members share a common base name, but whose names also have additional components that identify their locales. For example, the base name of a family of resource bundles might be "MyResources". The family should have a default resource bundle which simply has the same name as its family - "MyResources" - and will be used as the bundle of last resort if a specific locale is not supported. The family can then provide as many locale-specific members as needed, for example a German one named "MyResources_de".
10
11