Commits

Daniel Poelzleithner  committed 89c4f22

make default lang configurable

  • Participants
  • Parent commits ff61620

Comments (0)

Files changed (2)

File app/main/_filter/20_session.lua

 
 request.set_csrf_secret(app.session.additional_secret)
 
-locale.set{lang = app.session.lang or "de"}
+locale.set{lang = app.session.lang or config.default_lang or "en"}
 
 execute.inner()

File config/default.lua

   photo = nil
 }
 
+config.default_lang = "de"
+
 config.auto_support = true
 
 -- after how long is a user considered inactive and the trustee will see warning