Module tvbrowser
Package util.ui

Class PooledLocalizer


  • @Deprecated(since="4.2.2")
    public class PooledLocalizer
    extends Localizer
    Deprecated.
    since 4.2.2 use {@link #util.i18n.PooledLocalizer} instead.
    localizer using the String pool for all messages. You should use this instead of the standard localizer if your object will be instantiated many times with the same constant strings
    Author:
    bananeweizen
    • Method Detail

      • getLocalizerFor

        public static Localizer getLocalizerFor​(java.lang.Class<?> clazz)
        Deprecated.
      • msg

        public java.lang.String msg​(java.lang.String key,
                                    java.lang.String defaultMsg)
        Deprecated.
        Description copied from class: Localizer
        Gets a localized message.
        Overrides:
        msg in class Localizer
        Parameters:
        key - The key of the message.
        defaultMsg - The default message (English)
        Returns:
        a localized message.
      • msg

        public java.lang.String msg​(java.lang.String key,
                                    java.lang.String defaultMsg,
                                    boolean warn)
        Deprecated.
        Description copied from class: Localizer
        Gets a localized message.
        Overrides:
        msg in class Localizer
        Parameters:
        key - The key of the message.
        defaultMsg - The default message (English)
        warn - If warnings should be logged if key is not found.
        Returns:
        a localized message.
      • msg

        public java.lang.String msg​(java.lang.String key,
                                    java.lang.String defaultMsg,
                                    java.lang.Object arg1)
        Deprecated.
        Description copied from class: Localizer
        Gets a localized message.
        Overrides:
        msg in class Localizer
        Parameters:
        key - The key of the message.
        defaultMsg - The default message (English)
        arg1 - The argument that should replace {0}.
        Returns:
        a localized message.
      • msg

        public java.lang.String msg​(java.lang.String key,
                                    java.lang.String defaultMsg,
                                    java.lang.Object arg1,
                                    java.lang.Object arg2)
        Deprecated.
        Description copied from class: Localizer
        Gets a localized message.
        Overrides:
        msg in class Localizer
        Parameters:
        key - The key of the message.
        defaultMsg - The default message. (English)
        arg1 - The argument that should replace {0}.
        arg2 - The argument that should replace {1}.
        Returns:
        a localized message.
      • msg

        public java.lang.String msg​(java.lang.String key,
                                    java.lang.String defaultMsg,
                                    java.lang.Object arg1,
                                    java.lang.Object arg2,
                                    java.lang.Object arg3)
        Deprecated.
        Description copied from class: Localizer
        Gets a localized message.
        Overrides:
        msg in class Localizer
        Parameters:
        key - The key of the message.
        defaultMsg - The default message. (English)
        arg1 - The argument that should replace {0}.
        arg2 - The argument that should replace {1}.
        arg3 - The argument that should replace {2}.
        Returns:
        a localized message.
      • msg

        public java.lang.String msg​(java.lang.String key,
                                    java.lang.String defaultMsg,
                                    java.lang.Object[] args)
        Deprecated.
        Description copied from class: Localizer
        Gets a localized message.
        Overrides:
        msg in class Localizer
        Parameters:
        key - The key of the message.
        defaultMsg - The default message. (English)
        args - The arguments that should replace the appropriate place holder. See MessageFormat for details.
        Returns:
        a localized message.