java.lang.Object
net.i2p.desktopgui.i18n.DesktopguiTranslator

public class DesktopguiTranslatorextends Object
Translation utility for desktop GUI internationalization. Provides methods for translating strings in the desktop interface.
  • Field Details

    • BUNDLE_NAME

      private static final String BUNDLE_NAME
      The resource bundle holding this application's translated strings.
      See Also:
  • Constructor Details

    • DesktopguiTranslator

      public DesktopguiTranslator()
      Constructor. The bundle name is a constant and translation is always requested statically, so an instance carries no state.
  • Method Details

    • _t

      public static String _t(I2PAppContext ctx, String s)
      Translate a string using the desktopgui message bundle.
      Parameters:
      ctx - the I2P application context
      s - the string to translate
      Returns:
      the translated string
    • _t

      public static String _t(I2PAppContext ctx, String s, Object o)
      Translate a string with one parameter using the desktopgui message bundle.
      Parameters:
      ctx - the I2P application context
      s - the string to translate
      o - the parameter to insert into the translated string
      Returns:
      the translated string with the parameter inserted