com.atlassian.jira.web.action.admin.translation
Interface TranslationManager

All Known Implementing Classes:
TranslationManagerImpl

public interface TranslationManager


Method Summary
 void deleteCustomFieldTranslation(CustomField customField, Locale locale)
           
 void deleteIssueConstantTranslation(IssueConstant issueConstant, String issueConstantPrefix, Locale locale)
           
 String getCustomFieldDescriptionTranslation(CustomField customField)
          Get the translated name for the custom field or null if no translation exists.
 String getCustomFieldDescriptionTranslation(CustomField customField, Locale locale)
          Get the translated name for the custom field or null if no translation exists.
 String getCustomFieldNameTranslation(CustomField customField)
          Get the translated name for the custom field or null if no translation exists.
 String getCustomFieldNameTranslation(CustomField customField, Locale locale)
          Get the translated name for the custom field or null if no translation exists.
 Map getInstalledLocales()
           
 String getIssueConstantTranslation(IssueConstant issueConstant, boolean name, Locale locale)
           
 String getIssueConstantTranslation(IssueConstant issueConstant, boolean name, String locale)
           
 String getIssueConstantTranslation(IssueConstant issueConstant, boolean name, String locale, I18nHelper i18n)
           
 String getTranslatedDescriptionFromString(String translationString)
           
 String 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 locale
 void setIssueConstantTranslation(IssueConstant issueConstant, String issueConstantPrefix, Locale locale, String translatedName, String translatedDesc)
           
 

Method Detail

getInstalledLocales

Map getInstalledLocales()

getTranslatedNameFromString

String getTranslatedNameFromString(String translationString)

getTranslatedDescriptionFromString

String getTranslatedDescriptionFromString(String translationString)

getIssueConstantTranslation

String getIssueConstantTranslation(IssueConstant issueConstant,
                                   boolean name,
                                   String locale)

getIssueConstantTranslation

String getIssueConstantTranslation(IssueConstant issueConstant,
                                   boolean name,
                                   String locale,
                                   I18nHelper i18n)

getIssueConstantTranslation

String getIssueConstantTranslation(IssueConstant issueConstant,
                                   boolean name,
                                   Locale locale)

hasLocaleTranslation

boolean hasLocaleTranslation(IssueConstant issueConstant,
                             String locale)

setIssueConstantTranslation

void setIssueConstantTranslation(IssueConstant issueConstant,
                                 String issueConstantPrefix,
                                 Locale locale,
                                 String translatedName,
                                 String translatedDesc)

deleteIssueConstantTranslation

void deleteIssueConstantTranslation(IssueConstant issueConstant,
                                    String issueConstantPrefix,
                                    Locale locale)

getCustomFieldNameTranslation

String getCustomFieldNameTranslation(CustomField customField)
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

String getCustomFieldNameTranslation(CustomField customField,
                                     Locale locale)
Get the translated name for the custom field or null if no translation exists.

Parameters:
customField - a custom field
locale - The locale to get the translation for.
Returns:
the translated name

getCustomFieldDescriptionTranslation

String getCustomFieldDescriptionTranslation(CustomField customField)
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

String getCustomFieldDescriptionTranslation(CustomField customField,
                                            Locale locale)
Get the translated name for the custom field or null if no translation exists.

Parameters:
customField - a custom field
locale - 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 field
locale - the locale
translatedName - the translated name
translatedDesc - the translated description

deleteCustomFieldTranslation

void deleteCustomFieldTranslation(CustomField customField,
                                  Locale locale)


Copyright © 2002-2013 Atlassian. All Rights Reserved.