Child pages
  • How do we change locales

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3


Code Block
<h3>Language Options</h3>
    <li><a href="<li>
        <s:url id="en" action="Welcome?request_locale=en"/>">English</a><">
            <s:param name="request_locale">en</s:param>
        <s:a href="%{en}">English</s:a>
    <li><a <li>
        <a href="<s:url action="Welcome?">
            <s:param name="request_locale=ja"/>>ja</s:param>
    <li><a <li>
        <a href="<s:url actionvalue="Welcome?.do">
            <s:param name="request_locale" value="'ru'" />

The default interceptor stack includes an i18n interceptor that watches for the request_locale parameter. The parameter name is configurable.

An alternative is to set the locale by calling the setLocale method of ActionSupport.