com.atlassian.jira.util.i18n
Class I18nTranslationModeSwitch
java.lang.Object
com.atlassian.jira.util.i18n.I18nTranslationModeSwitch
public class I18nTranslationModeSwitch
- extends Object
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
Method Summary |
void |
switchTranslationsMode(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
This can be called to turn on translations mode or turn it off depending on the presence of the URL parameter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
I18nTranslationModeSwitch
public I18nTranslationModeSwitch()
switchTranslationsMode
public void switchTranslationsMode(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.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 playhttpServletResponse
- the response in play
Copyright © 2002-2014 Atlassian. All Rights Reserved.