Pārlūkot izejas kodu

add language html tag and http header

Jason Rivard 9 gadi atpakaļ
vecāks
revīzija
3f7a46cf45
100 mainītis faili ar 136 papildinājumiem un 186 dzēšanām
  1. 1 0
      src/main/java/password/pwm/AppProperty.java
  2. 1 0
      src/main/java/password/pwm/PwmConstants.java
  3. 21 13
      src/main/java/password/pwm/http/filter/RequestInitializationFilter.java
  4. 0 74
      src/main/java/password/pwm/http/tag/LocaleOrientationTag.java
  5. 19 0
      src/main/java/password/pwm/http/tag/value/PwmValue.java
  6. 1 0
      src/main/resources/password/pwm/AppProperty.properties
  7. 1 1
      src/main/webapp/WEB-INF/jsp/activateuser-agreement.jsp
  8. 1 1
      src/main/webapp/WEB-INF/jsp/activateuser-entercode.jsp
  9. 1 1
      src/main/webapp/WEB-INF/jsp/activateuser.jsp
  10. 1 1
      src/main/webapp/WEB-INF/jsp/admin-activity.jsp
  11. 1 1
      src/main/webapp/WEB-INF/jsp/admin-analysis.jsp
  12. 1 1
      src/main/webapp/WEB-INF/jsp/admin-dashboard.jsp
  13. 1 1
      src/main/webapp/WEB-INF/jsp/admin-logview-window.jsp
  14. 1 1
      src/main/webapp/WEB-INF/jsp/admin-logview.jsp
  15. 1 1
      src/main/webapp/WEB-INF/jsp/admin-tokenlookup.jsp
  16. 1 1
      src/main/webapp/WEB-INF/jsp/admin-urlreference.jsp
  17. 1 1
      src/main/webapp/WEB-INF/jsp/admin-user-debug.jsp
  18. 1 1
      src/main/webapp/WEB-INF/jsp/captcha.jsp
  19. 1 1
      src/main/webapp/WEB-INF/jsp/changepassword-agreement.jsp
  20. 1 1
      src/main/webapp/WEB-INF/jsp/changepassword-complete.jsp
  21. 1 1
      src/main/webapp/WEB-INF/jsp/changepassword-form.jsp
  22. 1 1
      src/main/webapp/WEB-INF/jsp/changepassword-wait.jsp
  23. 1 1
      src/main/webapp/WEB-INF/jsp/changepassword-warn.jsp
  24. 1 1
      src/main/webapp/WEB-INF/jsp/changepassword.jsp
  25. 1 1
      src/main/webapp/WEB-INF/jsp/configeditor.jsp
  26. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-app.jsp
  27. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-cr_storage.jsp
  28. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-database.jsp
  29. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-end.jsp
  30. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_admins.jsp
  31. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_cert.jsp
  32. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_context.jsp
  33. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_permissions.jsp
  34. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_proxy.jsp
  35. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_schema.jsp
  36. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_server.jsp
  37. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-ldap_testuser.jsp
  38. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-password.jsp
  39. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-start.jsp
  40. 1 1
      src/main/webapp/WEB-INF/jsp/configguide-template.jsp
  41. 1 1
      src/main/webapp/WEB-INF/jsp/configmanager-localdb.jsp
  42. 1 1
      src/main/webapp/WEB-INF/jsp/configmanager-login.jsp
  43. 1 1
      src/main/webapp/WEB-INF/jsp/configmanager-permissions.jsp
  44. 1 1
      src/main/webapp/WEB-INF/jsp/configmanager-summary.jsp
  45. 1 1
      src/main/webapp/WEB-INF/jsp/configmanager-wordlists.jsp
  46. 1 1
      src/main/webapp/WEB-INF/jsp/configmanager.jsp
  47. 1 1
      src/main/webapp/WEB-INF/jsp/error.jsp
  48. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-actionchoice.jsp
  49. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-attributes.jsp
  50. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-enterotp.jsp
  51. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-entertoken.jsp
  52. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-method.jsp
  53. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-naaf.jsp
  54. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-remote.jsp
  55. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-responses.jsp
  56. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-search.jsp
  57. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenpassword-tokenchoice.jsp
  58. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenusername-complete.jsp
  59. 1 1
      src/main/webapp/WEB-INF/jsp/forgottenusername-search.jsp
  60. 1 1
      src/main/webapp/WEB-INF/jsp/fragment/footer.jsp
  61. 1 1
      src/main/webapp/WEB-INF/jsp/guest-create.jsp
  62. 1 1
      src/main/webapp/WEB-INF/jsp/guest-search.jsp
  63. 1 1
      src/main/webapp/WEB-INF/jsp/guest-update.jsp
  64. 1 1
      src/main/webapp/WEB-INF/jsp/helpdesk-detail.jsp
  65. 1 1
      src/main/webapp/WEB-INF/jsp/helpdesk.jsp
  66. 1 1
      src/main/webapp/WEB-INF/jsp/init.jsp
  67. 1 1
      src/main/webapp/WEB-INF/jsp/login-passwordonly.jsp
  68. 1 1
      src/main/webapp/WEB-INF/jsp/login.jsp
  69. 1 1
      src/main/webapp/WEB-INF/jsp/logout.jsp
  70. 1 1
      src/main/webapp/WEB-INF/jsp/newuser-agreement.jsp
  71. 1 1
      src/main/webapp/WEB-INF/jsp/newuser-entercode.jsp
  72. 1 1
      src/main/webapp/WEB-INF/jsp/newuser-profilechoice.jsp
  73. 1 1
      src/main/webapp/WEB-INF/jsp/newuser-wait.jsp
  74. 1 1
      src/main/webapp/WEB-INF/jsp/newuser.jsp
  75. 1 1
      src/main/webapp/WEB-INF/jsp/peoplesearch.jsp
  76. 1 1
      src/main/webapp/WEB-INF/jsp/setupotpsecret-existing.jsp
  77. 1 1
      src/main/webapp/WEB-INF/jsp/setupotpsecret-success.jsp
  78. 1 1
      src/main/webapp/WEB-INF/jsp/setupotpsecret-test.jsp
  79. 1 1
      src/main/webapp/WEB-INF/jsp/setupotpsecret.jsp
  80. 1 1
      src/main/webapp/WEB-INF/jsp/setupresponses-confirm.jsp
  81. 1 1
      src/main/webapp/WEB-INF/jsp/setupresponses-existing.jsp
  82. 1 1
      src/main/webapp/WEB-INF/jsp/setupresponses-helpdesk.jsp
  83. 1 1
      src/main/webapp/WEB-INF/jsp/setupresponses.jsp
  84. 1 1
      src/main/webapp/WEB-INF/jsp/shortcut.jsp
  85. 1 1
      src/main/webapp/WEB-INF/jsp/success.jsp
  86. 1 1
      src/main/webapp/WEB-INF/jsp/updateprofile-agreement.jsp
  87. 1 1
      src/main/webapp/WEB-INF/jsp/updateprofile-confirm.jsp
  88. 1 1
      src/main/webapp/WEB-INF/jsp/updateprofile-entercode.jsp
  89. 1 1
      src/main/webapp/WEB-INF/jsp/updateprofile.jsp
  90. 1 1
      src/main/webapp/WEB-INF/jsp/userinfo.jsp
  91. 0 6
      src/main/webapp/WEB-INF/pwm-taglib.tld
  92. 1 1
      src/main/webapp/config/index.jsp
  93. 1 1
      src/main/webapp/index.jsp
  94. 1 1
      src/main/webapp/private/config/index.jsp
  95. 1 1
      src/main/webapp/private/index.jsp
  96. 1 1
      src/main/webapp/public/health.jsp
  97. 1 1
      src/main/webapp/public/index.jsp
  98. 1 1
      src/main/webapp/public/localeselect.jsp
  99. 1 1
      src/main/webapp/public/randomgen.jsp
  100. 1 1
      src/main/webapp/public/reference/displaystrings.jsp

