public interface I18nManager
| Modifier and Type | Method and Description |
|---|---|
void |
addResourceFamily(String family,
ClassLoader loader,
String callerName) |
void |
addResourceFamily(String family,
File folder)
Adds an additional family of resource files containing some translations.
|
String |
getTranslation(String message)
Get translation for the current language of message.
|
String |
getTranslation(String message,
String[] args)
Get translation for the current language of message.
|
String getTranslation(String message)
message - the message key used for translation.String getTranslation(String message, String[] args)
message - the message key used for translation.args - void addResourceFamily(String family, ClassLoader loader, String callerName)
void addResourceFamily(String family, File folder)
i18nManager.addResourceFamily("text", new File("./resources"))family - The family name (or base name) which is used to search
actual properties files.folder - The search path to locate the property files