Package org.jitsi.dnssec
Class R
java.lang.Object
org.jitsi.dnssec.R
Utility class to retrieve messages from
ResourceBundle
s.-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Gets a translated message.static void
setBundle
(ResourceBundle resourceBundle) Programmatically set the ResourceBundle to be used.static void
setUseNeutralMessages
(boolean useNeutral) If set totrue
, messages will not be obtained from resource bundles but formatted askey:param1:...:paramN
.
-
Method Details
-
setBundle
Programmatically set the ResourceBundle to be used.- Parameters:
resourceBundle
- the bundle to be used.
-
setUseNeutralMessages
public static void setUseNeutralMessages(boolean useNeutral) If set totrue
, messages will not be obtained from resource bundles but formatted askey:param1:...:paramN
.- Parameters:
useNeutral
-true
to use neutral messages,false
otherwise
-
get
Gets a translated message.- Parameters:
key
- The message key to retrieve.values
- The values that fill placeholders in the message.- Returns:
- The formatted message.
-