@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, setParent, setTranslatedClassLoader, translatedClassLoader, translatedPackages
public 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 AbstractTranslator
NoTranslationException
public Map<String,String> getMessages(Locale locale)
Translator
public boolean equals(Object obj)
equals
in class AbstractTranslator
public int hashCode()
hashCode
in class AbstractTranslator
Copyright © 2019 Suncode. All rights reserved.