Commits

vmorsiani committed 831c3ee

added locale support

Comments (0)

Files changed (1)

jticketing-webapp/src/main/java/org/wanna/jticketing/web/beans/LocaleBean.java

+package org.wanna.jticketing.web.beans;
+
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import java.util.Locale;
+
+@ManagedBean
+@SessionScoped
+public class LocaleBean {
+    Locale currentLocale = new Locale("en");
+
+    public Locale getCurrentLocale() {
+        return currentLocale;
+    }
+
+    public void setLanguage(String lang){
+        currentLocale = new Locale(lang);
+    }
+}