Interface LocaleUtilities
- All Known Implementing Classes:
LocaleUtilitiesImpl
public interface LocaleUtilities
-
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 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
-