Class ILocalizer.DummyLocalizer
java.lang.Object
nl.pim16aap2.animatedarchitecture.core.localization.ILocalizer.DummyLocalizer
- All Implemented Interfaces:
ILocalizer
- Enclosing interface:
ILocalizer
A dummy localizer that returns the key, locale and arguments in a string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ILocalizer
ILocalizer.DummyLocalizer -
Field Summary
Fields inherited from interface ILocalizer
NULL -
Method Summary
Modifier and TypeMethodDescriptionGets a list ofLocales that are currently available.getMessage(String key, @Nullable Locale clientLocale, Object... args) Retrieves a localized message.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ILocalizer
getMessage
-
Method Details
-
getMessage
Description copied from interface:ILocalizerRetrieves a localized message.- Specified by:
getMessagein interfaceILocalizer- Parameters:
key- The key of the message.clientLocale- The Locale configured for the client. If the configuration does not allow client-specific locales or if the provided Locale is null, this parameter is ignored.args- The arguments of the message, if any.- Returns:
- The localized message associated with the provided key.
-
getAvailableLocales
Description copied from interface:ILocalizerGets a list ofLocales that are currently available.- Specified by:
getAvailableLocalesin interfaceILocalizer- Returns:
- The list of available locales.
-