all: change most translate statements to new format, some need manual cleanup
[project/luci.git] / applications / luci-ntpc / luasrc / controller / ntpc.lua
index 2382f52..b6af6f9 100644 (file)
@@ -17,16 +17,16 @@ module("luci.controller.ntpc", package.seeall)
 function index()
        require("luci.i18n")
        luci.i18n.loadc("ntpc")
-       if not luci.fs.isfile("/etc/config/ntpclient") then
+       if not nixio.fs.access("/etc/config/ntpclient") then
                return
        end
        
-       local page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), luci.i18n.translate("ntpc"), 50)
+       local page = entry({"admin", "system", "ntpc"}, cbi("ntpc/ntpc"), luci.i18n.translate("Time Synchronisation"), 50)
        page.i18n = "ntpc"
        page.dependent = true
        
        
-       local page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpc"), luci.i18n.translate("ntpc"), 50)
+       local page = entry({"mini", "system", "ntpc"}, cbi("ntpc/ntpcmini", {autoapply=true}), luci.i18n.translate("Time Synchronisation"), 50)
        page.i18n = "ntpc"
        page.dependent = true
 end
\ No newline at end of file