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 <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2018-10-18 11:02:28 +02:00
parent 13e421e093
commit 7a98222106

View file

@ -296,10 +296,6 @@ function dispatch(request)
ctx.requestpath = ctx.requestpath or freq ctx.requestpath = ctx.requestpath or freq
ctx.path = preq ctx.path = preq
if track.i18n then
i18n.loadc(track.i18n)
end
-- Init template engine -- Init template engine
if (c and c.index) or not track.notemplate then if (c and c.index) or not track.notemplate then
local tpl = require("luci.template") local tpl = require("luci.template")
@ -603,9 +599,6 @@ function createtree()
ctx.tree = tree ctx.tree = tree
ctx.modifiers = modi ctx.modifiers = modi
-- Load default translation
require "luci.i18n".loadc("base")
local scope = setmetatable({}, {__index = luci.dispatcher}) local scope = setmetatable({}, {__index = luci.dispatcher})
for k, v in pairs(index) do for k, v in pairs(index) do