Package qupath.lib.gui.localization
Class QuPathResources
java.lang.Object
qupath.lib.gui.localization.QuPathResources
Load strings from the default resource bundle.
- Since:
- v0.5.0
- Author:
- Pete Bankhead
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic qupath.fx.localization.LocalizedResourceManager
Get a localized resource manager, which can be used to manage localized strings, and update these whenever the locale preferences are updated.static String
Get a string from the mainResourceBundle
used for the QuPath user interface.static String
static boolean
hasBundleForLocale
(String bundle, Locale locale) static boolean
hasDefaultBundleForLocale
(Locale locale) static boolean
static boolean
-
Constructor Details
-
QuPathResources
public QuPathResources()
-
-
Method Details
-
getLocalizedResourceManager
public static qupath.fx.localization.LocalizedResourceManager getLocalizedResourceManager()Get a localized resource manager, which can be used to manage localized strings, and update these whenever the locale preferences are updated.- Returns:
-
getString
Get a string from the mainResourceBundle
used for the QuPath user interface.This helps separate user interface strings from the main Java code, so they can be maintained more easily - and potentially could be translated into different languages if required.
- Parameters:
key
-- Returns:
-
getString
-
hasString
-
hasString
-
hasBundleForLocale
-
hasDefaultBundleForLocale
-