# HG changeset patch # User bsw # Date 1340573781 -7200 # Node ID d0f99272f675c736188e1ad24aa2a3f5cf5d75be # Parent df0b83d79524950a563a59b55ebd4c2020c87c96 Fixed displaying of help texts diff -r df0b83d79524 -r d0f99272f675 app/main/help/show.lua --- a/app/main/help/show.lua Sun Jun 24 23:27:40 2012 +0200 +++ b/app/main/help/show.lua Sun Jun 24 23:36:21 2012 +0200 @@ -15,21 +15,19 @@ local found_help = false -- we try to load any help file that fits best for x,lang in ipairs{locale.get("lang"), "en"} do - for x,htype in ipairs{"_full", ""} do - local file_name = basepath .. "/locale/help/" .. id .. htype .. "." .. lang .. ".txt.html" - local file = io.open(file_name) - if file ~= nil then - local help_text = file:read("*a") - if #help_text > 0 then - found_help = true - ui.container{ - attr = { class = "wiki" }, - content = function() - slot.put(help_text) - end - } - break - end + local file_name = basepath .. "/locale/help/" .. id .. "." .. lang .. ".txt.html" + local file = io.open(file_name) + if file ~= nil then + local help_text = file:read("*a") + if #help_text > 0 then + found_help = true + ui.container{ + attr = { class = "wiki" }, + content = function() + slot.put(help_text) + end + } + break end end end