Package com.io7m.quarrel.core.internal
Class QLocalization
java.lang.Object
com.io7m.quarrel.core.internal.QLocalization
- All Implemented Interfaces:
QLocalizationType
Convenient localization methods.
-
Constructor Summary
ConstructorsConstructorDescriptionQLocalization(ResourceBundle inInternalResources, ResourceBundle inApplicationResources) Convenient localization methods. -
Method Summary
Modifier and TypeMethodDescriptionformat(QStringType string, Object... arguments) Localize and format the given string.localize(QStringType string) Localize the given string.
-
Constructor Details
-
QLocalization
Convenient localization methods.- Parameters:
inInternalResources- The internal resourcesinApplicationResources- The application-specific resources
-
-
Method Details
-
localize
Description copied from interface:QLocalizationTypeLocalize the given string.- Specified by:
localizein interfaceQLocalizationType- Parameters:
string- The string- Returns:
- The string
-
format
Description copied from interface:QLocalizationTypeLocalize and format the given string. The localized string is treated as a format string, and formatted usingMessageFormat.- Specified by:
formatin interfaceQLocalizationType- Parameters:
string- The stringarguments- The arguments- Returns:
- The string
-