+ 1 - 0
src/main/java/password/pwm/AppProperty.java

@@ -87,6 +87,7 @@ public enum AppProperty {
     HTTP_ENABLE_GZIP                                ("http.gzip.enable"),
     HTTP_ERRORS_ALLOW_HTML                          ("http.errors.allowHtml"),
     HTTP_HEADER_SERVER                              ("http.header.server"),
+    HTTP_HEADER_SEND_CONTENT_LANGUAGE               ("http.header.sendContentLanguage"),
     HTTP_HEADER_SEND_XAMB                           ("http.header.sendXAmb"),
     HTTP_HEADER_SEND_XINSTANCE                      ("http.header.sendXInstance"),
     HTTP_HEADER_SEND_XNOISE                         ("http.header.sendXNoise"),

+ 1 - 0
src/main/java/password/pwm/PwmConstants.java

@@ -341,6 +341,7 @@ public abstract class PwmConstants {
         WWW_Authenticate("WWW-Authenticate"),
         ContentDisposition("content-disposition"),
         ContentTransferEncoding("Content-Transfer-Encoding"),
+        Content_Language("Content-Language"),
         Accept_Encoding("Accept-Encoding"),
         Accept_Language("Accept-Language"),
         Authorization("Authorization"),

+ 21 - 13
src/main/java/password/pwm/http/filter/RequestInitializationFilter.java

@@ -105,10 +105,10 @@ public class RequestInitializationFilter implements Filter {
 
             checkIfSessionRecycleNeeded(pwmRequest);
 
-            addPwmResponseHeaders(pwmRequest);
-
             handleRequestInitialization(pwmRequest);
 
+            addPwmResponseHeaders(pwmRequest);
+
             try {
                 handleRequestSecurityChecks(pwmRequest);
             } catch (PwmUnrecoverableException e) {
@@ -224,21 +224,21 @@ public class RequestInitializationFilter implements Filter {
         }
         final PwmApplication pwmApplication = pwmRequest.getPwmApplication();
         final PwmSession pwmSession = pwmRequest.getPwmSession();
+        final Configuration config = pwmApplication.getConfig();
         final PwmResponse resp = pwmRequest.getPwmResponse();
 
         if (resp.isCommitted()) {
             return;
         }
 
-        final String serverHeader = pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SERVER);
-
-        final boolean includeXInstance = Boolean.parseBoolean(pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SEND_XINSTANCE));
-        final boolean includeXSessionID = Boolean.parseBoolean(pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SEND_XSESSIONID));
-        final boolean includeXVersion = Boolean.parseBoolean(pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SEND_XVERSION));
-        final boolean includeXContentTypeOptions = Boolean.parseBoolean(pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SEND_XCONTENTTYPEOPTIONS));
-        final boolean includeXXSSProtection = Boolean.parseBoolean(pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SEND_XXSSPROTECTION));
+        final String serverHeader = config.readAppProperty(AppProperty.HTTP_HEADER_SERVER);
+        final boolean includeXInstance = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_XINSTANCE));
+        final boolean includeXSessionID = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_XSESSIONID));
+        final boolean includeXVersion = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_XVERSION));
+        final boolean includeXContentTypeOptions = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_XCONTENTTYPEOPTIONS));
+        final boolean includeXXSSProtection = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_XXSSPROTECTION));
 
