|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.util.i18n.I18nTranslationModeImpl
public class I18nTranslationModeImpl
This implementation class can turn on the translations mode so that i18n produced messages get sent in a specially marked up way
| Constructor Summary | |
|---|---|
I18nTranslationModeImpl()
This uses a ThreadLocal under the covers so we don't care how many instances of us there are. |
|
| Method Summary | |
|---|---|
boolean |
isTranslationMode()
|
void |
setTranslationsModeOff()
Turns off the i18n translations mode for this thread. |
void |
setTranslationsModeOn(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Attempts to turn on the i18n translations mode. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public I18nTranslationModeImpl()
| Method Detail |
|---|
public boolean isTranslationMode()
isTranslationMode in interface I18nTranslationModepublic void setTranslationsModeOff()
I18nTranslationMode
setTranslationsModeOff in interface I18nTranslationMode
public void setTranslationsModeOn(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
I18nTranslationMode
setTranslationsModeOn in interface I18nTranslationModehttpServletRequest - the request in playhttpServletResponse - the response in play
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||