java.lang.Object
net.i2p.desktopgui.i18n.DesktopguiTranslator
Translation utility for desktop GUI internationalization. Provides methods for translating strings in the desktop interface.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final StringThe resource bundle holding this application's translated strings.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic String_t(I2PAppContext ctx, String s) Translate a string using the desktopgui message bundle.static String_t(I2PAppContext ctx, String s, Object o) Translate a string with one parameter using the desktopgui message bundle.
Field Details
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
Translate a string using the desktopgui message bundle.- Parameters:
ctx- the I2P application contexts- the string to translate- Returns:
- the translated string
_t
Translate a string with one parameter using the desktopgui message bundle.- Parameters:
ctx- the I2P application contexts- the string to translateo- the parameter to insert into the translated string- Returns:
- the translated string with the parameter inserted