Interface TranslationTransform

All Known Implementing Classes:
AppendLambdaTranslationTransform, AppendTextTransform, DisableTranslation, PrependTextTransform

public interface TranslationTransform
Deprecated.
Since v7.1. This feature is deprecated and will not be supported in production in cloud as of October 2015 as it maked the content of resources unpredictable thus causing caching and pre-baking issues. It is a runtime error to have a <translation-transformation> in any plugin in production in cloud.
Implementors of this interface have the opportunity to transform the result of translation lookups made by I18nHelper.getUnescapedText(String). (and hence I18nHelper.getText(String) and all its derivatives).

This transform will occur dynamically when the translation is requested.

Since:
v5.1
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Locale locale, String key, String rawMessage)
    Deprecated.
    Given a Locale, i18n key and the rawMessage corresponding to them, apply a transformation on the message to produce a different translation.
  • Method Details

    • apply

      String apply(Locale locale, String key, String rawMessage)
      Deprecated.
      Given a Locale, i18n key and the rawMessage corresponding to them, apply a transformation on the message to produce a different translation.
      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