Package com.biglybt.pif.utils
Interface LocaleUtilities
- All Known Implementing Classes:
LocaleUtilitiesImpl
public interface LocaleUtilities
-
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 forgetLocalisedMessageText(String)
which returns null if there is no message string definition for the given key.void
-
Method Details
-
integrateLocalisedMessageBundle
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- Parameters:
resource_bundle_prefix
-
-
integrateLocalisedMessageBundle
Allows plugins to dynamically pass in a resource bundle to be used for message text translation.- Since:
- 3.0.2.3
-
integrateLocalisedMessageBundle
Allows plugins to dynamically pass in a properties object to be used for message text translation.- Since:
- 3.0.2.3
-
getLocalisedMessageText
-
getLocalisedMessageText
-
hasLocalisedMessageText
Returns true if there exists a message string with the given key name.- Since:
- 3.0.5.3
-
localise
An alias forgetLocalisedMessageText(String)
which returns null if there is no message string definition for the given key.- Since:
- 3.0.5.3
-
getDecoders
LocaleDecoder[] getDecoders() -
addListener
-
removeListener
-
getCurrentLocale
Locale getCurrentLocale()Returns the current locale being used.- Since:
- 3.0.0.9
-