Package megamek.client.ui
Class Messages
java.lang.Object
megamek.client.ui.Messages
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFormattedString(String key, Object... args) Returns the formatted internationalized text for the given key in the resource bundle, replacing occurrences of %s in the message with the contents of args.static StringReturns the internationalized text for the given key in the resource bundle.static StringReturns the formatted internationalized text for the given key in the resource bundle, replacing occurrences of {x} in the message with the contents of args.static booleanCheck to see if a given key has valid internationalized text.
-
Field Details
-
CLIENT_BUNDLE
- See Also:
-
-
Method Details
-
keyExists
Check to see if a given key has valid internationalized text. -
getString
Returns the internationalized text for the given key in the resource bundle. -
getString
Returns the formatted internationalized text for the given key in the resource bundle, replacing occurrences of {x} in the message with the contents of args. -
getFormattedString
Returns the formatted internationalized text for the given key in the resource bundle, replacing occurrences of %s in the message with the contents of args.This is ONLY to be used for string that need to be formatted without formatting the number
-