From: Jo-Philipp Wich Date: Thu, 18 Oct 2018 09:02:28 +0000 (+0200) Subject: luci-base: remove references to luci.i18n.loadc() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7a98222106e604ce9d3c1eb7617ecc82109f6961;p=project%2Fluci.git luci-base: remove references to luci.i18n.loadc() The i18n.loadc() function has been a no-op since almost six years so it makes no sense to invoke it anymore. Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua index 8b9003d207..1e610e7489 100644 --- a/modules/luci-base/luasrc/dispatcher.lua +++ b/modules/luci-base/luasrc/dispatcher.lua @@ -296,10 +296,6 @@ function dispatch(request) ctx.requestpath = ctx.requestpath or freq ctx.path = preq - if track.i18n then - i18n.loadc(track.i18n) - end - -- Init template engine if (c and c.index) or not track.notemplate then local tpl = require("luci.template") @@ -603,9 +599,6 @@ function createtree() ctx.tree = tree ctx.modifiers = modi - -- Load default translation - require "luci.i18n".loadc("base") - local scope = setmetatable({}, {__index = luci.dispatcher}) for k, v in pairs(index) do