public class

MockI18nTranslationMode

extends Object
implements I18nTranslationMode
java.lang.Object
   ↳ com.atlassian.jira.web.bean.MockI18nTranslationMode

Summary

Public Constructors
MockI18nTranslationMode()
MockI18nTranslationMode(boolean flag)
Public Methods
boolean isTranslationMode()
MockI18nTranslationMode setTranslationMode(boolean mode)
void setTranslationsModeOff()
Turns off the i18n translations mode for this thread.
void setTranslationsModeOn(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
Attempts to turn on the i18n translations mode.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.util.i18n.I18nTranslationMode

Public Constructors

public MockI18nTranslationMode ()

public MockI18nTranslationMode (boolean flag)

Public Methods

public boolean isTranslationMode ()

public MockI18nTranslationMode setTranslationMode (boolean mode)

public void setTranslationsModeOff ()

Turns off the i18n translations mode for this thread.

public void setTranslationsModeOn (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)

Attempts to turn on the i18n translations mode. JIRA may decide that its not sensible to turn it on

Parameters
httpServletRequest the request in play
httpServletResponse the response in play