public interface

I18nTranslationMode

com.atlassian.jira.util.i18n.I18nTranslationMode
Known Indirect Subclasses

Class Overview

This allows a plugin or JIRA to set a special translations mode flag on for the current thread. The I18n text generated after that will be is a special meta data mode.

JIRA will check the HttpServletRequest for sensibleness however and hence it may not be set.

Summary

Public Methods
boolean isTranslationMode()
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.

Public Methods

public boolean isTranslationMode ()

Returns
  • true if the I18n translations mode is on for this thread

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