Class AppendTextTransform

java.lang.Object
com.atlassian.jira.plugin.language.AppendTextTransform
All Implemented Interfaces:
TranslationTransform

public class AppendTextTransform extends Object implements TranslationTransform
Since:
v6.2.3
  • Constructor Details

    • AppendTextTransform

      public AppendTextTransform(String suffix)
  • Method Details

    • apply

      public String apply(Locale locale, String key, String rawMessage)
      Description copied from interface: TranslationTransform
      Given a Locale, i18n key and the rawMessage corresponding to them, apply a transformation on the message to produce a different translation.
      Specified by:
      apply in interface TranslationTransform
      Parameters:
      locale - the locale that was used to translate the input
      key - the key that was requested for translation
      rawMessage - the result of the translation lookup
      Returns:
      a potentially modified raw message