Known Direct Subclasses
|
Class Overview
Copied from sal-core.
IMPORTANT! JRA-25571 Do not add dependency on sal-core to jira-core: this causes Bugs due to ClassLoader issues.
Note: to be removed once SAL-214 is fixed.
Summary
Public Methods |
Message
|
createMessage(String key, Serializable... arguments)
|
MessageCollection
|
createMessageCollection()
|
String
|
getText(Message message)
|
String
|
getText(Locale locale, String key)
|
String
|
getText(Locale locale, Message message)
|
String
|
getText(String key)
|
String
|
getText(String key, Serializable... arguments)
|
String
|
getText(Locale locale, String key, Serializable... arguments)
|
abstract
String
|
resolveText(Locale locale, String key, Serializable[] arguments)
Subclasses should implement this method to dispatch to a matching language in the given locale.
|
abstract
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
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.sal.api.message.I18nResolver
|
Public Constructors
public
AbstractI18nResolver
()
Public Methods
public
MessageCollection
createMessageCollection
()
public
String
getText
(Message message)
Subclasses should implement this method to dispatch to a matching language in the given locale.
Parameters
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):
- the user's locale
- the application's configured locale, or
- the system default locale
Parameters
key
| the key to translate. |
arguments
| the arguments to be inserted into the translated string. |