public class ResourceBundleService extends TranslationService
TranslationService and uses ResourceBundles to perform translations.| Constructor and Description |
|---|
ResourceBundleService(ResourceBundle rb) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeLocale(ResourceBundle newValue)
Change the resource bundle to use for this service.
|
String |
translate(String key)
Looks up a key in the translation service and returns the translate string.
|
addListener, notifyListeners, removeListenerpublic ResourceBundleService(ResourceBundle rb)
public void changeLocale(ResourceBundle newValue)
newValue - The new resource bundle to use for translations.public String translate(String key)
translate in class TranslationServicekey - The key to use for the lookup.Copyright © 2017. All rights reserved.