summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-samba/luasrc/controller/samba.lua
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-samba/luasrc/controller/samba.lua')
-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