java.lang.Object
net.i2p.addressbook.Messages

public class Messagesextends Object
Provides translatable strings for the addressbook application.
  • Field Details

  • Constructor Details

    • Messages

      public Messages()
      Construct a Messages instance.
  • Method Details

    • _t

      public String _t(String key)
      Return the translated string for the given key.
      Parameters:
      key - the message key
      Returns:
      the translated string
    • getString

      public static String getString(String s)
      Return the translated string for the given key.
      Parameters:
      s - the message key
      Returns:
      the translated string
    • getString

      public static String getString(String s, Object o)
      Return the translated string for the given key, with one argument.
      Parameters:
      s - the message key
      o - the argument to substitute
      Returns:
      the translated string
    • getString

      public static String getString(String s, Object o, Object o2)
      Return the translated string for the given key, with two arguments.
      Parameters:
      s - the message key
      o - the first argument to substitute
      o2 - the second argument to substitute
      Returns:
      the translated string