Class QuPathResources

java.lang.Object
qupath.lib.gui.localization.QuPathResources

public class QuPathResources extends Object
Load strings from the default resource bundle.
Since:
v0.5.0
Author:
Pete Bankhead
  • 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

      public static String getString(String key)
      Get a string from the main ResourceBundle 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

      public static String getString(String bundle, String key)
    • hasString

      public static boolean hasString(String key)
    • hasString

      public static boolean hasString(String bundleName, String key)
    • hasBundleForLocale

      public static boolean hasBundleForLocale(String bundle, Locale locale)
    • hasDefaultBundleForLocale

      public static boolean hasDefaultBundleForLocale(Locale locale)