@Api public class PropertiesTranslator extends AbstractTranslator
*.properties files with key-based
translations. Default encoding is UTF-8.| Constructor and Description |
|---|
PropertiesTranslator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Map<String,String> |
getMessages(Locale locale)
Returns key-value map with every available translations for given locale.
|
int |
hashCode() |
protected String |
resolveMessage(String key,
Locale locale,
Object... args) |
void |
setBasename(String basename) |
void |
setBasenames(String... basenames) |
void |
setDefaultEncoding(String charset) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
addTranslatedPackage, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getLocalizedString, getMessage, getMessage, getMessage, getMessage, getParent, setParent, setTranslatedClassLoader, translatedClassLoader, translatedPackagespublic void setBasename(String basename)
public void setBasenames(String... basenames)
public void setDefaultEncoding(String charset)
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
protected String resolveMessage(String key, Locale locale, Object... args) throws NoTranslationException
resolveMessage in class AbstractTranslatorNoTranslationExceptionpublic Map<String,String> getMessages(Locale locale)
Translatorpublic boolean equals(Object obj)
equals in class AbstractTranslatorpublic int hashCode()
hashCode in class AbstractTranslatorCopyright © 2023 Suncode. All rights reserved.