-        final boolean sendNoise = Boolean.parseBoolean(pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SEND_XNOISE));
+        final boolean sendNoise = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_XNOISE));
 
         if (sendNoise) {
             resp.setHeader(
@@ -272,12 +272,16 @@ public class RequestInitializationFilter implements Filter {
             resp.setHeader(PwmConstants.HttpHeader.Server, value);
         }
 
+
         if (pwmRequest.getURL().isResourceURL()) {
             return;
         }
 
-        final boolean includeXFrameDeny = pwmApplication.getConfig().readSettingAsBoolean(PwmSetting.SECURITY_PREVENT_FRAMING);
-        final boolean includeXAmb = Boolean.parseBoolean(pwmApplication.getConfig().readAppProperty(AppProperty.HTTP_HEADER_SEND_XAMB));
+        // ----- non-resource urls only for the following operations -----
+
+        final boolean includeXFrameDeny = config.readSettingAsBoolean(PwmSetting.SECURITY_PREVENT_FRAMING);
+        final boolean includeXAmb = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_XAMB));
+        final boolean includeContentLanguage = Boolean.parseBoolean(config.readAppProperty(AppProperty.HTTP_HEADER_SEND_CONTENT_LANGUAGE));
 
         if (includeXFrameDeny) {
             resp.setHeader(PwmConstants.HttpHeader.XFrameOptions, "DENY");
@@ -287,10 +291,14 @@ public class RequestInitializationFilter implements Filter {
             resp.setHeader(PwmConstants.HttpHeader.XAmb, PwmConstants.X_AMB_HEADER[PwmRandom.getInstance().nextInt(PwmConstants.X_AMB_HEADER.length)]);
         }
 
+        if (includeContentLanguage) {
+            resp.setHeader(PwmConstants.HttpHeader.Content_Language, pwmRequest.getLocale().toLanguageTag());
+        }
+
         resp.setHeader(PwmConstants.HttpHeader.Cache_Control, "no-cache, no-store, must-revalidate, proxy-revalidate");
 
         if (pwmSession != null) {
-            final String contentPolicy = pwmApplication.getConfig().readSettingAsString(PwmSetting.SECURITY_CSP_HEADER);
+            final String contentPolicy = config.readSettingAsString(PwmSetting.SECURITY_CSP_HEADER);
             if (contentPolicy != null && !contentPolicy.isEmpty()) {
                 final String nonce = pwmRequest.getCspNonce();
                 final String expandedPolicy = contentPolicy.replace("%NONCE%", nonce);

+ 0 - 74
src/main/java/password/pwm/http/tag/LocaleOrientationTag.java

@@ -1,74 +0,0 @@
-/*
- * Password Management Servlets (PWM)
- * http://code.google.com/p/pwm/
- *
- * Copyright (c) 2006-2009 Novell, Inc.
- * Copyright (c) 2009-2015 The PWM Project
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- */
-
-package password.pwm.http.tag;
-
-import password.pwm.http.PwmSessionWrapper;
-import password.pwm.util.logging.PwmLogger;
-
-import javax.servlet.http.HttpServletRequest;
-import java.awt.*;
-import java.util.Locale;
-
-public class LocaleOrientationTag extends PwmAbstractTag {
-
-    private static final PwmLogger LOGGER = PwmLogger.forClass(LocaleOrientationTag.class);
-
-    private String locale;
-
-
-    public String getLocale() {
-        return locale;
-    }
-
-    public void setLocale(String locale) {
-        this.locale = locale;
-    }
-
-
-    public int doEndTag()
-            throws javax.servlet.jsp.JspTagException {
-        try {
-            final HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
-            final Locale userLocale;
-            if (locale != null && locale.length() > 1) {
-                userLocale = new Locale(locale);
-            } else {
-                userLocale = PwmSessionWrapper.readPwmSession(req).getSessionStateBean().getLocale();
-            }
-
-            if (userLocale != null) {
-                final ComponentOrientation orient = ComponentOrientation.getOrientation(userLocale);
-
-                final String outputText = orient != null && !orient.isLeftToRight() ? "rtl" : "ltr";
-                pageContext.getOut().write(outputText);
-            } else {
-                pageContext.getOut().write("ltr");
-            }
-
-        } catch (Exception e) {
-            LOGGER.error("error while executing jsp locale orientation tag: " + e.getMessage());
-            return EVAL_PAGE;
-        }
-        return EVAL_PAGE;
-    }
-}

+ 19 - 0
src/main/java/password/pwm/http/tag/value/PwmValue.java

@@ -16,6 +16,8 @@ import password.pwm.ws.server.rest.RestAppDataServer;
 
 import javax.servlet.jsp.JspPage;
 import javax.servlet.jsp.PageContext;
+import java.awt.*;
+import java.util.Locale;
 
 public enum PwmValue {
 
@@ -30,6 +32,8 @@ public enum PwmValue {
     username(new UsernameOutput()),
     clientETag(new ClientETag()),
     restClientKey(new RestClientKey()),
+    localeCode(new LocaleCodeOutput()),
+    localeDir(new LocaleDirOutput()),
 
     ;
 
@@ -180,4 +184,19 @@ public enum PwmValue {
         }
     }
 
+    static class LocaleCodeOutput implements ValueOutput {
+        @Override
+        public String valueOutput(PwmRequest pwmRequest, PageContext pageContext) throws ChaiUnavailableException, PwmUnrecoverableException {
+            return pwmRequest.getLocale().toLanguageTag();
+        }
+    }
+
+    static class LocaleDirOutput implements ValueOutput {
+        @Override
+        public String valueOutput(PwmRequest pwmRequest, PageContext pageContext) throws ChaiUnavailableException, PwmUnrecoverableException {
+            final Locale locale = pwmRequest.getLocale();
+            final ComponentOrientation orient = ComponentOrientation.getOrientation(locale);
+            return orient != null && !orient.isLeftToRight() ? "rtl" : "ltr";
+        }
+    }
 }

+ 1 - 0
src/main/resources/password/pwm/AppProperty.properties

@@ -79,6 +79,7 @@ http.errors.allowHtml=true
 http.basicAuth.charset=UTF-8
 http.body.maxReadLength=10485760
 http.header.server=@PwmAppName@
+http.header.sendContentLanguage=true
 http.header.sendXAmb=true
 http.header.sendXInstance=true
 http.header.sendXNoise=true

+ 1 - 1
src/main/webapp/WEB-INF/jsp/activateuser-agreement.jsp

@@ -26,7 +26,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final ActivateUserBean activateUserBean = JspUtility.getSessionBean(pageContext, ActivateUserBean.class); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/activateuser-entercode.jsp

@@ -27,7 +27,7 @@
 <%@ page import="password.pwm.http.tag.conditional.PwmIfTest" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <%@ include file="fragment/header.jsp" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <body class="nihilo">
 <div id="wrapper">
     <jsp:include page="fragment/header-body.jsp">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/activateuser.jsp

@@ -24,7 +24,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-activity.jsp

@@ -37,7 +37,7 @@
         JspUtility.logError(pageContext, "error during page setup: " + e.getMessage());
     }
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <style nonce="<pwm:value name="<%=PwmValue.cspNonce%>"/>" type="text/css">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-analysis.jsp

@@ -50,7 +50,7 @@
         JspUtility.logError(pageContext, "error during page setup: " + e.getMessage());
     }
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-dashboard.jsp

@@ -58,7 +58,7 @@
         JspUtility.logError(pageContext, "error during page setup: " + e.getMessage());
     }
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-logview-window.jsp

