ntpc: clean-up translation strings
[project/luci.git] / applications / luci-ntpc / luasrc / model / cbi / ntpc / ntpc.lua
index cc46983..ab7f73e 100644 (file)
@@ -12,30 +12,29 @@ You may obtain a copy of the License at
 
 $Id$
 ]]--
-require("luci.tools.webadmin")
-m = Map("ntpclient", translate("ntpc"), translate("ntpc_desc"))
+m = Map("ntpclient", translate("Time Synchronisation"), translate("Synchronizes the system time"))
 
-s = m:section(TypedSection, "ntpclient", translate("general"))
+s = m:section(TypedSection, "ntpclient", translate("General"))
 s.anonymous = true
+s.addremove = false
 
-iface = s:option(ListValue, "iface", translate("ntpc_iface"), translate("ntpc_iface_desc"))
-luci.tools.webadmin.cbi_add_networks(iface)
+s:option(DummyValue, "_time", translate("Current system time")).value = os.date("%c")
 
-s:option(Value, "interval", translate("ntpc_interval"))
-s:option(Value, "count", translate("ntpc_count"), translate("ntpc_count_desc"))
+s:option(Value, "interval", translate("Update interval (in seconds)")).rmempty = true
+s:option(Value, "count", translate("Count of time measurements"), translate("empty = infinite")).rmempty = true
 
 
-s2 = m:section(TypedSection, "ntpdrift", translate("ntpc_drift"))
+s2 = m:section(TypedSection, "ntpdrift", translate("Clock Adjustment"))
 s2.anonymous = true
-s2:option(Value, "freq", translate("ntpc_drift_freq"))
+s2.addremove = false
+s2:option(Value, "freq", translate("Offset frequency")).rmempty = true
 
-
-s3 = m:section(TypedSection, "ntpserver", translate("ntpc_timeserver"))
+s3 = m:section(TypedSection, "ntpserver", translate("Time Servers"))
 s3.anonymous = true
 s3.addremove = true
 s3.template = "cbi/tblsection"
 
-s3:option(Value, "hostname", translate("hostname"))
-s3:option(Value, "port", translate("port")).rmempty = true
+s3:option(Value, "hostname", translate("Hostname"))
+s3:option(Value, "port", translate("Port")).rmempty = true
 
-return m
\ No newline at end of file
+return m