public class

I18nTranslationModeSwitch

extends Object
java.lang.Object
   ↳ com.atlassian.jira.util.i18n.I18nTranslationModeSwitch

Class Overview

This will try to switch i18n translations mode on or off depending on whether the URL has a magic parameter OR the session contains the magic attribute.

It will set it each time while these conditions are true and reverse the situation if the magic request parameter is set to off

Summary

Public Constructors
I18nTranslationModeSwitch()
Public Methods
void switchTranslationsMode(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
This can be called to turn on translations mode or turn it off depending on the presence of the URL parameter.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public I18nTranslationModeSwitch ()

Public Methods

public void switchTranslationsMode (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)

This can be called to turn on translations mode or turn it off depending on the presence of the URL parameter.

Parameters
httpServletRequest the request in play
httpServletResponse the response in play