public class JiraI18nResolver extends AbstractI18nResolver
By rights we should implement this in the jira-sal-plugin, but this is the one thing that we need from SAL during Bootstrap. The simple solution is to define JiraI18nResolver in jira-core and include it in BootstrapContainer, but during normal runtime we don't put it in PICO - we define it in jira-sal-plugin as expected.
IMPORTANT! JRA-25571 Do not add dependency on sal-core to jira-core: this causes Bugs due to ClassLoader issues.
| Constructor and Description |
|---|
JiraI18nResolver(JiraAuthenticationContext jiraAuthenticationContext,
I18nHelper.BeanFactory beanFactory) |
| Modifier and Type | Method and Description |
|---|---|
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 |
resolveText(Locale locale,
String key,
Serializable[] arguments)
Subclasses should implement this method to dispatch to a matching language in the given locale.
|
String |
resolveText(String key,
Serializable[] arguments)
Subclasses should implement this method to dispatch to a matching language in (in order of preference):
the user's locale
the application's configured locale, or
the system default locale
|
createMessage, createMessageCollection, getText, getText, getText, getText, getText, getTextpublic JiraI18nResolver(JiraAuthenticationContext jiraAuthenticationContext, I18nHelper.BeanFactory beanFactory)
public String resolveText(String key, Serializable[] arguments)
AbstractI18nResolverresolveText in class AbstractI18nResolverkey - the key to translate.arguments - the arguments to be inserted into the translated string.public String resolveText(Locale locale, String key, Serializable[] arguments)
AbstractI18nResolverresolveText in class AbstractI18nResolverlocale - the locale to translate into.key - the key to translate.arguments - the arguments to be inserted into the translated string.Copyright © 2002-2019 Atlassian. All Rights Reserved.