com.atlassian.jira.dev.i18n
Class DisableTranslation

java.lang.Object
  extended by com.atlassian.jira.dev.i18n.DisableTranslation
All Implemented Interfaces:
TranslationTransform

public class DisableTranslation
extends Object
implements TranslationTransform

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

Since:
v6.3

Constructor Summary
DisableTranslation(QunitLocaleSwitcher qunitLocaleSwitcher)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisableTranslation

public DisableTranslation(QunitLocaleSwitcher qunitLocaleSwitcher)
Method Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.