Class Translator

java.lang.Object
net.sourceforge.jnlp.runtime.Translator

public class Translator extends Object
Utility class to provide simple methods to help localize messages
  • Method Details

    • getInstance

      public static Translator getInstance()
    • R

      public static String R(String message)
      Return a translated (localized) version of the message
      Parameters:
      message - the message to translate
      Returns:
      a string representing the localized message
    • R

      public static String R(String message, Object... params)
      Parameters:
      message - key to be found in properties
      params - params to be expanded to message
      Returns:
      the localized string for the message
    • VVPossibleBrowserValues

      public static String VVPossibleBrowserValues()
      convenient method to show VVPossibleBrowserValues with all four params
      Returns:
      translation of VVPossibleBrowserValues with all params in
    • getMessage

      protected String getMessage(String key, Object... args)
      Parameters:
      key - key to be found in properties
      args - params to be expanded to message
      Returns:
      the localized resource string using the specified arguments.