Class ConfluenceI18nResolver
- java.lang.Object
-
- com.atlassian.sal.core.message.AbstractI18nResolver
-
- com.atlassian.sal.confluence.message.ConfluenceI18nResolver
-
- All Implemented Interfaces:
com.atlassian.sal.api.message.I18nResolver
public class ConfluenceI18nResolver extends com.atlassian.sal.core.message.AbstractI18nResolver
-
-
Constructor Summary
Constructors Constructor Description ConfluenceI18nResolver(I18NBeanFactory i18nBeanFactory, LocaleManager localeManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getAllTranslationsForPrefix(String prefix)
Map<String,String>
getAllTranslationsForPrefix(String prefix, Locale locale)
String
getRawText(String key)
String
getRawText(Locale locale, String key)
String
resolveText(String key, Serializable[] arguments)
String
resolveText(Locale locale, String key, Serializable[] arguments)
void
setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
void
setLocaleManager(LocaleManager localeManager)
-
-
-
Constructor Detail
-
ConfluenceI18nResolver
public ConfluenceI18nResolver(I18NBeanFactory i18nBeanFactory, LocaleManager localeManager)
- Since:
- 5.0
-
-
Method Detail
-
resolveText
public String resolveText(String key, Serializable[] arguments)
- Specified by:
resolveText
in classcom.atlassian.sal.core.message.AbstractI18nResolver
-
resolveText
public String resolveText(Locale locale, String key, Serializable[] arguments)
- Specified by:
resolveText
in classcom.atlassian.sal.core.message.AbstractI18nResolver
- Since:
- 5.2
-
setI18NBeanFactory
public void setI18NBeanFactory(I18NBeanFactory i18NBeanFactory)
-
setLocaleManager
public void setLocaleManager(LocaleManager localeManager)
-
getAllTranslationsForPrefix
public Map<String,String> getAllTranslationsForPrefix(String prefix, Locale locale)
-
-