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-voice-diag | |
parent | a8ac3b344f5dee7a79455faa0c699e561464cf4d (diff) |
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'applications/luci-voice-diag')
-rw-r--r-- | applications/luci-voice-diag/luasrc/controller/luci_voice/luci_voice_diag.lua | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/applications/luci-voice-diag/luasrc/controller/luci_voice/luci_voice_diag.lua b/applications/luci-voice-diag/luasrc/controller/luci_voice/luci_voice_diag.lua index e0dccb051..8fba53b73 100644 --- a/applications/luci-voice-diag/luasrc/controller/luci_voice/luci_voice_diag.lua +++ b/applications/luci-voice-diag/luasrc/controller/luci_voice/luci_voice_diag.lua @@ -11,15 +11,13 @@ You may obtain a copy of the License at ]]-- - module("luci.controller.luci_voice.luci_voice_diag", package.seeall) function index() - require("luci.i18n") - luci.i18n.loadc("voice_diag") + local e - local e = entry({"admin", "voice", "diag"}, template("luci_voice/diag_index") , luci.i18n.translate("l_v_d_admindiag"), 90) - e.index = true - e.i18n = "voice_diag" - e.dependent = true + e = entry({"admin", "voice", "diag"}, template("luci_voice/diag_index"), _("Diagnostics"), 90) + e.index = true + e.i18n = "voice_diag" + e.dependent = true end |