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-samba/luasrc/controller/samba.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'applications/luci-samba/luasrc') diff --git a/applications/luci-samba/luasrc/controller/samba.lua b/applications/luci-samba/luasrc/controller/samba.lua index a6d0918b74..7d531330a7 100644 --- a/applications/luci-samba/luasrc/controller/samba.lua +++ b/applications/luci-samba/luasrc/controller/samba.lua @@ -12,16 +12,17 @@ You may obtain a copy of the License at $Id$ ]]-- + module("luci.controller.samba", package.seeall) function index() if not nixio.fs.access("/etc/config/samba") then return end - require("luci.i18n") - luci.i18n.loadc("samba") - - local page = entry({"admin", "services", "samba"}, cbi("samba"), luci.i18n.translate("Network Shares")) + + local page + + page = entry({"admin", "services", "samba"}, cbi("samba"), _("Network Shares")) page.i18n = "samba" page.dependent = true -end \ No newline at end of file +end -- cgit v1.2.3