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-polipo/luasrc/controller/polipo.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'applications/luci-polipo') diff --git a/applications/luci-polipo/luasrc/controller/polipo.lua b/applications/luci-polipo/luasrc/controller/polipo.lua index 1ee67e238..d07eaebd4 100644 --- a/applications/luci-polipo/luasrc/controller/polipo.lua +++ b/applications/luci-polipo/luasrc/controller/polipo.lua @@ -11,6 +11,7 @@ You may obtain a copy of the License at $Id$ ]]-- + module("luci.controller.polipo", package.seeall) function index() @@ -18,11 +19,8 @@ function index() return end - require("luci.i18n").loadc("polipo") - local i18n = luci.i18n.translate - - entry({"admin", "services", "polipo"}, alias("admin", "services", "polipo", "config"), "Polipo").i18n = "polipo" - entry({"admin", "services", "polipo", "status"}, template("polipo_status"), i18n("Status")) - entry({"admin", "services", "polipo", "config"}, cbi("polipo"), i18n("Configuration")) + entry({"admin", "services", "polipo"}, alias("admin", "services", "polipo", "config"), _("Polipo")).i18n = "polipo" + entry({"admin", "services", "polipo", "status"}, template("polipo_status"), _("Status")) + entry({"admin", "services", "polipo", "config"}, cbi("polipo"), _("Configuration")) end -- cgit v1.2.3