@@ -33,7 +33,7 @@
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_FOOTER_TEXT); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.NO_REQ_COUNTER); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.NO_IDLE_TIMEOUT); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <% final PwmRequest pwmRequest = PwmRequest.forRequest(request,response); %>
 <% final LocalDBLogger localDBLogger = pwmRequest.getPwmApplication().getLocalDBLogger(); %>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-logview.jsp

@@ -34,7 +34,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <% final PwmRequest pwmRequest = PwmRequest.forRequest(request,response); %>
 <% final NumberFormat numberFormat = NumberFormat.getInstance(pwmRequest.getLocale()); %>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-tokenlookup.jsp

@@ -39,7 +39,7 @@
         JspUtility.logError(pageContext, "error during page setup: " + e.getMessage());
     }
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-urlreference.jsp

@@ -23,7 +23,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin-user-debug.jsp

@@ -29,7 +29,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/captcha.jsp

@@ -25,7 +25,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <%-- begin reCaptcha section (http://code.google.com/apis/recaptcha/docs/display.html) --%>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/changepassword-agreement.jsp

@@ -26,7 +26,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/changepassword-complete.jsp

@@ -25,7 +25,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/changepassword-form.jsp

@@ -30,7 +30,7 @@
 <% final PasswordStatus passwordStatus = JspUtility.getPwmSession(pageContext).getUserInfoBean().getPasswordState(); %>
 <% final ChangePasswordBean changePasswordBean = JspUtility.getSessionBean(pageContext, ChangePasswordBean.class); %>
 
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/changepassword-wait.jsp

@@ -29,7 +29,7 @@
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_FOOTER_TEXT);%>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <%

