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-ushare/luasrc/controller/ushare.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'applications/luci-ushare') diff --git a/applications/luci-ushare/luasrc/controller/ushare.lua b/applications/luci-ushare/luasrc/controller/ushare.lua index a17c9a41e3..7bbd2ddde1 100644 --- a/applications/luci-ushare/luasrc/controller/ushare.lua +++ b/applications/luci-ushare/luasrc/controller/ushare.lua @@ -16,13 +16,13 @@ $Id$ module("luci.controller.ushare", package.seeall) function index() - require("luci.i18n") - luci.i18n.loadc("ushare") - if not nixio.fs.access("/etc/config/ushare") then - return - end - - local page = entry({"admin", "services", "ushare"}, cbi("ushare"), luci.i18n.translate("uShare"), 60) - page.i18n = "uvc_streamer" - page.dependent = true + if not nixio.fs.access("/etc/config/ushare") then + return + end + + local page + + page = entry({"admin", "services", "ushare"}, cbi("ushare"), _("uShare"), 60) + page.i18n = "ushare" + page.dependent = true end -- cgit v1.2.3