java.lang.Object | |
↳ | com.atlassian.jira.i18n.CachingI18nFactory |
As the name implies: a factory that caches for different locales I18nHelper
.
With the advent of Plugins-2 we need to iterate through all enabled plugins and get their i18n resources when an
I18nHelper
is required.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an
I18nHelper instance associated with the provided Locale . | |||||||||||
Returns an
I18nHelper instance associated with the provided User 's locale preference. | |||||||||||
An opaque string that changes whenever the underlying i18n bundles change (e.g.
| |||||||||||
This method will be called after the plugin system is fully initialised and all components added to the
dependency injection framework.
|
[Expand]
Inherited Methods | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object | |||||||||||||||
From interface
com.atlassian.jira.InitializingComponent
| |||||||||||||||
From interface
com.atlassian.jira.extension.Startable
| |||||||||||||||
From interface
com.atlassian.jira.util.I18nHelper.BeanFactory
|
Returns an I18nHelper
instance associated with the provided Locale
. Note that since JIRA 6.0
you can have an I18nHelper
injected directly into your class, and it will be specific to the
currently logged in user.
locale | the locale in play |
---|
I18nHelper
instance associated with the provided Locale
Returns an I18nHelper
instance associated with the provided User
's locale preference. Note
that since JIRA 6.0 you can have an I18nHelper
injected directly into your class, and it will be
specific to the currently logged in user.
user | the user in play |
---|
I18nHelper
instance associated with the provided User
's locale preferenceAn opaque string that changes whenever the underlying i18n bundles change (e.g. when a new translation pack is installed)
This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.