public class

DisableTranslation

extends Object
implements TranslationTransform
java.lang.Object
   ↳ com.atlassian.jira.dev.i18n.DisableTranslation

Class Overview

A translation transform that 'disables' the translation by returning the original key, if the en_MOON locale has been used.

Summary

Public Constructors
DisableTranslation(QunitLocaleSwitcher qunitLocaleSwitcher)
Public Methods
String apply(Locale locale, String key, String rawMessage)
Given a Locale, i18n key and the rawMessage corresponding to them, apply a transformation on the message to produce a different translation.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.language.TranslationTransform

Public Constructors

public DisableTranslation (QunitLocaleSwitcher qunitLocaleSwitcher)

Public Methods

public String apply (Locale locale, String key, String rawMessage)

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