public class ResourceBundleTranslationProvider extends Object implements TranslationProvider
| Constructor and Description | 
|---|
ResourceBundleTranslationProvider(ResourceBundle bundle)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
applyPlaceholders(String raw,
                 Object... placeholders)
Applied placeholders to the given raw message. 
 | 
@Nullable String | 
get(String key)
Returns a message of a single line. 
 | 
@Nullable List<String> | 
getList(String key)
Returns a message of one or more lines. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getListpublic ResourceBundleTranslationProvider(ResourceBundle bundle)
public @Nullable String get(String key)
TranslationProviderget in interface TranslationProviderkey - the key of the requested messagepublic @Nullable List<String> getList(String key)
TranslationProvidergetList in interface TranslationProviderkey - the key of the requested messagepublic String applyPlaceholders(String raw, Object... placeholders)
TranslationProviderapplyPlaceholders in interface TranslationProviderraw - the raw message to processplaceholders - placeholders to use