Package net.i2p.i2ptunnel.ui
Class Messages
java.lang.Object
net.i2p.i2ptunnel.ui.Messages
Translate strings for this package.
This is for the strings in the UI. Bundles are in the war.
Note that there are separate bundles for the proxy error messages
in the jar, which are not accessed by this class.
- Since:
- 0.7.9
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlang in routerconsole.lang property, else current localetranslate a string with a parameter This is a lot more expensive than getString(s, ctx), so use sparingly.static String
_t
(String key, I2PAppContext ctx) translate (ngettext)static String
ngettext
(String s, String p, int n, I2PAppContext ctx) translate (ngettext)
-
Constructor Details
-
Messages
public Messages()
-
-
Method Details
-
_t
lang in routerconsole.lang property, else current locale -
_t
-
_t
translate a string with a parameter This is a lot more expensive than getString(s, ctx), so use sparingly.- Parameters:
s
- string to be translated containing {0} The {0} will be replaced by the parameter. Single quotes must be doubled, i.e. ' -> '' in the string.o
- parameter, not translated. To translate parameter also, use _t("foo {0} bar", _t("baz")) Do not double the single quotes in the parameter. Use autoboxing to call with ints, longs, floats, etc.
-
_t
- Since:
- 0.9.26
-
ngettext
translate (ngettext)- Since:
- 0.9.7
-
ngettext
translate (ngettext)- Since:
- 0.9.47
-