java.lang.Object | |
↳ | com.atlassian.jira.i18n.BackingI18n |
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
DEVSPEED-34: We wanted to properly cache the I18nBean. To make that happen we turned the I18nBean into a flyweight during JIRA 4.3. All of the original logic was moved into this class.
Looking up translations in plugins happens lazily. This (shouldn't) have any real world impact but it makes certain unit tests easier. (You don't need to worry about mocking out PluginAccessor.) Note that this class is cached by theCachingI18nFactory
per Locale and will
be re-created during plugin reload events.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the default
ResourceBundle within JIRA, which does not include translations provided by plugins. | |||||||||||
Given a prefix for an i18n key, this method will return all keys that start with the prefix specified.
| |||||||||||
Returns the ResourceBundle for this I18nHelper.
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found.
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
| |||||||||||
Get the raw property value, complete with {0}'s.
| |||||||||||
Same as
getUnescapedText(String) but does not apply any TranslationTransform s. | |||||||||||
For the given key, checks whether such a key is defined in the locale context represented by this helper
instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.util.I18nHelper
|
Returns the default ResourceBundle
within JIRA, which does not include translations provided by plugins.
For use cases where non-English translations are required, call getResourceBundle()
instead.
Given a prefix for an i18n key, this method will return all keys that start with the prefix specified.
prefix | The prefix for i18n keys. May not be null |
---|
Returns the ResourceBundle for this I18nHelper.
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
value5 | a value to be substituted into the message |
value6 | a value to be substituted into the message |
value7 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found.
The object passed in can be an array, aList
} or a single parameter object. It will be then
used as substitution parameters within the message.key | the key of the i18n message |
---|---|
parameters | This can be an Array, a List and Array or a single object parameter |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
value5 | a value to be substituted into the message |
value6 | a value to be substituted into the message |
value7 | a value to be substituted into the message |
value8 | a value to be substituted into the message |
value9 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
value5 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
value5 | a value to be substituted into the message |
value6 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
value5 | a value to be substituted into the message |
value6 | a value to be substituted into the message |
value7 | a value to be substituted into the message |
value8 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
value4 | a value to be substituted into the message |
value5 | a value to be substituted into the message |
value6 | a value to be substituted into the message |
value7 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
value3 | a value to be substituted into the message |
Called to return the formatted text of the specified i18n key or the key itself if no message can be found
key | the key of the i18n message |
---|---|
value1 | a value to be substituted into the message |
value2 | a value to be substituted into the message |
Get the raw property value, complete with {0}'s.
key | Non-null key to look up |
---|
Same as getUnescapedText(String)
but does not apply any TranslationTransform
s.
key | the key of the i18n message |
---|
getUntransformedRawText(String)
, whereby if this
method returns false
, getUntransformedRawText(String)
will return the key provided as an
argument, and if this method returns true
, getUntransformedRawText(String)
will generally
return the translation, which in some very unlikely cases may be equal to the key.key | translation key |
---|
true
, if any translation for such key exists, false
otherwise