Package com.biglybt.pifimpl.local.utils
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 TypeMethodDescriptionvoid
Returns the current locale being used.getLocalisedMessageText
(String key, String[] params) boolean
Returns true if there exists a message string with the given key name.void
integrateLocalisedMessageBundle
(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.Messagesvoid
Allows plugins to dynamically pass in a properties object to be used for message text translation.void
Allows 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:LocaleUtilities
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.Messages- Specified by:
integrateLocalisedMessageBundle
in interfaceLocaleUtilities
-
integrateLocalisedMessageBundle
Description copied from interface:LocaleUtilities
Allows plugins to dynamically pass in a resource bundle to be used for message text translation.- Specified by:
integrateLocalisedMessageBundle
in interfaceLocaleUtilities
-
integrateLocalisedMessageBundle
Description copied from interface:LocaleUtilities
Allows plugins to dynamically pass in a properties object to be used for message text translation.- Specified by:
integrateLocalisedMessageBundle
in interfaceLocaleUtilities
-
getLocalisedMessageText
- Specified by:
getLocalisedMessageText
in interfaceLocaleUtilities
-
getLocalisedMessageText
- Specified by:
getLocalisedMessageText
in interfaceLocaleUtilities
-
hasLocalisedMessageText
Description copied from interface:LocaleUtilities
Returns true if there exists a message string with the given key name.- Specified by:
hasLocalisedMessageText
in interfaceLocaleUtilities
-
localise
Description copied from interface:LocaleUtilities
An alias forLocaleUtilities.getLocalisedMessageText(String)
which returns null if there is no message string definition for the given key.- Specified by:
localise
in interfaceLocaleUtilities
-
getCurrentLocale
Description copied from interface:LocaleUtilities
Returns the current locale being used.- Specified by:
getCurrentLocale
in interfaceLocaleUtilities
-
getDecoders
- Specified by:
getDecoders
in interfaceLocaleUtilities
-
addListener
- Specified by:
addListener
in interfaceLocaleUtilities
-
removeListener
- Specified by:
removeListener
in interfaceLocaleUtilities
-