java.lang.Object | ||
↳ | com.atlassian.jira.i18n.AbstractI18nResolver | |
↳ | com.atlassian.jira.i18n.JiraI18nResolver |
A JIRA I18nResolver. Uses the user's locale if a user is logged in or the default locale if none can be found.
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Subclasses should implement this method to dispatch to a matching language in the given locale.
| |||||||||||
Subclasses should implement this method to dispatch to a matching language in (in order of preference):
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.i18n.AbstractI18nResolver
| |||||||||||||||||||||||||||||||||||
From class java.lang.Object | |||||||||||||||||||||||||||||||||||
From interface
com.atlassian.sal.api.message.I18nResolver
|
Subclasses should implement this method to dispatch to a matching language in the given locale.
locale | the locale to translate into. |
---|---|
key | the key to translate. |
arguments | the arguments to be inserted into the translated string. |
Subclasses should implement this method to dispatch to a matching language in (in order of preference):
key | the key to translate. |
---|---|
arguments | the arguments to be inserted into the translated string. |