+ 1 - 1
src/main/webapp/WEB-INF/jsp/changepassword-warn.jsp

@@ -32,7 +32,7 @@
 <% final LocalSessionStateBean ssBean = JspUtility.getPwmSession(pageContext).getSessionStateBean(); %>
 <% final DateFormat dateFormatter = java.text.DateFormat.getDateInstance(DateFormat.FULL, ssBean.getLocale()); %>
 <% final DateFormat timeFormatter = java.text.DateFormat.getTimeInstance(DateFormat.FULL, ssBean.getLocale()); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/changepassword.jsp

@@ -29,7 +29,7 @@
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final PwmRequest changepassword_pwmRequest = PwmRequest.forRequest(request,response); %>
 <% final PasswordStatus passwordStatus = changepassword_pwmRequest.getPwmSession().getUserInfoBean().getPasswordState(); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configeditor.jsp

@@ -26,7 +26,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_LOCALE); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_FOOTER_TEXT); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_THEME); %>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-app.jsp

@@ -27,7 +27,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-cr_storage.jsp

@@ -27,7 +27,7 @@
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <% String selectedTemplate = configGuideBean.getFormData().get(ConfigGuideForm.FormParameter.PARAM_TEMPLATE_STORAGE); %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-database.jsp

@@ -30,7 +30,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-end.jsp

@@ -28,7 +28,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_admins.jsp

@@ -28,7 +28,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_cert.jsp

@@ -33,7 +33,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_context.jsp

@@ -28,7 +28,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_permissions.jsp

@@ -38,7 +38,7 @@
     }
 %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_proxy.jsp

@@ -27,7 +27,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_schema.jsp

