diff options
Diffstat (limited to 'applications/luci-vnstat/luasrc/controller/vnstat.lua')
-rw-r--r-- | applications/luci-vnstat/luasrc/controller/vnstat.lua | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/applications/luci-vnstat/luasrc/controller/vnstat.lua b/applications/luci-vnstat/luasrc/controller/vnstat.lua index 605f799dcb..4c10e2ad30 100644 --- a/applications/luci-vnstat/luasrc/controller/vnstat.lua +++ b/applications/luci-vnstat/luasrc/controller/vnstat.lua @@ -1,14 +1,11 @@ module("luci.controller.vnstat", package.seeall) function index() - require("luci.i18n").loadc("vnstat") - local i18n = luci.i18n.translate + entry({"admin", "status", "vnstat"}, alias("admin", "status", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90).i18n = "vnstat" + entry({"admin", "status", "vnstat", "graphs"}, template("vnstat"), _("Graphs"), 1) + entry({"admin", "status", "vnstat", "config"}, cbi("vnstat"), _("Configuration"), 2) - entry({"admin", "status", "vnstat"}, alias("admin", "status", "vnstat", "graphs"), i18n("VnStat Traffic Monitor"), 90).i18n = "vnstat" - entry({"admin", "status", "vnstat", "graphs"}, template("vnstat"), i18n("Graphs"), 1) - entry({"admin", "status", "vnstat", "config"}, cbi("vnstat"), i18n("Configuration"), 2) - - entry({"mini", "network", "vnstat"}, alias("mini", "network", "vnstat", "graphs"), i18n("VnStat Traffic Monitor"), 90).i18n = "vnstat" - entry({"mini", "network", "vnstat", "graphs"}, template("vnstat"), i18n("Graphs"), 1) - entry({"mini", "network", "vnstat", "config"}, cbi("vnstat"), i18n("Configuration"), 2) + entry({"mini", "network", "vnstat"}, alias("mini", "network", "vnstat", "graphs"), _("VnStat Traffic Monitor"), 90).i18n = "vnstat" + entry({"mini", "network", "vnstat", "graphs"}, template("vnstat"), _("Graphs"), 1) + entry({"mini", "network", "vnstat", "config"}, cbi("vnstat"), _("Configuration"), 2) end |