Interface TranslationManager
- All Known Implementing Classes:
TranslationManagerImpl
public interface TranslationManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteCustomFieldTranslation
(CustomField customField, Locale locale) void
deleteIssueConstantTranslation
(IssueConstant issueConstant, String issueConstantPrefix, Locale locale) getCustomFieldDescriptionTranslation
(CustomField customField) Get the translated name for the custom field or null if no translation exists.getCustomFieldDescriptionTranslation
(CustomField customField, Locale locale) Get the translated name for the custom field or null if no translation exists.getCustomFieldNameTranslation
(CustomField customField) Get the translated name for the custom field or null if no translation exists.getCustomFieldNameTranslation
(CustomField customField, Locale locale) Get the translated name for the custom field or null if no translation exists.getIssueConstantTranslation
(IssueConstant issueConstant, boolean name, String locale) getIssueConstantTranslation
(IssueConstant issueConstant, boolean name, String locale, I18nHelper i18n) getIssueConstantTranslation
(IssueConstant issueConstant, boolean name, Locale locale) getTranslatedDescriptionFromString
(String translationString) getTranslatedNameFromString
(String translationString) boolean
hasLocaleTranslation
(IssueConstant issueConstant, String locale) void
setCustomFieldTranslation
(CustomField customField, Locale locale, String translatedName, String translatedDesc) Store the translated name and description for a custom field in a particular localevoid
setIssueConstantTranslation
(IssueConstant issueConstant, String issueConstantPrefix, Locale locale, String translatedName, String translatedDesc)
-
Method Details
-
getInstalledLocales
Map getInstalledLocales() -
getTranslatedNameFromString
-
getTranslatedDescriptionFromString
-
getIssueConstantTranslation
-
getIssueConstantTranslation
String getIssueConstantTranslation(IssueConstant issueConstant, boolean name, String locale, I18nHelper i18n) -
getIssueConstantTranslation
-
hasLocaleTranslation
-
setIssueConstantTranslation
void setIssueConstantTranslation(IssueConstant issueConstant, String issueConstantPrefix, Locale locale, String translatedName, String translatedDesc) -
deleteIssueConstantTranslation
void deleteIssueConstantTranslation(IssueConstant issueConstant, String issueConstantPrefix, Locale locale) -
getCustomFieldNameTranslation
Get the translated name for the custom field or null if no translation exists. This will use the current authentication context- Parameters:
customField
- a custom field- Returns:
- the translated name
-
getCustomFieldNameTranslation
Get the translated name for the custom field or null if no translation exists.- Parameters:
customField
- a custom fieldlocale
- The locale to get the translation for.- Returns:
- the translated name
-
getCustomFieldDescriptionTranslation
Get the translated name for the custom field or null if no translation exists. This will use the current authentication context- Parameters:
customField
- a custom field- Returns:
- the translated name
-
getCustomFieldDescriptionTranslation
Get the translated name for the custom field or null if no translation exists.- Parameters:
customField
- a custom fieldlocale
- The locale to get the translation for.- Returns:
- the translated name
-
setCustomFieldTranslation
void setCustomFieldTranslation(CustomField customField, Locale locale, String translatedName, String translatedDesc) Store the translated name and description for a custom field in a particular locale- Parameters:
customField
- a custom fieldlocale
- the localetranslatedName
- the translated nametranslatedDesc
- the translated description
-
deleteCustomFieldTranslation
-