@@ -39,7 +39,7 @@
     }
 %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_server.jsp

@@ -27,7 +27,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-ldap_testuser.jsp

@@ -28,7 +28,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-password.jsp

@@ -26,7 +26,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-start.jsp

@@ -28,7 +28,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configguide-template.jsp

@@ -27,7 +27,7 @@
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% ConfigGuideBean configGuideBean = JspUtility.getSessionBean(pageContext, ConfigGuideBean.class);%>
 <% String selectedTemplate = configGuideBean.getFormData().get(ConfigGuideForm.FormParameter.PARAM_TEMPLATE_LDAP); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configmanager-localdb.jsp

@@ -43,7 +43,7 @@
 %>
 
 
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configmanagerStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configmanager-login.jsp

@@ -35,7 +35,7 @@
 %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_HEADER_WARNINGS); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_LOCALE);%>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <pwm:script-ref url="/public/resources/js/configmanager.js"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configmanager-permissions.jsp

@@ -29,7 +29,7 @@
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.NO_REQ_COUNTER); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_HEADER_BUTTONS); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_FOOTER_TEXT); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configmanager-summary.jsp

@@ -47,7 +47,7 @@
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.NO_REQ_COUNTER); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_HEADER_BUTTONS); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_FOOTER_TEXT); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configmanager-wordlists.jsp

@@ -27,7 +27,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configmanagerStyle.css'/>" rel="stylesheet" type="text/css"/><div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/configmanager.jsp

@@ -35,7 +35,7 @@
 <%
     final PwmRequest pwmRequest = JspUtility.getPwmRequest(pageContext);
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <link href="<pwm:context/><pwm:url url='/public/resources/configmanagerStyle.css'/>" rel="stylesheet" type="text/css"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/error.jsp

@@ -29,7 +29,7 @@
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final ErrorInformation errorInformation = (ErrorInformation)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.PwmErrorInfo); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_HEADER_BUTTONS); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.HIDE_HEADER_WARNINGS); %>
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.NO_REQ_COUNTER); %>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-actionchoice.jsp

@@ -24,7 +24,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-attributes.jsp

@@ -34,7 +34,7 @@
 <% final LocalSessionStateBean ssBean = pwmRequest.getPwmSession().getSessionStateBean(); %>
 <% final ForgottenPasswordBean recoverBean = JspUtility.getSessionBean(pageContext, ForgottenPasswordBean.class); %>
 <% final List<FormConfiguration> requiredAttrParams = recoverBean.getAttributeForm(); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <%--
 in the body onload below, the true parameter toggles the hide button an extra time to default the page to hiding the responses.

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-enterotp.jsp

@@ -28,7 +28,7 @@
 <%@ page import="password.pwm.http.tag.conditional.PwmIfTest" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <%@ include file="fragment/header.jsp" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <body class="nihilo">
 <div id="wrapper">
     <jsp:include page="fragment/header-body.jsp">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-entertoken.jsp

@@ -27,7 +27,7 @@
 <%@ page import="password.pwm.http.tag.conditional.PwmIfTest" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <%@ include file="fragment/header.jsp" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <body class="nihilo">
 <div id="wrapper">
     <jsp:include page="fragment/header-body.jsp">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-method.jsp

@@ -31,7 +31,7 @@
     final PwmRequest pwmRequest = PwmRequest.forRequest(request, response);
     final Set<RecoveryVerificationMethods> methods = new HashSet<RecoveryVerificationMethods>((Set<RecoveryVerificationMethods>) JspUtility.getAttribute(pageContext, PwmRequest.Attribute.AvailableAuthMethods));
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-naaf.jsp

@@ -27,7 +27,7 @@
 <%@ page import="password.pwm.http.tag.conditional.PwmIfTest" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <%@ include file="fragment/header.jsp" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <body class="nihilo">
 <div id="wrapper">
     <jsp:include page="fragment/header-body.jsp">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-remote.jsp

@@ -27,7 +27,7 @@
 <%@ page import="password.pwm.http.tag.conditional.PwmIfTest" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <%@ include file="fragment/header.jsp" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <body class="nihilo">
 <div id="wrapper">
     <jsp:include page="fragment/header-body.jsp">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-responses.jsp

@@ -28,7 +28,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final ChallengeSet challengeSet = (ChallengeSet)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.ForgottenPasswordChallengeSet); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <%--
 in the body onload below, the true parameter toggles the hide button an extra time to default the page to hiding the responses.

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-search.jsp

