summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-samba/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-08-12 13:16:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-08-12 13:16:27 +0000
commit1d76d8a2158ec397322e54da0b6ad3ca4cadb621 (patch)
tree4c4044d2ca009fa88c154379e439bb2dc784b3a4 /applications/luci-samba/luasrc
parenta8ac3b344f5dee7a79455faa0c699e561464cf4d (diff)
applications, modules: remove i18n handling from controller modules as it moved to the themes now
Diffstat (limited to 'applications/luci-samba/luasrc')
-rw-r--r--applications/luci-samba/luasrc/controller/samba.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/applications/luci-samba/luasrc/controller/samba.lua b/applications/luci-samba/luasrc/controller/samba.lua
index a6d0918b7..7d531330a 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