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-ffwizard/luasrc/controller/ffwizard.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'applications/luci-ffwizard') diff --git a/applications/luci-ffwizard/luasrc/controller/ffwizard.lua b/applications/luci-ffwizard/luasrc/controller/ffwizard.lua index 53ceb3a545..5ba33a12aa 100644 --- a/applications/luci-ffwizard/luasrc/controller/ffwizard.lua +++ b/applications/luci-ffwizard/luasrc/controller/ffwizard.lua @@ -18,13 +18,10 @@ $Id$ module "luci.controller.ffwizard" function index() - require("luci.i18n").loadc("ffwizard") - local i18n = luci.i18n.translate - - entry({"admin", "freifunk", "ffwizard"}, form("freifunk/ffwizard"), i18n("Wizard"), 40) - assign({"mini", "freifunk", "ffwizard"}, {"admin", "freifunk", "ffwizard"}, i18n("Wizard"), 40) + entry({"admin", "freifunk", "ffwizard"}, form("freifunk/ffwizard"), _("Wizard"), 40).i18n = "ffwizard" + assign({"mini", "freifunk", "ffwizard"}, {"admin", "freifunk", "ffwizard"}, _("Wizard"), 40) - entry({"admin", "freifunk", "ffwizard_error"}, template("freifunk/ffwizard_error")) + entry({"admin", "freifunk", "ffwizard_error"}, template("freifunk/ffwizard_error")).i18n = "ffwizard" assign({"mini", "freifunk", "ffwizard_error"}, {"admin", "freifunk", "ffwizard_error"}) end -- cgit v1.2.3