From 1d76d8a2158ec397322e54da0b6ad3ca4cadb621 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 12 Aug 2011 13:16:27 +0000 Subject: applications, modules: remove i18n handling from controller modules as it moved to the themes now --- .../luasrc/controller/luci_voice/luci_voice_diag.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'applications/luci-voice-diag/luasrc/controller/luci_voice') 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 e0dccb051c..8fba53b732 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 -- cgit v1.2.3