summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-10-18 11:02:28 +0200
committerJo-Philipp Wich <jo@mein.io>2018-11-05 11:01:45 +0100
commit7a98222106e604ce9d3c1eb7617ecc82109f6961 (patch)
tree5f2a2ad6d69c79671b62b03c8ceaacf5ae9ab387 /modules/luci-base/luasrc
parent13e421e093f47f45827b8acb4a32e8fe9598d1f3 (diff)
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>
Diffstat (limited to 'modules/luci-base/luasrc')
-rw-r--r--modules/luci-base/luasrc/dispatcher.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/modules/luci-base/luasrc/dispatcher.lua b/modules/luci-base/luasrc/dispatcher.lua
index 8b9003d20..1e610e748 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