bsw@57: local lang = locale.get("lang") bsw@57: local basepath = request.get_app_basepath() bsw@57: local file_name = basepath .. "/locale/motd/" .. lang .. ".txt" bsw@57: local file = io.open(file_name) bsw@57: if file ~= nil then bsw@57: local help_text = file:read("*a") bsw@57: if #help_text > 0 then bsw@57: ui.container{ bsw@57: attr = { class = "wiki" }, bsw@57: content = function() bsw@57: slot.put(format.wiki_text(help_text)) bsw@57: end bsw@57: } bsw@57: end bsw@57: end