@@ -25,7 +25,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenpassword-tokenchoice.jsp

@@ -24,7 +24,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenusername-complete.jsp

@@ -26,7 +26,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/forgottenusername-search.jsp

@@ -24,7 +24,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/fragment/footer.jsp

@@ -98,5 +98,5 @@
         });
     </script>
 </pwm:script>
-<script nonce="<pwm:value name="<%=PwmValue.cspNonce%>"/>" data-dojo-config="async: true" dojo-sync-loader="false" type="text/javascript" src="<pwm:context/><pwm:url url='/public/resources/dojo/dojo/dojo.js'/>"></script>
+<script nonce="<pwm:value name="<%=PwmValue.cspNonce%>"/>" data-dojo-config="async: true" dojo-sync-loader="false" type="text/javascript" src="<pwm:url addContext="true" url='//public/resources/dojo/dojo/dojo.js'/>"></script>
 <pwm:script-ref url="/public/resources/js/main.js"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/guest-create.jsp

@@ -28,7 +28,7 @@
 <% final String maxValidDate = (String)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.GuestMaximumExpirationDate); %>
 <% final String selectedDate = (String)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.GuestCurrentExpirationDate); %>
 <% final String maxValidDays = (String)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.GuestMaximumValidDays); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/guest-search.jsp

@@ -23,7 +23,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/guest-update.jsp

@@ -27,7 +27,7 @@
 <% final String maxValidDate = (String)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.GuestMaximumExpirationDate); %>
 <% final String selectedDate = (String)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.GuestCurrentExpirationDate); %>
 <% final String maxValidDays = (String)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.GuestMaximumValidDays); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/helpdesk-detail.jsp

@@ -64,7 +64,7 @@
     final Set<ViewStatusFields> viewStatusFields = helpdeskProfile.readSettingAsOptionList(PwmSetting.HELPDESK_VIEW_STATUS_VALUES,ViewStatusFields.class);
     final boolean hasOtp = searchedUserInfo.getOtpUserRecord() != null;
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/helpdesk.jsp

@@ -23,7 +23,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/init.jsp

@@ -25,7 +25,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final String nextURL = (String)request.getAttribute("Location"); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <meta id="meta-redirect" http-equiv="refresh" content="30;url='<%=StringUtil.escapeHtml(nextURL)%>'"><%-- failsafe... --%>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/login-passwordonly.jsp

@@ -25,7 +25,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper" class="login-wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/login.jsp

@@ -25,7 +25,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper" class="login-wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/logout.jsp

@@ -26,7 +26,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/newuser-agreement.jsp

@@ -25,7 +25,7 @@
 
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/newuser-entercode.jsp

@@ -32,7 +32,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/newuser-profilechoice.jsp

@@ -32,7 +32,7 @@
     final PwmRequest pwmRequest = PwmRequest.forRequest(request, response);
     final Map<String,NewUserProfile> newUserProfiles = pwmRequest.getConfig().getNewUserProfiles();
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/newuser-wait.jsp

@@ -28,7 +28,7 @@
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.NO_IDLE_TIMEOUT); %>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <%

+ 1 - 1
src/main/webapp/WEB-INF/jsp/newuser.jsp

@@ -27,7 +27,7 @@
 <% JspUtility.setFlag(pageContext, PwmRequestFlag.ALWAYS_EXPAND_MESSAGE_TEXT); %>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/peoplesearch.jsp

@@ -23,7 +23,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper" class="peoplesearch-wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupotpsecret-existing.jsp

@@ -23,7 +23,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupotpsecret-success.jsp

@@ -32,7 +32,7 @@
     final OTPUserRecord otpUserRecord = otpBean.getOtpUserRecord();
     final String ident = otpUserRecord.getIdentifier();
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <pwm:script-ref url="/public/resources/js/responses.js"/>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupotpsecret-test.jsp

@@ -28,7 +28,7 @@
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final SetupOtpBean otpBean = JspUtility.getSessionBean(pageContext,SetupOtpBean.class); %>
 <% final int otpTokenLength = PwmRequest.forRequest(request,response).getPwmApplication().getOtpService().getSettings().getOtpTokenLength(); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupotpsecret.jsp

@@ -43,7 +43,7 @@
     }
 
 %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupresponses-confirm.jsp

@@ -28,7 +28,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final SetupResponsesBean responseBean = (SetupResponsesBean)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.ModuleBean); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupresponses-existing.jsp

