Package com.atlassian.crowd.util
Interface I18nHelper
- All Known Implementing Classes:
I18nHelperImpl
public interface I18nHelper
Gets text messages that allow for i18n.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllTranslationsForPrefix
(String prefix) Return a map of all the translated keys whose keys start with the given prefix, indexed by their key.getText
(Locale locale, String key, Serializable... arguments) getUnescapedText
(String key) getUnescapedText
(Locale locale, String key)
-
Method Details
-
getText
- Parameters:
key
- i18n key.- Returns:
- internationalised text.
-
getText
- Parameters:
key
- i18n key.value1
- first value to interpolate.- Returns:
- internationalised text.
-
getText
- Parameters:
key
- i18n key.value1
- first value to interpolate.value2
- second value to interpolate.- Returns:
- internationalised text.
-
getText
- Parameters:
key
- i18n key.parameters
- list, object array or value of parameter(s) to interpolate.- Returns:
- internationalised text.
-
getUnescapedText
- Parameters:
key
- i18n key.- Returns:
- unescaped internationalised text.
-
getUnescapedText
- Parameters:
locale
- the locale to translate into.key
- i18n key.- Returns:
- unescaped internationalised text.
-
getAllTranslationsForPrefix
Return a map of all the translated keys whose keys start with the given prefix, indexed by their key.- Parameters:
prefix
- the prefix- Returns:
- a Map of keys to translated keys
- Throws:
NullPointerException
- if prefix isnull
-
getText
- Parameters:
locale
- the locale to translate into.key
- the key to translate.arguments
- the arguments to be inserted into the translated string.- Returns:
- the translated string.
-