diff options
Diffstat (limited to 'applications/luci-diag-core')
-rw-r--r-- | applications/luci-diag-core/luasrc/controller/luci_diag.lua | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/applications/luci-diag-core/luasrc/controller/luci_diag.lua b/applications/luci-diag-core/luasrc/controller/luci_diag.lua index 23b8d0009..c12399431 100644 --- a/applications/luci-diag-core/luasrc/controller/luci_diag.lua +++ b/applications/luci-diag-core/luasrc/controller/luci_diag.lua @@ -16,16 +16,15 @@ require("luci.i18n") module("luci.controller.luci_diag", package.seeall) function index() - require("luci.i18n") - luci.i18n.loadc("diag_core") - - local e = entry({"admin", "network", "diag_config"}, template("diag/network_config_index") , luci.i18n.translate("Configure Diagnostics"), 120) - e.index = true - e.i18n = "diag_core" - e.dependent = true - - e = entry({"mini", "diag"}, template("diag/index"), luci.i18n.translate("l_d_diag"), 120) - e.index = true - e.i18n = "diag_core" - e.dependent = true + local e + + e = entry({"admin", "network", "diag_config"}, template("diag/network_config_index") , _("Configure Diagnostics"), 120) + e.index = true + e.i18n = "diag_core" + e.dependent = true + + e = entry({"mini", "diag"}, template("diag/index"), _("Diagnostics"), 120) + e.index = true + e.i18n = "diag_core" + e.dependent = true end |