public class BambooI18nResolver extends Object implements com.atlassian.sal.api.message.I18nResolver
Constructor and Description |
---|
BambooI18nResolver(I18nBeanFactory i18nBeanFactory) |
Modifier and Type | Method and Description |
---|---|
com.atlassian.sal.api.message.Message |
createMessage(String key,
Serializable... arguments) |
com.atlassian.sal.api.message.MessageCollection |
createMessageCollection() |
Map<String,String> |
getAllTranslationsForPrefix(String prefix) |
Map<String,String> |
getAllTranslationsForPrefix(String prefix,
Locale locale) |
String |
getRawText(Locale locale,
String key) |
String |
getRawText(String key) |
String |
getText(Locale locale,
com.atlassian.sal.api.message.Message message) |
String |
getText(Locale locale,
String key) |
String |
getText(Locale locale,
String key,
Serializable... arguments) |
String |
getText(com.atlassian.sal.api.message.Message message) |
String |
getText(String key) |
String |
getText(String key,
Serializable... arguments) |
public BambooI18nResolver(I18nBeanFactory i18nBeanFactory)
public String getText(String key, Serializable... arguments)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(Locale locale, String key, Serializable... arguments)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(String key)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(Locale locale, String key)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(com.atlassian.sal.api.message.Message message)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public String getText(Locale locale, com.atlassian.sal.api.message.Message message)
getText
in interface com.atlassian.sal.api.message.I18nResolver
public com.atlassian.sal.api.message.Message createMessage(String key, Serializable... arguments)
createMessage
in interface com.atlassian.sal.api.message.I18nResolver
public com.atlassian.sal.api.message.MessageCollection createMessageCollection()
createMessageCollection
in interface com.atlassian.sal.api.message.I18nResolver
public Map<String,String> getAllTranslationsForPrefix(String prefix, Locale locale)
getAllTranslationsForPrefix
in interface com.atlassian.sal.api.message.I18nResolver
public Map<String,String> getAllTranslationsForPrefix(String prefix)
getAllTranslationsForPrefix
in interface com.atlassian.sal.api.message.I18nResolver
public String getRawText(String key)
getRawText
in interface com.atlassian.sal.api.message.I18nResolver
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.