@@ -27,7 +27,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <% final ResponseInfoBean responseInfoBean = (ResponseInfoBean)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.SetupResponses_ResponseInfo); %>
 <body class="nihilo">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupresponses-helpdesk.jsp

@@ -28,7 +28,7 @@
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final SetupResponsesBean responseBean = (SetupResponsesBean)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.ModuleBean); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/setupresponses.jsp

@@ -25,7 +25,7 @@
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final SetupResponsesBean responseBean = (SetupResponsesBean)JspUtility.getAttribute(pageContext, PwmRequest.Attribute.ModuleBean); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/shortcut.jsp

@@ -30,7 +30,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <%

+ 1 - 1
src/main/webapp/WEB-INF/jsp/success.jsp

@@ -26,7 +26,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/updateprofile-agreement.jsp

@@ -25,7 +25,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/updateprofile-confirm.jsp

@@ -29,7 +29,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <% final PwmRequest pwmRequest = JspUtility.getPwmRequest(pageContext);%>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/updateprofile-entercode.jsp

@@ -34,7 +34,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/updateprofile.jsp

@@ -24,7 +24,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/WEB-INF/jsp/userinfo.jsp

@@ -55,7 +55,7 @@
     final Locale userLocale = userinfo_pwmRequest.getLocale();
 %>
 
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper" class="nihilo">

+ 0 - 6
src/main/webapp/WEB-INF/pwm-taglib.tld

@@ -186,12 +186,6 @@
         <body-content>empty</body-content>
         <description>Displays the context url path</description>
     </tag>
-    <tag>
-        <name>LocaleOrientation</name>
-        <tag-class>password.pwm.http.tag.LocaleOrientationTag</tag-class>
-        <body-content>empty</body-content>
-        <description>Output text "rtl" or "ltr" depending on session locale</description>
-    </tag>
     <tag>
         <name>if</name>
         <tag-class>password.pwm.http.tag.conditional.PwmIfTag</tag-class>

+ 1 - 1
src/main/webapp/config/index.jsp

@@ -24,7 +24,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <jsp:include page="/WEB-INF/jsp/fragment/header.jsp"/>
 <body>
 <meta http-equiv="refresh" content="0;url=<pwm:context/><pwm:url url="/private/config/ConfigManager"/>"/>

+ 1 - 1
src/main/webapp/index.jsp

@@ -24,7 +24,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <%

+ 1 - 1
src/main/webapp/private/config/index.jsp

@@ -24,7 +24,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <jsp:include page="/WEB-INF/jsp/fragment/header.jsp"/>
 <body>
 <meta http-equiv="refresh" content="0;url=<pwm:context/><pwm:url url="/private/config/ConfigManager"/>"/>

+ 1 - 1
src/main/webapp/private/index.jsp

@@ -28,7 +28,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="../WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/public/health.jsp

@@ -32,7 +32,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <% try { JspUtility.getPwmSession(pageContext).unauthenticateUser(JspUtility.getPwmRequest(pageContext)); } catch (Exception e) { }%>
 <%

+ 1 - 1
src/main/webapp/public/index.jsp

@@ -27,7 +27,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <% final PwmRequest index_pwmRequest = JspUtility.getPwmRequest(pageContext); %>
 <%@ include file="../WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">

+ 1 - 1
src/main/webapp/public/localeselect.jsp

@@ -27,7 +27,7 @@
 <!DOCTYPE html>
 <%@ page language="java" session="true" isThreadSafe="true" contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <%
     List<Locale> localeList = Collections.emptyList();

+ 1 - 1
src/main/webapp/public/randomgen.jsp

@@ -24,7 +24,7 @@
 <%@ page language="java" session="true" isThreadSafe="true"
          contentType="text/html" %>
 <%@ taglib uri="pwm" prefix="pwm" %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

+ 1 - 1
src/main/webapp/public/reference/displaystrings.jsp

@@ -40,7 +40,7 @@
 <%@ taglib uri="pwm" prefix="pwm" %>
 <% final Locale userLocale = JspUtility.locale(request); %>
 <% final PwmRequest pwmRequest = JspUtility.getPwmRequest(pageContext); %>
-<html dir="<pwm:LocaleOrientation/>">
+<html lang="<pwm:value name="<%=PwmValue.localeCode%>"/>" dir="<pwm:value name="<%=PwmValue.localeDir%>"/>">
 <%@ include file="/WEB-INF/jsp/fragment/header.jsp" %>
 <body class="nihilo">
 <div id="wrapper">

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels