TranslationService and uses ResourceBundles to perform translations.
| Modifier and Type | Field and Description |
|---|---|
| private ResourceBundle |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | changeLocale(ResourceBundle
The new resource bundle to use for translations. newValue)Change the resource bundle to use for this service. |
| public String | translate(String
The key to use for the lookup. key)Implements abstract com. Looks up a key in the translation service and returns the translate string. |
| rb | back to summary |
|---|---|
| private ResourceBundle rb | |
| ResourceBundleService | back to summary |
|---|---|
| public ResourceBundleService(ResourceBundle rb) | |
| changeLocale | back to summary |
|---|---|
| public void changeLocale(ResourceBundle newValue) Change the resource bundle to use for this service. Notifies all listeners of the locale change.
| |
| translate | back to summary |
|---|---|
| public String translate(String key) Implements abstract com. Doc from com. Looks up a key in the translation service and returns the translate string. | |