Package oracle.dbtools.plugin.api.i18n
Interface Translatable
- All Known Subinterfaces:
AuthenticationChallenge
public interface Translatable
An object encapsulating some kind of localizable message.
The object can be localized based on a set of preferred localizations,
typically the list of locales specified by a HTTP Accept-Language Request
Header.
- Author:
- cdivilly
-
Method Summary
-
Method Details
-
toString
Translate a message to the most preferred available localization- Parameters:
localePreference- ordered list ofLocales from most preferred to least preferred- Returns:
- The best available translation match
-
toString
Translate a message to a specificLocale- Parameters:
locale- TheLocaleto translate to- Returns:
- The best available translation match
-