server/src/main/webapp/WEB-INF/templates/fragment/userForm.html
branchuser_management
changeset 224 0167b777ad15
parent 222 6ac00231ee34
child 225 0fcce86e650c
--- a/server/src/main/webapp/WEB-INF/templates/fragment/userForm.html	Mon Oct 21 15:00:17 2013 +0200
+++ b/server/src/main/webapp/WEB-INF/templates/fragment/userForm.html	Mon Oct 21 17:55:12 2013 +0200
@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" th:lang="${#ctx.getLocale().toLanguageTag()}" >
   <head>
     <meta charset="utf-8"/>
     <title>User form</title>
@@ -30,7 +30,9 @@
         
         
         $(function(){
-            $(".datepicker").datepicker();
+            var regionalValue = /*[[${#ctx.getLocale().getLanguage()}]]*/"";
+            $.datepicker.setDefaults($.datepicker.regional[ "" ]);
+            $('.datepicker').datepicker($.datepicker.regional[regionalValue]);
             $('#color').spectrum({
             	showInput: true,
             	showAlpha: true,