luci-base: remove references to luci.i18n.loadc()
[project/luci.git] / modules / luci-base / luasrc / dispatcher.lua
index 8b9003d207ddcedfdea37626d4210f3aa0f14589..1e610e748919edd1601e5026ea12f62755b3bfe9 100644 (file)
@@ -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