webmcp
diff demo-app/app/main/index/_action/set_lang.lua @ 0:9fdfb27f8e67
Version 1.0.0
author | jbe/bsw |
---|---|
date | Sun Oct 25 12:00:00 2009 +0100 (2009-10-25) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/demo-app/app/main/index/_action/set_lang.lua Sun Oct 25 12:00:00 2009 +0100 1.3 @@ -0,0 +1,6 @@ 1.4 +app.session.user.lang = param.get("lang") 1.5 +app.session.user:save() 1.6 + 1.7 +locale.set{ lang = app.session.user.lang } 1.8 + 1.9 +slot.put_into("notice", _"Language changed") 1.10 \ No newline at end of file