author: Thomas Behr 03-01-02 Initialises the LanguageBundle loading the appropriate bundles depending on the system Locale and the option selected in preferences.
()
| 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. |
no test coverage detected