diff options
Diffstat (limited to 'pdf-as-web/src/main/webapp/jsp/language.jsp')
-rw-r--r-- | pdf-as-web/src/main/webapp/jsp/language.jsp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/language.jsp b/pdf-as-web/src/main/webapp/jsp/language.jsp new file mode 100644 index 0000000..11aad84 --- /dev/null +++ b/pdf-as-web/src/main/webapp/jsp/language.jsp @@ -0,0 +1,9 @@ +<%@ page import="at.gv.egiz.pdfas.web.i18n.LocaleParamFilter" %>
+<%@ page import="java.util.Locale" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%
+ Locale currentLocale = (Locale) session.getAttribute(LocaleParamFilter.LOCALE_SESSION_KEY);
+ if (currentLocale != null) {
+%>
+ <fmt:setLocale value="<%= currentLocale.getLanguage() %>"/>
+<% } // end if %>
|