Class Localizer


  • public final class Localizer
    extends Object
    Wraps ResourceBundle with a couple of additional, useful methods. Used for l10n
    • Method Detail

      • getInstance

        public static Localizer getInstance()
      • setInstance

        public static void setInstance​(Localizer localizer)
      • getLocale

        public Locale getLocale()
      • formatValue

        public String formatValue​(String key,
                                  Object... args)
        Deprecated.
        Use the pre-JDK 1.5 MessageFormat. This should be avoided. Applications should use the sprintfValue method instead
        See Also:
        springfValue
      • sprintfValue

        public String sprintfValue​(String key,
                                   Object... args)
        Use the JDK 1.5 sprintf style Formatter