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>
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")
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