MCPcopy Create free account
hub / github.com/PCGen/pcgen / init

Method init

code/src/java/pcgen/system/LanguageBundle.java:128–138  ·  view source on GitHub ↗

author: Thomas Behr 03-01-02 Initialises the LanguageBundle loading the appropriate bundles depending on the system Locale and the option selected in preferences.

()

Source from the content-addressed store, hash-verified

126 * depending on the system Locale and the option selected in preferences.
127 */
128 static synchronized void init()
129 {
130 if (bundle != null)
131 {
132 Logging.log(Logging.WARNING, "Reinitialising the language bundle."); //$NON-NLS-1$
133 }
134 Logging.log(Logging.INFO, MessageFormat.format("Initialising language bundle with locale {0}.", //$NON-NLS-1$
135 Locale.getDefault()));
136
137 bundle = ResourceBundle.getBundle(BUNDLE_NAME + ".LanguageBundle"); //$NON-NLS-1$
138 }
139
140 /**
141 * This method is meant to be used in tests to reload the bundle if the default locale has changed.

Callers 2

configureUIMethod · 0.95
getPropertyMethod · 0.95

Calls 4

logMethod · 0.95
formatMethod · 0.80
getBundleMethod · 0.80
getDefaultMethod · 0.65

Tested by

no test coverage detected