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/freifunk/policy-routing.lua | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua') diff --git a/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua b/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua index 32c9c0ba4e..e8aca9ce57 100644 --- a/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua +++ b/applications/luci-freifunk-policyrouting/luasrc/controller/freifunk/policy-routing.lua @@ -10,14 +10,9 @@ You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 ]]-- - module "luci.controller.freifunk.policy-routing" function index() - require("luci.i18n").loadc("freifunk-policyrouting") - local i18n = luci.i18n.translate - - entry({"admin", "freifunk", "policyrouting"}, cbi("freifunk/policyrouting"), i18n("Policy Routing"), 60) + entry({"admin", "freifunk", "policyrouting"}, cbi("freifunk/policyrouting"), + _("Policy Routing"), 60).i18n = "freifunk-policyrouting" end - - -- cgit v1.2.3