diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-08-12 13:16:27 +0000 |
commit | 1d76d8a2158ec397322e54da0b6ad3ca4cadb621 (patch) | |
tree | 4c4044d2ca009fa88c154379e439bb2dc784b3a4 /applications/luci-diag-core | |
parent | a8ac3b344f5dee7a79455faa0c699e561464cf4d (diff) |
applications, modules: remove i18n handling from controller modules as it moved to the themes now
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 |