Class LocaleUtilitiesImpl
java.lang.Object
com.biglybt.pifimpl.local.utils.LocaleUtilitiesImpl
- All Implemented Interfaces:
LocaleUtilities
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the current locale being used.getLocalisedMessageText(String key, String[] params) booleanReturns true if there exists a message string with the given key name.voidintegrateLocalisedMessageBundle(String resource_bundle_prefix) Allows programatic registration of plugin messages, as opposed to using the plugin.langfile property in plugin.properties If you message base file is, say, a.b.c.Messages.properties, pass a.b.c.MessagesvoidAllows plugins to dynamically pass in a properties object to be used for message text translation.voidAllows plugins to dynamically pass in a resource bundle to be used for message text translation.An alias forLocaleUtilities.getLocalisedMessageText(String)which returns null if there is no message string definition for the given key.void
-
Field Details
-
pi
-
listeners
-
-
Constructor Details
-
LocaleUtilitiesImpl
-
-
Method Details
-
integrateLocalisedMessageBundle
Description copied from interface:LocaleUtilitiesAllows programatic registration of plugin messages, as opposed to using the plugin.langfile property in plugin.properties If you message base file is, say, a.b.c.Messages.properties, pass a.b.c.Messages- Specified by:
integrateLocalisedMessageBundlein interfaceLocaleUtilities- Parameters:
resource_bundle_prefix-
-
integrateLocalisedMessageBundle
Description copied from interface:LocaleUtilitiesAllows plugins to dynamically pass in a resource bundle to be used for message text translation.- Specified by:
integrateLocalisedMessageBundlein interfaceLocaleUtilities
-
integrateLocalisedMessageBundle
Description copied from interface:LocaleUtilitiesAllows plugins to dynamically pass in a properties object to be used for message text translation.- Specified by:
integrateLocalisedMessageBundlein interfaceLocaleUtilities
-
getLocalisedMessageText
- Specified by:
getLocalisedMessageTextin interfaceLocaleUtilities
-
getLocalisedMessageText
- Specified by:
getLocalisedMessageTextin interfaceLocaleUtilities
-
hasLocalisedMessageText
Description copied from interface:LocaleUtilitiesReturns true if there exists a message string with the given key name.- Specified by:
hasLocalisedMessageTextin interfaceLocaleUtilities
-
localise
Description copied from interface:LocaleUtilitiesAn alias forLocaleUtilities.getLocalisedMessageText(String)which returns null if there is no message string definition for the given key.- Specified by:
localisein interfaceLocaleUtilities
-
getCurrentLocale
Description copied from interface:LocaleUtilitiesReturns the current locale being used.- Specified by:
getCurrentLocalein interfaceLocaleUtilities
-
getDecoders
- Specified by:
getDecodersin interfaceLocaleUtilities
-
addListener
- Specified by:
addListenerin interfaceLocaleUtilities
-
removeListener
- Specified by:
removeListenerin interfaceLocaleUtilities
-