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 --- applications/luci-lqtapifoss/luasrc/controller/lqtapifoss.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'applications/luci-lqtapifoss') diff --git a/applications/luci-lqtapifoss/luasrc/controller/lqtapifoss.lua b/applications/luci-lqtapifoss/luasrc/controller/lqtapifoss.lua index 08941874a..323f8a7c4 100644 --- a/applications/luci-lqtapifoss/luasrc/controller/lqtapifoss.lua +++ b/applications/luci-lqtapifoss/luasrc/controller/lqtapifoss.lua @@ -10,6 +10,7 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- + module("luci.controller.lqtapifoss", package.seeall) function index() @@ -17,11 +18,13 @@ function index() return end - local e = entry({"admin", "telephony"}, template("luci_lqvoip/index") , luci.i18n.translate("VoIP"), 90) + local e + + e = entry({"admin", "telephony"}, template("luci_lqvoip/index") , _("VoIP"), 90) e.index = true e.i18n = "telephony" - --local e = entry({"admin", "telephony", "config"}, cbi("luci_lqvoip/config") , luci.i18n.translate("Config"), 10) - local e = entry({"admin", "telephony", "account"}, cbi("luci_lqvoip/account") , luci.i18n.translate("Account"), 20) - local e = entry({"admin", "telephony", "contact"}, cbi("luci_lqvoip/contact") , luci.i18n.translate("Contacts"), 30) + --entry({"admin", "telephony", "config"}, cbi("luci_lqvoip/config") , _("Config"), 10) + entry({"admin", "telephony", "account"}, cbi("luci_lqvoip/account") , _("Account"), 20) + entry({"admin", "telephony", "contact"}, cbi("luci_lqvoip/contact") , _("Contacts"), 30) end -- cgit v1.2.3