public class DefaultI18nBean extends Object implements I18nBean, Serializable
Constructor and Description |
---|
DefaultI18nBean(Locale locale,
com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAllTranslationsForPrefix(String prefix) |
ResourceBundle |
getDefaultResourceBundle() |
List<ResourceBundle> |
getI18nBundles() |
String |
getI18nRawText(String key) |
Locale |
getLocale() |
com.atlassian.plugin.PluginAccessor |
getPluginAccessor() |
String |
getRawText(Locale locale,
String key) |
String |
getText(String key) |
String |
getText(String key,
List args) |
String |
getText(String key,
Object[] args) |
String |
getText(String key,
String defaultValue) |
String |
getText(String key,
String defaultValue,
List args) |
String |
getText(String key,
String defaultValue,
Object[] args) |
String |
getText(String key,
String defaultValue,
String arg) |
boolean |
hasKey(String key) |
public DefaultI18nBean(@NotNull Locale locale, @NotNull com.atlassian.plugin.PluginAccessor pluginAccessor)
public String getI18nRawText(String key)
getI18nRawText
in interface I18nBean
public String getRawText(Locale locale, String key)
getRawText
in interface I18nBean
@NotNull public Map<String,String> getAllTranslationsForPrefix(@NotNull String prefix)
getAllTranslationsForPrefix
in interface I18nBean
public ResourceBundle getDefaultResourceBundle()
getDefaultResourceBundle
in interface I18nBean
public List<ResourceBundle> getI18nBundles()
public com.atlassian.plugin.PluginAccessor getPluginAccessor()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.