From 7a98222106e604ce9d3c1eb7617ecc82109f6961 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 18 Oct 2018 11:02:28 +0200 Subject: [PATCH] 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 --- modules/luci-base/luasrc/dispatcher.lua | 7 ------- 1 file changed, 7 deletions(-) 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 -- 2.30.2