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